FIELD: pharmaceutics.SUBSTANCE: invention relates to compounds of formula (I) possessing properties of aggregation of Aβ1-42, pharmaceutical composition, based thereon, use thereof, method of treating using them, kit for detecting or diagnosing diseases, method of reducing deposits of β-amyloid plaques and method of maintaining or improving cognitive abilities. In general formula (I) A there are selected from group, consisting of (i), (ii), (iii), (iv), (v), (vi) and (viii), L1 is selected from group, consisting of (a), B is selected from group, consisting of (ix), (x), (xi), (xii), (xiii), where R1, R2 and R3 are selected from group of hydrogen, halogen, CN, -CONR30R31, -N(R30)-C(O)-R31, alkyl, -O-alkyl, -C(O)O-alkyl, 6-membered heterocycle with 1-2 heteroatoms, selected from N and O, fluoroalkyl, where the heterocycloalkyl can be optionally substituted with acetyl or methyl group, or, if any of these groups R1/R2/R3 are adjacent, they can be taken together and form 5-8-member ring, containing carbon atoms and optionally one or two heteroatoms, selected from O, S or N, and where 5-8-member ring can be substituted with NR20R21 or -O-alkyl, where alkyl can be substituted with F, methoxy or SO2Me; Ra is selected from hydrogen, alkyl; Rb is selected from hydrogen, halogen, CONR30R31; R30, R31, R20 and R21 are selected from hydrogen, alkyl; X and Y are selected from CRb and N; p equals to 0, 1 or 2.EFFECT: compounds can be used for treating of group of violations and disorders, associated with amyloid protein, such as Alzheimer's disease, and diseases or conditions, associated with amyloid-like proteins, as well as for treating eye diseases, associated with pathological abnormalities/changes in visual system tissues.36 cl, 12 dwg, 10 tbl, 219 exA-L1-B (I), , , , , , and ,, , , and ,Изобретение относится к соединениям формулы (I), обладающим свойствами ингибитора агрегации Aβ1-42, фармацевтической композиции на их основе, их применению, способу лечения с их использовани