/* sora-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/sora-v17-latin-regular.woff2') format('woff2');
}
/* sora-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/sora-v17-latin-500.woff2') format('woff2');
}
/* sora-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/sora-v17-latin-600.woff2') format('woff2');
}
/* sora-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/sora-v17-latin-700.woff2') format('woff2');
}
/* sora-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/sora-v17-latin-800.woff2') format('woff2');
}
/* archivo-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/archivo-v25-latin-regular.woff2') format('woff2'); 
}
/* archivo-500 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/archivo-v25-latin-500.woff2') format('woff2'); 
}
/* archivo-600 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/archivo-v25-latin-600.woff2') format('woff2');
}
/* archivo-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/archivo-v25-latin-700.woff2') format('woff2');
}

:root {
    --primary-bg:    #ffffff;
    --surface-bg:    #f7f8fa;
    --card-bg:       #ffffff;
    --text-main:     #0a0e27;
    --text-secondary:#5b6582;
    --text-muted:    #8891a8;
    --border-light:  #e8ecf2;
    --border-medium: #d1d9e6;
    --shadow-sm:     0 1px 2px rgba(10,14,39,.04);
    --shadow-md:     0 4px 16px rgba(10,14,39,.06);
    --shadow-lg:     0 12px 32px rgba(10,14,39,.08);
    --shadow-hover:  0 8px 24px rgba(10,14,39,.1);
    --accent-primary:#ff6b00;
    --page-px:       50px;
    --hero-px:       72px;
    --hero-py:       72px;
    --hero-radius:   32px;
    --card-pad:      28px;
    --widget-pad:    28px;
    --grid-gap:      20px;
    --layout-gap:    40px;
    --sidebar-w:     360px;
}

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

body {
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #fafbfc, #f3f5f8);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.cat-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--page-px) 80px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    HERO BANNER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cat-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--hero-radius);
    margin: 28px 0 48px;
    padding: var(--hero-py) var(--hero-px);
    background: linear-gradient(135deg, var(--cat-accent-dark) 0%, #0a0e27 60%, #0d1025 100%);
    border: 1px solid rgba(var(--cat-accent-rgb), .25);
    box-shadow: 0 24px 80px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.04) inset;
}

.cat-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(var(--cat-accent-rgb),.3) 0%, transparent 65%);
    pointer-events: none;
    animation: hero-breathe 7s ease-in-out infinite;
}
.cat-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(var(--cat-accent-rgb),.15) 0%, transparent 65%);
    pointer-events: none;
    animation: hero-breathe 9s ease-in-out infinite reverse;
}
@keyframes hero-breathe {
    0%,100% { transform: scale(1); opacity: .8; }
    50%      { transform: scale(1.15); opacity: 1; }
}

.cat-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(var(--cat-accent-rgb),.18) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, black 20%, transparent 100%);
}

.cat-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cat-hero-left { flex: 1; min-width: 260px; }

.cat-crumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.5);
    margin-bottom: 20px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}
.cat-crumb li {
    display: inline-flex;
    align-items: center;
}
.cat-crumb a { color: rgba(255,255,255,.5); transition: color .2s; }
.cat-crumb a:hover { color: rgba(255,255,255,.9); }
.cat-crumb-sep { opacity: .4; }

.cat-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #fff;
    background: rgba(var(--cat-accent-rgb), .25);
    border: 1.5px solid rgba(var(--cat-accent-rgb), .5);
    box-shadow: 0 0 20px rgba(var(--cat-accent-rgb), .2);
    margin-bottom: 20px;
    margin-left: 40px;
    animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
    0%,100% { box-shadow: 0 0 20px rgba(var(--cat-accent-rgb),.2); }
    50%      { box-shadow: 0 0 35px rgba(var(--cat-accent-rgb),.4); }
}

.cat-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cat-accent);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(var(--cat-accent-rgb),.6); }
    70%      { box-shadow: 0 0 0 7px rgba(var(--cat-accent-rgb),0); }
}

.cat-hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(30px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -.04em;
    margin-bottom: 16px;
}
.cat-hero-title span {
    background: linear-gradient(135deg, var(--cat-accent) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cat-hero-desc {
    font-size: clamp(13px, 1.8vw, 16px);
    color: rgba(255,255,255,.65);
    line-height: 1.75;
    max-width: 520px;
}

.cat-hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.cat-stat-item { display: flex; flex-direction: column; gap: 4px; }
.cat-stat-num {
    font-family: 'Sora', sans-serif;
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1;
}
.cat-stat-num span {
    color: var(--cat-accent);
}

.cat-stat-num-seven {
    margin-left: 3px;
}

.cat-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Icon block */
.cat-hero-icon-wrap {
    flex-shrink: 0;
    width: clamp(100px, 14vw, 200px);
    height: clamp(100px, 14vw, 200px);
    position: relative;
}
.cat-hero-icon {
    width: 100%; height: 100%;
    background: rgba(var(--cat-accent-rgb), .12);
    border: 1.5px solid rgba(var(--cat-accent-rgb), .35);
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(var(--cat-accent-rgb), .2), inset 0 1px 0 rgba(255,255,255,.08);
    animation: icon-float 5s ease-in-out infinite;
}
@keyframes icon-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.cat-hero-icon svg {
    width: 55%; height: 55%;
    color: var(--cat-accent);
    filter: drop-shadow(0 0 16px rgba(var(--cat-accent-rgb),.6));
}
.cat-hero-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 44px;
    border: 1px dashed rgba(var(--cat-accent-rgb), .35);
    animation: icon-spin 14s linear infinite;
}
@keyframes icon-spin { to { transform: rotate(360deg); } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    FILTER BAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cat-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cat-filter-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
}

