 .themes-hero {
  padding-top: var(--space-16);
}

.themes-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}

.themes-hero__copy p {
  max-width: 640px;
}

.themes-hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.themes-hero__pill {
  padding-inline: var(--space-4);
  padding-block: var(--space-2);
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  background-color: rgba(15, 23, 42, 0.9);
}

.themes-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.themes-hero__media {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.themes-hero__image {
  min-height: 260px;
}

.themes-hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.themes-hero__stat-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.themes-hero__stat-value {
  font-size: var(--font-size-xl);
}

.themes-hero__stat-footnote {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.themes-nav__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.themes-nav__title {
  font-size: var(--font-size-lg);
}

.themes-nav__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.themes-filter.is-active {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.8);
  color: var(--color-primary);
}

.themes-grid .theme-card {
  position: relative;
}

.themes-grid .theme-card--highlight {
  border-color: rgba(249, 115, 22, 0.8);
}

.themes-list {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.themes-list li {
  margin-bottom: var(--space-2);
}

.themes-card__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.themes-flow__grid {
  align-items: flex-start;
}

.themes-steps {
  margin: 0;
  padding-left: var(--space-5);
}

.themes-steps li {
  margin-bottom: var(--space-4);
}

.themes-steps h3 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-1);
}

.themes-steps p {
  font-size: var(--font-size-sm);
}

.themes-flow__aside {
  display: flex;
  align-items: stretch;
}

.themes-flow__card {
  width: 100%;
}

.themes-pairs {
  margin: 0;
  padding-left: var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.themes-pairs li {
  margin-bottom: var(--space-2);
}

.themes-crosslink {
  text-align: left;
}

.themes-crosslink p {
  font-size: var(--font-size-sm);
}

@media (max-width: 1023px) {
  .themes-hero__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .themes-hero {
    padding-top: var(--space-12);
  }

  .themes-hero__media {
    order: -1;
  }

  .themes-hero__stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .themes-hero__stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .themes-nav__bar {
    padding-inline: var(--space-4);
  }
}
