html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #878EB4;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 80%;
  line-height: 140%;
  text-align: center;
}

img {
  border: none;
}

a:link, a:visited {
	color: #1C1CDB;
  text-decoration: none;
}
a:hover, a:active {
	color: #CC3300;
  text-decoration: underline;
}

h2 {
  margin-top: 1em;
  margin-bottom: 1em;
  color: #666;
  font-size: 1.6em;
  font-weight: normal;
  line-height: 140%;
  text-transform: uppercase;
}

h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #666;
  font-size: 1.2em;
  font-weight: bold;
  line-height: 140%;
}

h4 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-size: 1.1em;
  font-weight: bold;
}

input, select, textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1em;
}

p {
  margin: 1em 0;
}

ul {
  margin: 0.5em 0;
}

ul li {
  margin: 0.5em 0;
}

#container {
  position: relative;
  width: 960px;
  min-height: 100%;
  height: auto;
  margin: 0 auto;
  background: url(img/back.png) repeat-y top left;
  background-color: white;
  text-align: left;
}
* html #container {
  height: 100%;
}

#header {
  height: 120px;
  background: url(img/header.png) no-repeat top right;
  color: white;
  font-size: 0.9em;
}

#header h1 {
  float: left;
  width: 335px;
  margin: 35px 0 0 120px;
  padding: 0;
  background: url(img/title_en.png) no-repeat top left;
}
* html #header h1 {
  margin-left: 60px;
}

#header h1.bg {
  width: 410px;
  background: url(img/title_bg.png) no-repeat top left;
}

#header h1.ru {
  width: 415px;
  background: url(img/title_ru.png) no-repeat top left;
}

#header h1 a {
  display: block;
  height: 55px;
}

#header h1 span {
  display: none;
}

#header h2 {
  text-align: right;
  margin: 0;
  padding: 20px;
  color: white;
  font-size: 1.2em;
}

#languages {
  float: right;
  margin: 20px 20px 0 0;
}

#languages select {
  border: 1px solid black;
  font-size: 0.9em;
}

#languages ul {
  display: inline;
  margin: 0;
  padding: 0;
  list-style: none;
}

#languages li {
  display: inline;
  margin: 0 0 0 5px;
  padding: 0;
}

#languages li.active {
  font-weight: bold;
}

#languages li.bg {
  padding-left: 24px;
  background: url(img/flag_bg.gif) no-repeat top left;
}

#languages li.ru {
  padding-left: 24px;
  background: url(img/flag_ru.gif) no-repeat top left;
}

#languages li.en {
  padding-left: 24px;
  background: url(img/flag_en.gif) no-repeat top left;
}

#menu {
  float: left;
  width: 190px;
  margin: 10px 0 0 15px;
  min-height: 200px;
}
* html #menu {
  margin-left: 8px;
}

#menu ul {
  margin: 0;
  padding: 0;
}

#menu li {
  margin: 0 0 2px 0;
  padding: 5px 10px;
  list-style: none;
/*  background: url(img/menu.png) repeat-x top left;
  background-color: #23AEF1;*/
  border-top: 1px solid #CCC;/*#C6EAFB;*/
}

#menu li.first {
  border: none;
}

#menu a {
  color: #1C1CDB;
}

#menu a.active {
  font-weight: bold;
}

#location {
  font-size: 0.9em;
  font-style: italic;
}

#body {
  float: right;
  width: 680px;
  padding: 0 0 50px 0;
  margin: 0 40px 0 0;
}
* html #body {
  margin-right: 20px;
}

#body ul {
  list-style: disc;
}

#body li {
  margin-top: 1em;
  margin-bottom: 1em;
}

#clearfooter {
  clear: both;
  width: 100%
}

#footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 960px;
  padding: 0 15px 15px 15px;
  background: url(img/footer.png) no-repeat bottom left;
  font-size: 0.9em;
  color: #666;
}

#footer ul {
  float: right;
  margin: 0 30px;
  padding: 0;
  list-style: none;
}

#footer li {
  display: inline;
  margin: 0 0 0 10px;
  padding: 0;
}

table.form th {
  font-weight: bold;
  text-align: right;
  padding: 3px 5px;
  vertical-align: top;
}

table.form td {
  text-align: left;
  padding: 3px 5px;
  vertical-align: top;
}

table.wireframe {
  border: none;
  border-collapse: collapse
}

table.wireframe th, table.wireframe td {
  padding: 0.25em 0.5em;
  border-top: 1px solid #CCC;
  border-bottom: 1px solid #CCC;
}

table.wireframe th {
  text-align: center;
  background-color: #EEE;
}

table.wireframe tr.even {
  background-color: #F4F4F4;
}

table.wireframe td img {
  vertical-align: middle;
}

table.list {
  border-collapse: collapse;
}

table.list th, table.list td {
  padding: 0.25em 0.5em;
  border-top: 1px solid #CCC;
  border-bottom: 1px solid #CCC;
}

table.list th {
  text-align: left;
}

.clear {
  clear: both;
}

td.number {
  text-align: right;
}

.error {
  color: red;
}

.textbox {
  border: 1px solid #CCC;
  background-color: white;
}

.button {
  border-width: 1px;
}

table td {
  line-height: 110%;
}

form p {
  clear: both;
  margin: 1em 0;
}
label {
  display: block;
  float: left;
  width: 250px;
  margin: 0 1em 1em 0;
  text-align: right;
}
fieldset {
  border: 1px solid #888;
}
legend {
  font-weight: bold;
  font-style: italic;
  padding: 0 0.5em;
}

.star {
  color: red;
  font-size: 0.8em;
}

form .error {
  font-size: 0.9em;
}