.profile-switcher {
  padding-top: 4px;
}

.profile-duo {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
  align-items: stretch;
  transition: grid-template-columns .68s cubic-bezier(.16, 1, .3, 1);
}

.profile-switcher[data-active-profile="fitness"] .profile-duo {
  grid-template-columns: .92fr 1.08fr;
}

.profile-card {
  min-width: 0;
  height: 100%;
  cursor: default;
  opacity: .62;
  filter: grayscale(.32) saturate(.68) brightness(.84);
  transform: translateY(3px) scale(.992);
  transform-origin: center;
  background: linear-gradient(180deg, #151821 0%, #0d1017 100%);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  will-change: transform, opacity, filter;
  transition:
    opacity .52s cubic-bezier(.16, 1, .3, 1),
    filter .52s cubic-bezier(.16, 1, .3, 1),
    transform .68s cubic-bezier(.16, 1, .3, 1),
    border-color .52s ease,
    box-shadow .68s cubic-bezier(.16, 1, .3, 1);
}

.profile-card.is-active {
  opacity: 1;
  filter: grayscale(0) saturate(1) brightness(1);
  transform: translateY(0) scale(1);
  border-color: rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, #191d2a 0%, #0e1119 100%);
  box-shadow: 0 30px 84px rgba(0, 0, 0, .46);
}

.profile-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .82);
  outline-offset: 4px;
}

.profile-card .social-grid {
  grid-template-columns: 1fr;
}

.profile-total {
  display: grid;
  justify-items: end;
  align-content: center;
  min-width: 92px;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  opacity: .72;
  transform: translateY(1px);
  transition:
    opacity .45s ease,
    color .45s ease,
    background .45s ease,
    border-color .45s ease,
    transform .55s cubic-bezier(.16, 1, .3, 1);
}

.profile-total strong {
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.03em;
}

.profile-total small {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-card.is-active .profile-total {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .14);
  opacity: 1;
  transform: translateY(0);
}

.profile-card.is-active .profile-total strong {
  color: var(--text);
}

.profile-card:not(.is-active):hover {
  opacity: .76;
}

@media (max-width: 900px) {
  .profile-duo,
  .profile-switcher[data-active-profile="fitness"] .profile-duo {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-card {
    scroll-margin-top: 150px;
    opacity: .48;
    filter: grayscale(.42) saturate(.58) brightness(.78);
    transform: translateY(5px) scale(.985);
    transition:
      opacity .6s cubic-bezier(.16, 1, .3, 1),
      filter .6s cubic-bezier(.16, 1, .3, 1),
      transform .6s cubic-bezier(.16, 1, .3, 1),
      border-color .5s ease,
      box-shadow .6s cubic-bezier(.16, 1, .3, 1);
  }

  .profile-card.is-active {
    opacity: 1;
    filter: none;
    transform: translateY(0) scale(1);
  }

  .profile-card:not(.is-active):hover {
    opacity: .48;
  }
}

@media (max-width: 520px) {
  .profile-duo {
    gap: 14px;
  }

  .profile-card {
    scroll-margin-top: 138px;
  }

  .profile-total {
    min-width: 78px;
    min-height: 46px;
    padding: 8px 10px;
  }

  .profile-total strong {
    font-size: 16px;
  }

  .profile-total small {
    font-size: 8px;
  }
}
