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

body {
  background: url(img/back.gif) repeat-y top left;
  background-color: white;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 75%;
  line-height: 130%;
}

img {
  border: none;
}

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

h2 {
  margin-top: 1em;
  margin-bottom: 1em;
  color: #323265;
  font-size: 1.8em;
  font-weight: normal;
}

h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #323265;
  font-size: 1.4em;
  font-weight: normal;
  font-style: italic;
}

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

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

#container {
  min-height: 100%;
  height: auto;
  position: relative;
}
* html #container {
  height: 100%;
}


/* Header */

#header {
  background: url(img/logo.gif) no-repeat top right;
  background-color: white;
  height: 135px;
  text-align: center;
}
#header.bg,
#header.ru {
  background-image: url(img/logo_cyr.gif);
}

#header h1 {
  float: left;
  width: 340px;
  height: 135px;
  margin: 0;
  background: url(img/head.jpg) no-repeat top left;
}

#header h2 {
  float: left;
  margin: 0;
  padding: 20px;
}

#header span {
  display: none;
}

#top_bar {
  height: 25px;
  background: url(img/back3.gif) repeat-x top left;
  background-color: #29A5A5;
  font-size: 0.9em;
  color: white;
}

#top_bar a {
  color: white;
}

#top_bar .nav {
  float: left;
  margin: 2px 5px;
}

#header .nav img {
  margin-right: 5px;
}

#location {
  padding: 10px 0;
  font-size: 0.8em;
  color: #888;
}

#location a {
  font-style: italic;
}

#languages {
  float: right;
  margin: 4px 5px 0 0;
}
#languages img {
  vertical-align: middle;
}

#main_menu {
  float: left;
  width: 180px;
  margin: 10px 30px 100px 10px;
}
* html #main_menu {
  margin-left: 3px;
}

#main_menu ul {
  color: white;
  margin: 0;
  padding: 0;
  list-style: none;
}

#main_menu li {
  display: block;
  margin: 0;
  padding: 10px 5px;
  border-top: 1px dotted #888;
}

#main_menu li.first {
  border: none;
}

#main_menu ul ul {
  margin: 5px 0 0 5px;
  font-size: 0.9em;
}

#main_menu li li {
  padding: 3px 10px;
  margin: 0;
  border: none;
  font-weight: normal;
}

#main_menu .active {
  font-weight: bold;
}

#main_menu a {
}

#main {
  clear: both;
  background: url(img/back2.gif) no-repeat top left;
}

#body {
  min-height: 400px;
  margin-left: 230px;
  margin-right: 30px;
}

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

#clearfooter {
  clear: both;
  height: 50px;
  width: 100%
}

#footer {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 20px 10px 10px 230px;
  color: #888;
  font-size: 0.9em;
}

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: 1px solid #CCC;
}

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

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

.clear {
  clear: both;
}

td.number {
  text-align: right;
}

.error {
  color: red;
}

.designs {
  margin-top: 20px;
}

.design {
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #888;
}
.design .image {
  float: none;
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
  text-align: center;
}

.image {
  clear: right;
  float: right;
  width: 120px;
  margin-left: 10px;
  margin-bottom: 10px;
  font-size: 0.9em;
  text-align: center;
}

.image img {
  display: block;
  margin-bottom: 2px;
}