* {
    margin: 0;
    padding: 0;
}

img {
    border: none;
}

body {
    font-family: Verdana, sans-serif;
    font-size: 15px;
    margin: 10px auto;
    position: relative;
    width: 985px;
}

html {
    background: #fff;
    width: 100%;
}

#contacts {
    color: #fff;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0;
}

#contacts p {
    margin: 18px 0;
    padding: 0 7px;
}

#content {
    border-right: 3px #000 solid;
    width: 723px;
    padding-bottom: 10px;
}

#content ul {
    margin-left: 45px;
}

#content ol {
    margin-left: 200px;
    margin-right: 10px;
    text-align: justify;
}

#footer {
    background: #000 url(../img/bg-footer.png);
    color: #fff;
    height: 40px;
    padding: 10px;
    position: relative;
    width: 706px;
}

#footer a.ref, #header h2 a, #contacts a {
    border-bottom: 1px #fff dotted;
    color: #fff;
    text-decoration: none;
}

#footer a.ref:hover, #header h2 a:hover, #contacts a:hover {
    border-bottom: 1px #B92DC2 solid;
    color: #B92DC2;
}

#contacts p:hover {
    background: #000;
}

#contacts a:hover {
    color: #fff;
}

#content img.f-center {
    display: block;
    margin: 0 auto;
}

table.auto td, table.ip td, table.ip th {
    padding: 2px;
}

table.auto img, table.ip img {
    border: 1px #ccc solid;
    padding: 1px;
}

img.std {
    border: 1px #ccc solid;
    padding: 1px;
}

table.auto, table.ip {
    margin: 10px 10px 0 10px;
    font-size: 14px;
}

table.auto {
    border: 1px #aaa solid;
    border-right: 0;
    border-bottom: 0;
}

table.auto td.num {
    border-top: none;
    text-align: center;
    font-weight: bold;
}

table.ip td {
    background: #fff;
    text-align: center;
    color: #000;
}

table.ip tr:hover td {
    background: #B92DC2;
    color: #fff;
}

table.auto td.num:hover, table.auto td.marker:hover {
    background: #B92DC2;
    color: #fff;
}

table.auto td {
    border-bottom: 1px #ccc solid;
    border-right: 1px #ccc solid;
}

table.auto td.marker {
    width: 280px;
    text-align: center;
}

table.auto td.marker em {
    text-decoration: underline;
    font-style: normal;
}

table.auto td.marker:hover em {
    color: #fff;
    text-decoration: none;
}

table.auto td.bor-tr {
    border-bottom: 2px #aaa solid;
}

table.auto td.bor-td {
    border-bottom: 1px #ccc solid;
}

table.ip td, table.ip th {
    border-right: 1px #ccc solid;
    border-bottom: 1px #ccc solid;
    font-weight: normal;
}

table.ip {
    border-left: 1px #ccc solid;
    border-top: 1px #ccc solid;
}

table.ip th {
    background: #eee;
    border-bottom: 2px #ccc solid;
    border-top: 1px #ccc solid;
}

#header {
    background: #000 url(../img/bg-header.jpg);
    color: #fff;
    height: 200px;
    margin-bottom: 3px;
}

#header div.title {
    padding: 15px;
    text-align: center;
    width: 690px;
}

#header h2 {
    font-size: 22px;
    font-weight: normal;
    margin: 10px;
}

a#madeby {
    border: none;
    position: absolute;
    right: 20px;
    top: 17px;
    color: #B92DC2;
}

a#madeby img {
    background: url(../img/key.png);
    border: none;
    height: 26px;
    width: 61px;
}

a#madeby:hover img {
    background: url(../img/key.png) 61px 0;
    border: none;
}

#content p {
    text-indent: 20px;
    text-align: justify;
    padding: 10px;
}

#content div p {
    padding: 5px 10px;
}

img.f-left {
    float: left;
    margin: 5px;
}

img.f-right {
    float: right;
    margin: 5px;
}

div.tov {
    border-bottom: 1px #eee solid;
    border-top: 1px #eee solid;
    margin: -1px 10px 0 10px;
    min-height: 140px;
}

img.tov3 {
    padding: 15px;
    background: url(../img/bg-tov3.png);
}

table.func {
    margin: 0 5px 5px 5px;
    border: 5px #eee solid;
    border-right-width: 30px;
}

table.func td {
    text-align: left;
    padding: 0;
    width: 226px;
}

table.func tr.first td {
    border-bottom: 1px #ddd solid;
}

#c01, #c02 {
    border-right: 1px #ddd solid;
}

table.func a {
    background: url(../img/galka.png) 2px 2px no-repeat;
    display: block;
    color: #B92DC2;
    text-decoration: none;
    padding: 2px 12px 2px 22px;
}

#c11, #c12, #c21, #c22, #c31, #c32, #c41, #c42, #c51, #c52, #c61, #c62, #c71, #c72, #c81, #c82 {
    border-right: 1px #ddd solid;
}

#c02, #c03, #c12, #c22, #c32, #c42, #c52, #c13, #c23, #c33 {
    color: #000;
    text-decoration: underline;
    background-position: 2px -38px;
}

#c01, #c02, #c03 {
    background: none;
}

a#stat {
    display: block;
    background: #000;
    color: #fff;
    margin: 10px 5px 5px 5px;
    padding: 3px;
    text-align: center;
    position: relative;
    z-index: 1;
}

a#stat:hover {
    color: #B92DC2;
}

img#stat-info {
    display: none;
    position: absolute;
    top: 25px;
    left: 0;
    border: none;
    z-index: 1;
}

a.close {
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 1;
}

a.close img {
    width: 20px;
    height: 20px;
    border: none;
    background: url(../img/krest.png) 0 0 no-repeat;
    z-index: 1;
}

a.close:hover img {
    background: url(../img/krest.png) 0 -20px no-repeat;
}

div#elect {
    position: relative;
    display: none;
    z-index: 1;
}

div.tov b {
    display: none;
}

#imgs {
    position: absolute;
    right: 0;
    top: 451px;
    width: 256px;
    padding: 0;
    z-index: -1;
}

#imgs img {
    border: 2px #ccc solid;
}

h3 {
    font-weight: normal;
    text-align: center;
}

div.stripe {
    border-bottom: 1px #eee solid;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

#nav {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 259px;
    position: absolute;
    right: 0;
    top: 203px;
    border-top: 3px #000 solid;
    border-bottom: 2px #000 solid;
    border-right: 3px #000 solid;
    text-align: center;
}

#nav li {
    display: block;
    padding: 1px;
    margin: 0;
    border-bottom: 1px #000 solid;
    border-left: 3px #000 solid;
}

#nav li:hover {
    border-left: 3px #B92DC2 solid;
}

#nav li ul {
    background: #efefef;
    width: 250px;
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 1px #000 solid;
    border-right: 1px #000 solid;
    z-index: 3;
}

#nav li a {
    display: block;
    padding: 1px;
    margin: 0;
    color: #000;
    text-decoration: none;
    z-index: 3;
}

#nav li a:hover {
    background: #B92DC2;
    color: #fff;
}

#nav li ul li {
    display: block;
    padding: 1px;
    margin: 0;
    z-index: 3;
}

#nav li ul li a {
    display: block;
    padding: 1px;
    margin: 0;
    z-index: 3;
}

img.top-right {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 22px;
    height: 21px;
}

img.bottom-right {
    position: absolute;
    bottom: -2px;
    right: -3px;
    width: 22px;
    height: 21px;
}