.cat-sort-tabs { display: flex; gap: 6px; }
.cat-sort-tab {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1.5px solid var(--border-light);
    background: var(--card-bg);
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
}
.cat-sort-tab:hover { border-color: rgba(var(--cat-accent-rgb), .4); color: var(--text-main); }
.cat-sort-tab.active {
    background: var(--cat-accent);
    border-color: var(--cat-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--cat-accent-rgb), .3);
}

.cat-count-badge {
    padding: 8px 16px;
    background: var(--surface-bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.cat-count-badge strong {
    color: var(--cat-accent);
    font-family: 'Sora', sans-serif;
    font-size: 15px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    MAIN LAYOUT GRID
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cat-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: var(--layout-gap);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    ARTICLES GRID
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cat-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
}

.cat-articles-grid .cat-card:first-child {
    grid-column: 1 / -1;
}

.cat-card {
    background: var(--card-bg);
    border-radius: 22px;
    padding: var(--card-pad);
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--cat-accent) 0%, rgba(var(--cat-accent-rgb),.3) 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 0% 50%, rgba(var(--cat-accent-rgb),.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.cat-card:hover {
    transform: translateY(-6px) translateX(3px);
    border-color: rgba(var(--cat-accent-rgb), .25);
    box-shadow: var(--shadow-hover), 0 0 0 1px rgba(var(--cat-accent-rgb),.06);
}
.cat-card:hover::before { transform: scaleY(1); }
.cat-card:hover::after  { opacity: 1; }

.cat-card:first-child {
    padding: calc(var(--card-pad) + 8px);
    background: linear-gradient(145deg, #fff 0%, #fafbfd 100%);
    border-color: rgba(var(--cat-accent-rgb), .18);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(var(--cat-accent-rgb),.04);
}
.cat-card:first-child::before { width: 5px; }

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    CATEGORY CHIPS / BADGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: nowrap;
}
.chip-primary   { background: rgba(var(--cat-accent-rgb),.12); color: var(--cat-accent); border: 1.5px solid rgba(var(--cat-accent-rgb),.25); }
.chip-secondary { background: var(--surface-bg); color: var(--text-muted); border: 1px solid var(--border-light); }

/* All 10 category badges */
.badge-markets    { background: rgba(16,185,129,.1);  color: #10b981; border: 1.5px solid rgba(16,185,129,.2); }
.badge-defi       { background: rgba(139,92,246,.1);  color: #8b5cf6; border: 1.5px solid rgba(139,92,246,.2); }
.badge-mining     { background: rgba(245,158,11,.1);  color: #f59e0b; border: 1.5px solid rgba(245,158,11,.2); }
.badge-ai         { background: rgba(6,182,212,.1);   color: #06b6d4; border: 1.5px solid rgba(6,182,212,.2); }
.badge-nft        { background: rgba(236,72,153,.1);  color: #ec4899; border: 1.5px solid rgba(236,72,153,.2); }
.badge-gamefi     { background: rgba(249,115,22,.1);  color: #f97316; border: 1.5px solid rgba(249,115,22,.2); }
.badge-adoption   { background: rgba(20,184,166,.1);  color: #14b8a6; border: 1.5px solid rgba(20,184,166,.2); }
.badge-technology { background: rgba(99,102,241,.1);  color: #6366f1; border: 1.5px solid rgba(99,102,241,.2); }
.badge-incident   { background: rgba(239,68,68,.1);   color: #ef4444; border: 1.5px solid rgba(239,68,68,.2); }
.badge-regulation { background: rgba(59,130,246,.1);  color: #3b82f6; border: 1.5px solid rgba(59,130,246,.2); }

.cat-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: auto;
    white-space: nowrap;
}

/* Card title */
.cat-card-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    letter-spacing: -.02em;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .3s;
}
.cat-card:hover .cat-card-title { color: var(--cat-accent); }

.cat-card:first-child .cat-card-title {
    font-size: clamp(20px, 2.8vw, 30px);
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.cat-card-excerpt {
    font-size: clamp(13px, 1.5vw, 14.5px);
    color: var(--text-secondary);
    line-height: 1.75;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.cat-card:first-child .cat-card-excerpt {
    line-clamp: 4;
    -webkit-line-clamp: 4;
}

.cat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.cat-card-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.cat-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-bg);
    border: 1px solid var(--border-light);
    padding: 4px 10px;
    border-radius: 7px;
    transition: all .2s;
    white-space: nowrap;
}
.cat-tag:hover { background: var(--cat-accent); color: #fff; border-color: var(--cat-accent); }

.cat-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--cat-accent);
    white-space: nowrap;
    transition: gap .25s, opacity .25s;
    flex-shrink: 0;
}
.cat-read-more svg { width: 14px; height: 14px; transition: transform .25s; }
.cat-card:hover .cat-read-more { gap: 10px; }
.cat-card:hover .cat-read-more svg { transform: translateX(4px); }

/* Featured read-more button style */
.cat-card:first-child .cat-read-more {
    padding: 10px 22px;
    background: var(--cat-accent);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(var(--cat-accent-rgb),.3);
}
.cat-card:first-child .cat-read-more:hover {
    box-shadow: 0 8px 28px rgba(var(--cat-accent-rgb),.45);
}

/* ── Empty state ── */
.cat-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    background: var(--card-bg);
    border-radius: 22px;
    border: 1.5px dashed var(--border-medium);
}
.cat-empty-icon { font-size: 56px; margin-bottom: 20px; }
.cat-empty h3 { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.cat-empty p  { color: var(--text-muted); font-size: 15px; }

/* ── Load More ── */
.cat-load-more-wrap { grid-column: 1 / -1; text-align: center; padding-top: 12px; }

.cat-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    border: 2px solid var(--cat-accent);
    border-radius: 14px;
    background: var(--card-bg);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--cat-accent);
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-sm);
    width: auto;
}
.cat-load-more-btn svg { width: 18px; height: 18px; }
.cat-load-more-btn:hover {
    background: var(--cat-accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(var(--cat-accent-rgb),.25);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    SIDEBAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
}

.sticky-widgets {
    display: flex;
    position: sticky;
    flex-direction: column;
    top: 170px;
    gap: 14px;
}

.cat-widget {
    background: var(--card-bg);
    border-radius: 22px;
    padding: var(--widget-pad);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.cat-widget-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -.01em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.cat-widget-title svg { width: 20px; height: 20px; color: var(--cat-accent); flex-shrink: 0; }
.cat-widget-title-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cat-accent);
    box-shadow: 0 0 0 3px rgba(var(--cat-accent-rgb),.15);
    margin-left: auto;
    flex-shrink: 0;
}

/* Popular list */
.cat-popular-list { display: flex; flex-direction: column; gap: 4px; }

.cat-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.cat-popular-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 50%, rgba(var(--cat-accent-rgb),.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .3s;
}
.cat-popular-item:hover { background: var(--surface-bg); border-color: rgba(var(--cat-accent-rgb),.1); transform: translateX(4px); }
.cat-popular-item:hover::before { opacity: 1; }

.cat-pop-num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 800;
    border: 1.5px solid var(--border-light);
    color: var(--text-muted);
    background: var(--surface-bg);
    transition: all .3s;
    position: relative; z-index: 1;
}
.cat-popular-item:nth-child(1) .cat-pop-num { border-color: var(--cat-accent); color: var(--cat-accent); background: rgba(var(--cat-accent-rgb),.08); }
.cat-popular-item:nth-child(2) .cat-pop-num { border-color: #94a3b8; color: #94a3b8; background: rgba(148,163,184,.08); }
.cat-popular-item:nth-child(3) .cat-pop-num { border-color: #cd7f32; color: #cd7f32; background: rgba(205,127,50,.08); }
.cat-popular-item:hover .cat-pop-num { transform: scale(1.1); }

.cat-pop-content { flex: 1; min-width: 0; position: relative; z-index: 1; }
.cat-pop-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-main);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    transition: color .3s;
}
.cat-popular-item:hover .cat-pop-title { color: var(--cat-accent); }
.cat-pop-date { font-size: 11px; color: var(--text-muted); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.cat-pop-date svg { width: 11px; height: 11px; opacity: .6; }

/* Other categories widget */
.cat-other-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.cat-other-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--border-light);
    background: var(--surface-bg);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all .25s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
.cat-other-link:hover {
    border-color: var(--link-color, var(--cat-accent));
    color: var(--link-color, var(--cat-accent));
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.cat-other-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    RESPONSIVE — BREAKPOINTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── 1400px+ ── */
@media (min-width: 1400px) {
    :root { --page-px: 64px; --sidebar-w: 380px; }
    .cat-articles-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-articles-grid .cat-card:first-child { grid-column: 1 / -1; }
}

@media (min-width: 1920px) {
    :root { --page-px: 80px; --sidebar-w: 400px; }
}

/* ── 1280px ── */
@media (max-width: 1280px) {
    :root {
        --page-px:    40px;
        --sidebar-w:  320px;
        --layout-gap: 32px;
        --hero-px:    56px;
        --hero-py:    56px;
    }
}

/* ── 1100px: сайдбар в grid ── */
@media (max-width: 1100px) {
    :root {
        --page-px:    32px;
        --sidebar-w:  100%;
        --layout-gap: 36px;
    }

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

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

    .sticky-widgets {
        position: static;
        display: contents; /* растекаться в grid родителя */
    }

    .cat-widget-about { grid-column: 1 / -1; }

    .cat-other-cats { grid-template-columns: repeat(4, 1fr); }

    .cat-popular-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    ПЛАНШЕТ: ≤ 900px
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
    :root {
        --page-px:     24px;
        --hero-px:     36px;
        --hero-py:     44px;
        --hero-radius: 24px;
        --card-pad:    22px;
        --widget-pad:  22px;
    }

    .cat-hero-icon-wrap { display: none; }

    .cat-articles-grid { grid-template-columns: 1fr; }
    .cat-articles-grid .cat-card:first-child { grid-column: 1; }

    .cat-sidebar { grid-template-columns: 1fr; }
    .cat-popular-list { grid-template-columns: 1fr; }
    .cat-other-cats { grid-template-columns: repeat(3, 1fr); }

    .cat-hero-stats { gap: 24px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    СМАРТФОН ШИРОКИЙ: ≤ 768px
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    :root {
        --page-px:     20px;
        --hero-px:     24px;
        --hero-py:     32px;
        --hero-radius: 20px;
        --card-pad:    18px;
        --widget-pad:  18px;
        --grid-gap:    14px;
    }

    .cat-page { padding-bottom: 56px; }

    /* ── Hero ── */
    .cat-hero { margin: 14px 0 28px; }
    .cat-hero::before, .cat-hero::after { display: none; }
    .cat-hero-inner { flex-direction: column; align-items: flex-start; gap: 0; }

    /* Убираем отдельный margin-bottom у crumb — header-row берёт на себя отступ */
    .cat-crumb { margin-bottom: 0; font-size: 11px; gap: 6px; }
    .cat-crumb a, .cat-crumb-sep { font-size: 11px; }

    .cat-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        margin-bottom: 16px;
        flex-wrap: nowrap;
    }

    .cat-badge-hero {
        margin-left: 0;
        margin-bottom: 0;
        padding: 5px 12px;
        font-size: 10px;
        font-weight: 700;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .cat-badge-dot { width: 5px; height: 5px; }

    .cat-hero-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 12px;
        letter-spacing: -.03em;
    }

    .cat-hero-title span { display: inline; }

    .cat-hero-desc {
        font-size: 13px;
        line-height: 1.65;
        color: rgba(255,255,255,.6);
        margin-bottom: 0;
    }

    /* Stats: компактно в строку */
    .cat-hero-stats {
        display: flex;
        gap: 20px;
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,.1);
        width: 100%;
    }

    .cat-stat-num { font-size: clamp(20px, 5.5vw, 28px); }
    .cat-stat-label { font-size: 11px; }

    /* ── Filters ── */
    .cat-filters {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: nowrap;
    }

    .cat-filter-left { gap: 8px; flex-wrap: nowrap; }
    .cat-filter-label { display: none; } /* экономим место */

    .cat-sort-tabs { display: flex; gap: 5px; }
    .cat-sort-tab  { padding: 8px 14px; font-size: 12px; flex-shrink: 0; }

    .cat-count-badge { font-size: 12px; padding: 7px 12px; white-space: nowrap; }

    /* ── Cards ── */
    .cat-card { border-radius: 18px; }

    .cat-chip { font-size: 9.5px; padding: 3px 9px; }
    /* Второстепенные категории скрываем — избегаем переполнения */
    .cat-chip.chip-secondary { display: none; }

    .cat-card-date { font-size: 11px; }

    .cat-card-title { font-size: clamp(14px, 4vw, 18px); }

    .cat-card-excerpt { font-size: 13px; -webkit-line-clamp: 2; line-clamp: 2; }

    .cat-card:first-child .cat-card-title {
        font-size: clamp(17px, 5vw, 24px);
        -webkit-line-clamp: 2; line-clamp: 2;
    }

    .cat-card:first-child .cat-card-excerpt {
        -webkit-line-clamp: 3; line-clamp: 3;
    }

    /* Footer: теги слева, кнопка справа в одну строку */
    .cat-card-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
        padding-top: 12px;
    }

    .cat-card-tags { flex: 1; min-width: 0; gap: 5px; }

    .cat-tag {
        font-size: 10.5px;
        padding: 4px 8px;
        border-radius: 6px;
        white-space: nowrap;
    }

    .cat-read-more {
        font-size: 11.5px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .cat-read-more svg { width: 13px; height: 13px; }

    /* Featured card: кнопка в стиле pill, не полная ширина */
    .cat-card:first-child .cat-read-more {
        padding: 9px 16px;
        font-size: 12px;
        border-radius: 10px;
    }

    /* ── Sidebar ── */
    .cat-sidebar { display: flex; flex-direction: column; gap: 16px; }
    .sticky-widgets { position: static; display: flex; flex-direction: column; gap: 14px; }

    .cat-other-cats { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .cat-other-link { font-size: 12px; padding: 10px 12px; gap: 7px; }

    /* ── Load more ── */
    .cat-load-more-btn { width: 100%; justify-content: center; padding: 14px 24px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    СМАРТФОН УЗКИЙ: ≤ 480px
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {
    :root {
        --page-px:     14px;
        --hero-px:     18px;
        --hero-py:     26px;
        --hero-radius: 18px;
        --card-pad:    16px;
        --widget-pad:  16px;
        --grid-gap:    12px;
    }

    .cat-page { padding-bottom: 44px; }

    /* ── Hero: максимально компактно ── */
    .cat-hero { margin: 10px 0 24px; }

    .cat-hero-title { font-size: clamp(22px, 7.5vw, 30px); margin-bottom: 10px; }

    .cat-hero-desc { font-size: 12.5px; }

    .cat-badge-hero { font-size: 9.5px; padding: 4px 10px; }

    .cat-hero-stats { gap: 16px; margin-top: 16px; padding-top: 14px; }
    .cat-stat-num { font-size: clamp(18px, 5vw, 24px); }
    .cat-stat-label { font-size: 10px; }

    /* ── Filters ── */
    .cat-filters { margin-bottom: 16px; gap: 8px; }
    .cat-sort-tab { padding: 7px 12px; font-size: 11.5px; }
    .cat-count-badge { font-size: 11px; padding: 6px 10px; }

    /* ── Cards ── */
    .cat-card { border-radius: 16px; gap: 10px; }

    .cat-card-title { font-size: 14px; letter-spacing: -.015em; }

    .cat-card:first-child .cat-card-title { font-size: clamp(15px, 5vw, 20px); }

    /* Footer на 480px: всё в колонку — теги сверху, кнопка снизу полной ширины */
    .cat-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cat-card-tags { flex-wrap: wrap; }

    .cat-read-more {
        justify-content: center;
        padding: 10px 16px;
        border: 1.5px solid rgba(var(--cat-accent-rgb), .3);
        border-radius: 10px;
        background: rgba(var(--cat-accent-rgb), .05);
        font-size: 12.5px;
    }

    /* Featured: та же стилистика */
    .cat-card:first-child .cat-read-more {
        padding: 11px 20px;
        font-size: 13px;
        border-radius: 11px;
        width: 100%;
        justify-content: center;
    }

    /* ── Widget ── */
    .cat-widget-title { font-size: 14px; margin-bottom: 14px; padding-bottom: 12px; }

    .cat-other-cats { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .cat-other-link { font-size: 12px; padding: 9px 10px; }

    /* ── Empty ── */
    .cat-empty { padding: 44px 16px; }
    .cat-empty-icon { font-size: 36px; }
    .cat-empty h3 { font-size: 17px; }

    .cat-load-more-btn { font-size: 13px; padding: 13px 20px; border-radius: 12px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    ОЧЕНЬ МАЛЕНЬКИЙ: ≤ 360px
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 360px) {
    :root {
        --page-px:    10px;
        --hero-px:    14px;
        --hero-py:    22px;
        --card-pad:   14px;
        --widget-pad: 14px;
    }

    /* Badge не влезает рядом с хлебными крошками — скрываем */
    .cat-badge-hero { display: none; }

    .cat-hero-title { font-size: 21px; }
    .cat-hero-stats { gap: 14px; }

    .cat-sort-tab { font-size: 11px; padding: 7px 10px; }
    .cat-count-badge { font-size: 11px; }

    .cat-card-title { font-size: 13.5px; }

    .cat-tag { font-size: 10px; padding: 3px 7px; }

    .cat-pop-num   { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }
    .cat-pop-title { font-size: 12px; }
    .cat-pop-date  { font-size: 10px; }

    .cat-other-link { font-size: 11px; padding: 8px 9px; gap: 6px; }
    .cat-other-dot  { width: 7px; height: 7px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    TOUCH DEVICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (hover: none) and (pointer: coarse) {

    .cat-card:hover         { transform: none; border-color: var(--border-light); box-shadow: var(--shadow-sm); }
    .cat-card:hover::before { transform: scaleY(0); }
    .cat-card:hover::after  { opacity: 0; }
    .cat-card:active        { transform: scale(.985); border-color: rgba(var(--cat-accent-rgb),.2); transition: transform .1s; }

    .cat-popular-item:hover    { transform: none; }
    .cat-popular-item:hover::before { opacity: 0; }
    .cat-other-link:hover      { transform: none; box-shadow: none; }
    .cat-load-more-btn:hover   { transform: none; }

    .cat-card:hover .cat-read-more     { gap: 6px; }
    .cat-card:hover .cat-read-more svg { transform: none; }

    .cat-sort-tab,
    .cat-load-more-btn,
    .cat-popular-item { min-height: 44px; }

    .cat-chip,
    .cat-tag,
    .cat-other-link,
    .cat-read-more {
        min-height: unset;
        height: auto;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    REDUCED MOTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ── Focus styles ── */
.cat-card:focus-visible,
.cat-popular-item:focus-visible,
.cat-other-link:focus-visible,
.cat-sort-tab:focus-visible,
.cat-load-more-btn:focus-visible {
    outline: 2px solid var(--cat-accent);
    outline-offset: 3px;
}