FIELD: chemistry.SUBSTANCE: invention relates to a compound of formula (I), a pharmaceutically acceptable salt or ester thereof. Compounds of formula (I) modulate activity of cannabinoid receptor 2 (CB2)..In formula (I) R1 is a halophenyl or C3-C6-cycloalkyl-C1-C6-alkoxy; R2 is a C3-C6-cycloalkyl, azetidinyl or difluoroazetidinyl; one of R3 and R4 is hydrogen, and other is -(CR5R6)-R7 or -A-R7; or R2 is a C3-C6-cycloalkyl, and R3 and R4 together with a nitrogen atom, to which they are bonded, form piperidinylamine; R5 and6 are independently selected from hydrogen, C1-C6-alkyl, halogen-C1-C6-alkyl, C3-C6-cycloalkyl, C3-C6-cycloalkyl-C1-C6-alkyl, phenyl, phenyl-C1-C6-alkyl and halophenyl; or R5 and6 together with carbon atom, to which they are bonded, form C3-C6-cycloalkyl or oxetanyl; R7 is cyano, carboxy, 5-methyl-[1,2,4]oxadiazol-3-yl, 5-amino-[1,2,4]oxadiazol-3-yl, thiazolyl, C1-C6-alkylthiazolyl, pyridinyl, C1-C6-alkylaminocarbonyl, hydroxy-C1-C6-alkyl, C1-C6-alkoxy-C1-C6-alkyl, aminocarbonyl, C1-C6-alkoxycarbonyl, di-C1-C6-alkylaminocarbonyl, phenyl-C1-C6-alkyl, pyridinyl-C1-C6-alkyl, halogen-C1-C6-alkylaminocarbonyl, 5-phenyl-2-methyl-oxazol-4-yl-alkyl, aminocarbonyl-C1-C6-alkyl or halogen; and A is cyclohexyl or thiophenyl, under condition specified in patent claim. Invention also relates to individual compounds, pharmaceutical composition, use of compounds and to a method of modulating CB2 receptor activity.EFFECT: technical result is obtaining novel compounds of formula (I) modulating activity of cannabinoid receptor 2 (CB2).19 cl, 111 exИзобретение относится к соединению формулы (I) его фармацевтически приемлемой соли или сложному эфиру. Соединения формулы (I) модулируют активность каннабиноидного рецептора 2 (СВ2).В формуле (I) R1 представляет собой галогенофенил или С3-С6-циклоалкил-С1-С6-алкокси; R2 представляет собой С3-С6-циклоалкил, азетидинил или дифторазетидинил; один из R3 и R4 представляет собой водород, а другой представляет собой -(CR5R6)-R7 ил