There are several sites to buy train tickets. In Russia there is only one railway company and it's better to buy train tickets directly through its website: RZD
. There are Russian and English versions. You have to log in and to fill in all passport data while purchasing. Often it's not required to print the ticket you just need keep the PDF on a phone. They're starting to sell tickets for forty days before the departure, so then you'll have more choice.