Opinions about same-sex marriage’s impact on society vary widely by age, education and - most starkly - by party and religion.