.transformations {
  background:
    radial-gradient(ellipse 46% 38% at 0% 12%, rgba(214, 196, 255, 0.34), transparent 72%),
    radial-gradient(ellipse 52% 42% at 100% 88%, rgba(232, 196, 255, 0.38), transparent 70%),
    linear-gradient(180deg, #fbfaff 0%, #f6f3ff 52%, #fbfaff 100%);
}

.transformations__intro {
  text-align: center;
}

.transformations__mark {
  width: 42px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d46f5, #e23cad);
}

.transformations h2 {
  max-width: 16em;
  margin: 0 auto;
  color: #14121a;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.transformations__accent {
  background: linear-gradient(100deg, #6d46f5 0%, #a04cf0 46%, #e23cad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.transformations__support {
  max-width: 34em;
  margin: 16px auto 0;
  color: #6b6578;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.5;
}

.transformations__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: min(100%, 1040px);
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}

.transformations__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  padding: 26px 24px 42px;
  overflow: hidden;
  border: 1px solid rgba(226, 220, 240, 0.95);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #f3f0fb 100%);
  box-shadow: 0 14px 34px rgba(86, 58, 140, 0.06);
}

.transformations__card::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: 78%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 62% 58%, rgba(196, 176, 255, 0.42), transparent 70%);
  pointer-events: none;
}

.transformations__card:nth-child(2) {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #fbeff8 100%);
}

.transformations__card:nth-child(2)::after {
  background: radial-gradient(ellipse at 68% 60%, rgba(236, 168, 214, 0.5), transparent 70%);
}

.transformations__card:nth-child(3) {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #eef1fd 100%);
}

.transformations__card:nth-child(3)::after {
  background: radial-gradient(ellipse at 68% 60%, rgba(168, 184, 255, 0.55), transparent 70%);
}

.transformations__index {
  position: absolute;
  top: 20px;
  right: 18px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 208, 228, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  color: #c3bdd0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.transformations__icon,
.transformations__card h3,
.transformations__card p,
.transformations__rule {
  position: relative;
  z-index: 1;
}

.transformations__icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #f3f0fa;
}

.transformations__icon img {
  width: 50px;
  height: 50px;
}

.transformations__card h3 {
  margin: 0;
  max-width: 8.4em;
  color: #14121c;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.transformations__card p {
  margin: 14px 0 0;
  color: #7d7b90;
  font-size: 1.02rem;
  line-height: 1.55;
}

.transformations__rule {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 22px;
  border-radius: 999px;
  background: #7a5af8;
}

.transformations__card:nth-child(2) .transformations__rule {
  background: #e255c4;
}

.transformations__card:nth-child(3) .transformations__rule {
  background: #6e7bff;
}

.transformations__close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 28px auto 0;
  color: #9b97a8;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.transformations__close::before,
.transformations__close::after {
  content: "";
  width: min(18vw, 5.5rem);
  height: 1px;
  flex: none;
  background: #ddd8e6;
}

@media (max-width: 560px) {
  .transformations__close::before,
  .transformations__close::after {
    display: none;
  }
}

@media (min-width: 768px) {
  .transformations__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-top: 36px;
  }

  .transformations__card {
    height: 100%;
    padding: 28px 26px 64px;
  }

  .transformations__card h3 {
    min-height: 2.5em;
  }

  .transformations__close::before,
  .transformations__close::after {
    width: 7.5rem;
  }
}

[data-theme="dark"] .transformations {
  background:
    radial-gradient(ellipse 46% 38% at 0% 12%, rgba(120, 80, 190, 0.22), transparent 72%),
    radial-gradient(ellipse 52% 42% at 100% 88%, rgba(150, 70, 140, 0.16), transparent 70%),
    #16111f;
}

[data-theme="dark"] .transformations h2,
[data-theme="dark"] .transformations__card h3 {
  color: #f4efff;
}

[data-theme="dark"] .transformations__accent {
  background: linear-gradient(100deg, #b9a0ff 0%, #d08cf0 46%, #f0a0d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .transformations__support,
[data-theme="dark"] .transformations__card p,
[data-theme="dark"] .transformations__close {
  color: #c5bdd4;
}

[data-theme="dark"] .transformations__card {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .transformations__index {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #c5bdd4;
}

[data-theme="dark"] .transformations__icon {
  background: rgba(186, 148, 255, 0.16);
}
