.page--themes {
  background-color: var(--color-bg);
}

.hero--themes {
  padding-top: calc(var(--space-4xl) - 1.25rem);
}

.hero--themes .hero__inner {
  position: relative;
}

.hero--themes .hero__content {
  max-width: 40rem;
}

.hero--themes .hero__actions {
  margin-top: var(--space-md);
}

.hero__card--themes {
  margin-left: auto;
  max-width: 26rem;
}

.hero__image-frame {
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
  position: relative;
}

.hero__image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 0, rgba(255, 214, 170, 0.35), transparent 55%), radial-gradient(circle at 85% 0, rgba(26, 127, 90, 0.4), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
}

.hero__image-caption {
  padding-top: var(--space-xs);
  color: rgba(249, 245, 238, 0.8);
}

@media (max-width: 991.98px) {
  .hero__card--themes {
    max-width: 100%;
  }
}

.section--themes-gallery {
  padding-top: var(--space-3xl);
}

.themes-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.9fr);
  gap: var(--grid-gap-xl);
  align-items: flex-start;
}

.themes-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--grid-gap-lg);
}

.theme-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.theme-card--tall {
  grid-row: span 2;
}

.theme-card__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.theme-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-card__badge {
  position: absolute;
  left: var(--space-sm);
  bottom: var(--space-sm);
}

.theme-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.theme-card__title {
  font-size: var(--font-size-xl);
}

.theme-card__subtitle {
  font-size: var(--font-size-md);
}

.theme-card__list {
  margin-top: var(--space-xs);
}

.theme-card__footer {
  margin-top: var(--space-md);
}

.themes-gallery-aside {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

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

.themes-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: var(--space-md);
}

.themes-filter__chip {
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.themes-filter__chip.is-active {
  border-color: rgba(196, 106, 61, 0.9);
  background: rgba(196, 106, 61, 0.08);
  color: var(--color-accent-primary-strong);
  box-shadow: 0 10px 26px rgba(12, 9, 5, 0.06);
  transform: translateY(-1px);
}

.section--themes-atmosphere {
  overflow: hidden;
}

.themes-atmosphere-grid {
  align-items: stretch;
}

.themes-atmosphere-copy .card + .card {
  margin-top: var(--space-lg);
}

.themes-atmosphere-figure {
  max-width: 30rem;
  margin-left: auto;
}

.themes-atmosphere-frame {
  position: relative;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.themes-atmosphere-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.themes-atmosphere-overlay {
  position: absolute;
  inset: auto var(--space-md) var(--space-md) var(--space-md);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 40, 48, 0.9), rgba(5, 5, 9, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-elevated);
}

.themes-atmosphere-overlay__inner {
  position: relative;
}

.themes-atmosphere-overlay__inner::before {
  content: "";
  position: absolute;
  inset: -60% -40% auto auto;
  background: radial-gradient(circle at 0 0, rgba(255, 214, 170, 0.7), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.themes-atmosphere-caption {
  max-width: 24rem;
}

.section--themes-custom {
  padding-top: var(--space-3xl);
}

.themes-custom-grid {
  align-items: stretch;
}

.themes-custom-steps {
  align-items: flex-start;
}

.themes-custom-step__badge {
  font-size: 0.7rem;
}

.themes-custom-brief {
  max-width: 24rem;
  margin-left: auto;
}

.section--themes-faq {
  padding-bottom: var(--space-4xl);
}

.themes-faq-grid {
  align-items: flex-start;
}

.themes-faq-aside {
  max-width: 24rem;
  margin-left: auto;
}

.themes-faq-cta .btn {
  margin-top: var(--space-sm);
}

@media (max-width: 1199.98px) {
  .themes-gallery-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

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

  .themes-gallery-aside {
    position: static;
    order: -1;
  }

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

  .theme-card--tall {
    grid-row: auto;
  }

  .themes-atmosphere-figure {
    margin-left: 0;
    max-width: 100%;
  }

  .themes-custom-brief,
  .themes-faq-aside {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .hero--themes {
    padding-top: var(--space-3xl);
  }

  .themes-atmosphere-overlay {
    inset: auto var(--space-sm) var(--space-sm) var(--space-sm);
  }

  .themes-filter {
    gap: 0.35rem;
  }

  .themes-filter__chip {
    font-size: 0.76rem;
    padding-inline: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .themes-filter__chip {
    transition: none;
  }
}
