FIELD: medicine, pharmaceutics.SUBSTANCE: invention refers to organic chemistry, namely to derivative 2-oxo- and 2-thioxodihydroquinoline-3-carboxamides of formula in the form of free compounds, or in the form of salts of physiologically acceptable acids or bases, wherein X means O or S, R1 represents an unsubstituted C1-7-aliphatic residue; or aryl specified in phenyl unsubstituted or monosubstituted by at least one substitute specified in a group, which contains F, Cl, Br; R2 represents CF3; C1-4-aliphatic residue or O-C1-4-aliphatic residue, wherein C1-4 aliphatic residue in each case is unsubstituted; each R3, R4, R5 and R6 independently represents H; F; Cl; Br; CN; CF3; OCF3; provided at least one of R3, R4, R5 and R6 does not represent H; R7 represents C1-7-aliphatic residue unsubstituted, or mono- or disubstituted; or 6-merous heterocycloaliphatic residue specified in tetrahydropyrane; wherein the 'aliphatic residue' in each case can be branched or unbranched, saturated; wherein 'mono- or disubstituted' in relation to the 'aliphatic residue' refers in the view of respective residues or groups, to substitution of one or two hydrogen atoms specified in one or two hydrogen atoms, each independently, by at least one substitute specified in a group, which contains OH, O-C1-4-aliphatic residue, COOH or C(=O)-O-C1-4-aliphatic residue. The invention also refers to a pharmaceutical composition based on the compound of formula (I).EFFECT: new compounds effective in treating and/or preventing diseases mediated by KCNQ2/3 K+ canals are produced.8 cl, 2 tbl, 45 exИзобретение относится к области органической химии, а именно к производным 2-оксо- и 2-тиоксодигидрохинолин-3-карбоксамидам формулы (I) в виде свободных соединений, или в виде солей физиологически приемлемых кислот или оснований, где X означает О или S, R1 представляет собой C1-7-алифатический остаток, незамещенный; или арил, выбранный из фенила, незамещенного или монозамещенного, по меньшей мере одним замести