modal: Styles of the block could be overridden with popup styles

fix #1176
Merge pull request #1177 from bem/issues/1176

modal: Styles of the block could be overridden with popup styles