.themes-page{
  background:
    radial-gradient(860px 360px at 8% -10%, rgba(223,188,115,.11), transparent 60%),
    radial-gradient(760px 320px at 92% 8%, rgba(223,188,115,.08), transparent 58%),
    #060607;
  color: var(--text);
}

.themes-page h1,
.themes-page h2,
.themes-page h3,
.themes-page p,
.themes-page li,
.themes-page a{
  word-break: keep-all;
  line-break: strict;
}

.themes-kicker{
  margin: 0;
  color: var(--brand-2);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.themes-copy{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.themes-copy h2{
  margin: 0;
  color: var(--brand-3);
  font-size: clamp(1.34rem, 2.4vw, 1.88rem);
}

.themes-copy p{
  margin: 0;
  color: var(--text-dim);
  line-height: 1.72;
}

.themes-hero{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(430px, 70vh, 760px);
  display: flex;
  align-items: center;
}

.themes-hero-media{
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  z-index: -2;
}

.themes-hero-overlay{
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,.78)),
    radial-gradient(circle at 16% 18%, rgba(223,188,115,.16), transparent 45%);
}

.themes-hero-inner{
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}

.themes-hero-inner h1{
  margin: 0;
  color: var(--brand-3);
  font-size: clamp(1.92rem, 4.4vw, 3.1rem);
  line-height: 1.18;
}

.themes-hero-inner p{
  margin: 0;
  color: var(--text-dim);
  line-height: 1.72;
}

.themes-hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.themes-criteria-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.themes-card{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(17,17,19,.94), rgba(9,9,10,.96));
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.themes-card h3{
  margin: 0;
  color: var(--brand-2);
  font-size: 1.04rem;
}

.themes-card p{
  margin: 0;
  color: var(--text-dim);
}

.themes-theme-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.themes-theme-card{
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  background: #0a0a0a;
  box-shadow: var(--shadow);
}

.themes-theme-bg{
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1);
  transition: transform .3s ease;
}

.themes-theme-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.3));
}

.themes-theme-copy{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.themes-theme-copy h3{
  margin: 0;
  color: var(--brand-3);
}

.themes-theme-copy p{
  margin: 0;
  color: var(--text-dim);
  line-height: 1.62;
  font-size: .92rem;
}

.themes-mini-list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: var(--text-dim);
  font-size: .9rem;
}

.themes-note{
  color: rgba(243,239,230,.84);
}

.themes-theme-card:hover .themes-theme-bg{
  transform: scale(1.04);
}

.themes-list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.themes-panel{
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3.2vw, 34px);
  background:
    radial-gradient(circle at 14% 16%, rgba(223,188,115,.11), transparent 44%),
    linear-gradient(160deg, rgba(18,14,10,.96), rgba(10,10,11,.96));
  display: grid;
  gap: 12px;
}

.themes-links{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.themes-links-single{
  grid-template-columns: 1fr;
}

.themes-links a{
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.01);
  color: var(--brand-3);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.themes-links a:hover{
  transform: translateY(-1px);
  border-color: rgba(223,188,115,.52);
  background: rgba(223,188,115,.06);
}

.btn-sm{
  min-height: 36px;
  padding: 8px 12px;
  font-size: .86rem;
}

@media (max-width: 980px){
  .themes-criteria-grid,
  .themes-theme-grid,
  .themes-links{
    grid-template-columns: 1fr;
  }
}

.theme-detail-copy{
  display: grid;
  gap: 14px;
}

.theme-detail-copy h2{
  margin: 0;
  color: var(--brand-3);
  font-size: clamp(1.34rem, 2.4vw, 1.88rem);
}

.theme-detail-copy p{
  margin: 0;
  color: var(--text-dim);
  line-height: 1.72;
}

.theme-fit-grid,
.theme-faq-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-flow-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-gallery-item{
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.01);
}

.theme-gallery-item img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.theme-gallery-item figcaption{
  padding: 10px 12px;
  color: var(--text-dim);
  font-size: .9rem;
}

@media (max-width: 980px){
  .theme-fit-grid,
  .theme-flow-grid,
  .theme-faq-grid,
  .theme-gallery-grid{
    grid-template-columns: 1fr;
  }
}
