Domain-wall superconductivity in hybrid superconductor-ferromagnet structures