Gayny ( ; ) is a rural locality (a settlement) and the administrative center of Gaynsky District of Komi-Permyak Okrug in Perm Krai, Russia, located 156 kilometers north from the town of Kudymkar on the right bank of the Kama River.