.section-themes {
  min-height: auto;
  padding-top: clamp(92px, 18vw, 132px);
  padding-bottom: clamp(94px, 19vw, 140px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 25%),
    var(--color-paper);
}

.themes-orbit {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(73, 84, 53, 0.15);
  border-radius: 50%;
}

.themes-orbit--one {
  top: 8%;
  right: -34%;
  width: 82%;
  aspect-ratio: 1;
}

.themes-orbit--two {
  left: -48%;
  bottom: 12%;
  width: 94%;
  aspect-ratio: 1;
}

.themes-heading {
  max-width: 620px;
}

.themes-heading__intro {
  max-width: 340px;
  margin-top: 24px;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.theme-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
}

.theme-card {
  position: relative;
  width: 100%;
  min-height: 174px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  color: #fff;
  text-align: left;
  box-shadow: 0 18px 45px rgba(35, 40, 28, 0.12);
  transition:
    min-height var(--transition-slow),
    transform var(--transition-medium),
    box-shadow var(--transition-medium);
}

.theme-card__media,
.theme-card__media img,
.theme-card__overlay {
  position: absolute;
  inset: 0;
}

.theme-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.02) brightness(0.86);
  transform: scale(1.035);
  transition:
    transform var(--transition-slow),
    filter var(--transition-medium);
}

.theme-card__overlay {
  background:
    linear-gradient(90deg, rgba(20, 24, 17, 0.82) 0%, rgba(20, 24, 17, 0.48) 50%, rgba(20, 24, 17, 0.08) 100%),
    linear-gradient(180deg, transparent 44%, rgba(17, 21, 14, 0.56));
  transition: opacity var(--transition-medium);
}

.theme-card--botanical .theme-card__overlay {
  background:
    linear-gradient(90deg, rgba(38, 51, 29, 0.82), rgba(44, 58, 34, 0.3) 65%, rgba(44, 58, 34, 0.08)),
    linear-gradient(180deg, transparent 40%, rgba(35, 47, 27, 0.58));
}

.theme-card--band-stage .theme-card__overlay {
  background:
    linear-gradient(105deg, rgba(26, 23, 19, 0.88), rgba(55, 35, 39, 0.48) 58%, rgba(41, 30, 42, 0.16)),
    linear-gradient(180deg, transparent 36%, rgba(18, 17, 15, 0.62));
}

.theme-card--pure-white .theme-card__overlay {
  background:
    linear-gradient(90deg, rgba(67, 67, 59, 0.72), rgba(71, 70, 64, 0.2) 68%, rgba(72, 71, 64, 0.04)),
    linear-gradient(180deg, transparent 42%, rgba(49, 49, 43, 0.46));
}

.theme-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: inherit;
  padding: 20px;
}

.theme-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.theme-card__number,
.theme-card__status {
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.theme-card__status {
  color: rgba(255, 255, 255, 0.68);
}

.theme-card__name {
  display: block;
  margin-top: auto;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 10vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.theme-card__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 10px;
}

.theme-card__keywords span {
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-card__description,
.theme-card__action {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition:
    max-height var(--transition-slow),
    opacity var(--transition-medium),
    transform var(--transition-medium),
    margin-top var(--transition-medium);
}

.theme-card__description {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  line-height: 1.55;
}

.theme-card__action {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-card__action-line {
  width: 42px;
  height: 1px;
  background: currentColor;
}

.theme-card.is-active {
  min-height: 318px;
  box-shadow: 0 28px 60px rgba(29, 34, 23, 0.2);
}

.theme-card.is-active .theme-card__media img {
  filter: saturate(0.9) contrast(1.01) brightness(0.95);
  transform: scale(1);
}

.theme-card.is-active .theme-card__overlay {
  opacity: 0.9;
}

.theme-card.is-active .theme-card__description {
  max-height: 100px;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.theme-card.is-active .theme-card__action {
  max-height: 44px;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.themes-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  color: var(--color-olive);
  font-size: 0.47rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@media (max-width: 374px) {
  .theme-card {
    min-height: 162px;
    border-radius: 22px;
  }

  .theme-card.is-active {
    min-height: 300px;
  }

  .theme-card__content {
    padding: 18px;
  }

  .theme-card__name {
    font-size: 2.2rem;
  }

  .themes-footer {
    gap: 8px;
    font-size: 0.42rem;
  }
}

@media (min-width: 560px) {
  .theme-list {
    gap: 18px;
  }

  .theme-card {
    min-height: 194px;
  }

  .theme-card.is-active {
    min-height: 360px;
  }

  .theme-card__content {
    padding: 26px;
  }

  .theme-card__description {
    max-width: 430px;
    font-size: 0.78rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(29, 34, 23, 0.18);
  }

  .theme-card:not(.is-active):hover .theme-card__media img {
    filter: saturate(0.84) contrast(1.02) brightness(0.92);
    transform: scale(1.015);
  }
}
