Thermodynamic Problems of Protein Structure