.categories-page{
  padding:32px 0 72px;
}

.categories-hero,
.categories-panel,
.categories-seo-panel,
.categories-side-panel{
  border-radius:32px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.045)),
    rgba(126,12,22,.24);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.categories-hero{
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(320px,.9fr);
  gap:20px;
  padding:32px;
}

.categories-hero-copy{
  min-width:0;
}

.categories-hero-side{
  display:grid;
  gap:16px;
}

.categories-side-panel{
  padding:22px;
}

.categories-side-head h2{
  color:#fff;
  font-size:24px;
  line-height:1.1;
}

.categories-side-head p{
  margin-top:10px;
  color:var(--muted);
  line-height:1.7;
}

.categories-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:16px;
  color:var(--muted);
  font-size:13px;
}

.categories-breadcrumb a{
  color:#fff;
}

.categories-kicker{
  display:inline-flex;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid var(--line);
  color:var(--muted);
  font-weight:900;
  margin-bottom:16px;
}

.categories-title{
  font-family:"Cormorant Garamond",serif;
  font-size:clamp(38px,6vw,78px);
  line-height:.92;
  font-weight:700;
  letter-spacing:-.04em;
}

.categories-title span{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.categories-text{
  margin-top:18px;
  max-width:760px;
  color:var(--muted);
  font-size:18px;
  line-height:1.72;
}

.categories-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:22px;
}

.categories-stat{
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
}

.categories-stat strong{
  display:block;
  color:#fff;
  font-size:24px;
  font-weight:950;
}

.categories-stat span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}

.categories-links,
.categories-chip-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.categories-links{
  margin-top:24px;
}

.categories-link,
.categories-chip{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:10px 15px;
  border-radius:999px;
  background:rgba(255,255,255,.09);
  border:1px solid var(--line);
  color:#fff;
  font-weight:850;
}

.categories-chip-cloud{
  margin-top:18px;
}

.categories-chip-cloud-soft{
  margin-top:12px;
}

.categories-section{
  padding:26px 0 0;
  content-visibility:auto;
  contain-intrinsic-size:360px;
}

.categories-section-tight{
  padding-top:22px;
}

.categories-panel{
  padding:24px;
}

.categories-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:18px;
}

.categories-card{
  padding:20px;
  border-radius:28px;
  background:rgba(12,8,18,.48);
  border:1px solid rgba(255,255,255,.08);
}

.categories-card-featured{
  background:
    radial-gradient(circle at top right, rgba(255,63,87,.18), transparent 40%),
    rgba(20,6,8,.62);
}

.categories-card-kicker{
  display:inline-flex;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.09);
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.categories-card h3{
  margin-top:14px;
  color:#fff;
  font-size:26px;
  line-height:1.05;
  font-weight:950;
}

.categories-card p{
  margin-top:12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
  min-height:70px;
}

.categories-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.categories-card-meta span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  font-size:12px;
  font-weight:850;
}

.categories-card-btn{
  margin-top:16px;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  font-weight:950;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
}

.categories-lower-grid{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(320px,.98fr);
  gap:20px;
  align-items:start;
}

.categories-panel-head{
  margin-bottom:14px;
}

.categories-stack{
  display:grid;
  gap:12px;
}

.categories-row{
  display:flex;
  gap:14px;
  align-items:center;
  padding:12px;
  border-radius:20px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
}

.categories-row img{
  width:72px;
  height:92px;
  object-fit:cover;
  object-position:50% 18%;
  border-radius:16px;
  flex:0 0 72px;
}

.categories-row-body{
  min-width:0;
}

.categories-row-body strong{
  display:block;
  color:#fff;
  font-size:18px;
  font-weight:900;
}

.categories-row-body span,
.categories-row-body p{
  display:block;
  color:var(--muted);
}

.categories-row-body p{
  margin-top:6px;
  line-height:1.55;
  font-size:14px;
}

.categories-seo-panel{
  padding:0;
  border:none;
  box-shadow:none;
  background:transparent;
}

.categories-seo-panel h2{
  color:#fff;
  font-size:28px;
  margin-bottom:12px;
}

.categories-seo-panel p{
  color:var(--muted);
  line-height:1.72;
}

@media(max-width:900px){
  .categories-hero,
  .categories-lower-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:768px){
  .categories-page{
    padding:16px 0 40px;
  }

  .categories-hero,
  .categories-panel,
  .categories-side-panel{
    border-radius:22px;
  }

  .categories-hero,
  .categories-panel,
  .categories-side-panel{
    padding:16px;
  }

  .categories-hero{
    gap:14px;
  }

  .categories-breadcrumb{
    margin-bottom:12px;
    font-size:12px;
  }

  .categories-kicker{
    margin-bottom:14px;
    padding:8px 12px;
  }

  .categories-title{
    line-height:.94;
  }

  .categories-text{
    margin-top:14px;
    font-size:15px;
    line-height:1.62;
  }

  .categories-stats{
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:minmax(132px,1fr);
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    scroll-padding-inline:2px;
    padding-bottom:4px;
    scrollbar-width:none;
  }

  .categories-stats::-webkit-scrollbar{
    display:none;
  }

  .categories-stat{
    min-height:92px;
  }

  .categories-links,
  .categories-chip-cloud{
    flex-wrap:nowrap;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    scroll-padding-inline:2px;
    padding-bottom:4px;
    scrollbar-width:none;
  }

  .categories-links::-webkit-scrollbar,
  .categories-chip-cloud::-webkit-scrollbar{
    display:none;
  }

  .categories-link,
  .categories-chip{
    white-space:nowrap;
    flex:0 0 auto;
    scroll-snap-align:start;
  }

  .categories-hero-side{
    display:flex;
    gap:12px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    scroll-padding-inline:2px;
    padding-bottom:2px;
    scrollbar-width:none;
  }

  .categories-hero-side::-webkit-scrollbar{
    display:none;
  }

  .categories-side-panel{
    min-width:min(280px,calc(100vw - 44px));
    flex:0 0 min(280px,calc(100vw - 44px));
    scroll-snap-align:start;
  }

  .categories-stat{
    scroll-snap-align:start;
  }

  .categories-side-head h2{
    font-size:20px;
  }

  .categories-side-head p{
    margin-top:8px;
    font-size:14px;
    line-height:1.58;
  }

  .categories-section{
    padding-top:18px;
  }

  .categories-section-tight{
    padding-top:16px;
  }

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

  .categories-card{
    padding:16px;
    border-radius:24px;
  }

  .categories-card h3{
    font-size:22px;
  }

  .categories-card p{
    min-height:0;
  }

  .categories-lower-grid{
    gap:16px;
  }

  .categories-row{
    align-items:flex-start;
    gap:12px;
    padding:11px;
  }

  .categories-row img{
    width:68px;
    height:86px;
    flex-basis:68px;
    border-radius:14px;
  }

  .categories-row-body strong{
    font-size:17px;
  }

  .categories-row-body p{
    font-size:13px;
  }

  .categories-seo-panel h2{
    font-size:24px;
  }

  .categories-seo-panel p{
    font-size:14px;
    line-height:1.62;
  }
}
