/* ===== ОБНУЛЕНИЕ СТИЛЕЙ ===== */
/* Сбрасываем все отступы и поля для всех элементов */
* {
    margin: 0;
    padding: 0;
}

/* ===== ОСНОВНЫЕ СТИЛИ СТРАНИЦЫ ===== */
/* Растягиваем html на всю высоту окна */
html {
    height: 100%;
}

/* Основные стили для body */
body {
    font: 12px Tahoma, Verdana, sans-serif; /* Шрифт по умолчанию */
    color: #3e3936; /* Основной цвет текста */
    width: 100%;
    height: 100%;
    background: url(../images/fon_h.jpg) 0 0 repeat-x; /* Фоновое изображение */
}

/* Стили для ссылок */
a {
    color: #009cff; /* Цвет ссылок */
    outline: none; /* Убираем контур при фокусе */
    text-decoration: underline; /* Подчеркивание по умолчанию */
}
a:hover {
    text-decoration: none; /* Убираем подчеркивание при наведении */
}

/* Специальный класс для белого текста */
.lii {
    color: #ffffff;
}

/* Стили для абзацев */
p {
    margin: 0; /* Убираем отступы у абзацев */
}

/* Стили для изображений */
img {
    border: none; /* Убираем рамку у изображений */
}

/* Выравнивание полей ввода по вертикали */
input {
    vertical-align: middle;
}

/* ===== ОСНОВНАЯ СТРУКТУРА САЙТА ===== */
/* Главная обертка контента */
#wrapper {
    width: 1000px; /* Фиксированная ширина */
    margin: 0 auto; /* Центрирование по горизонтали */
    min-height: 100%; /* Минимальная высота - на весь экран */
    height: auto !important;
    height: 100%; /* Для старых браузеров */
}

/* Шапка сайта */
#header {
    height: 214px;
    font: 11px Tahoma, Geneva, sans-serif;
    color: #9e9e9e;
}

/* Основное содержимое страницы */
#middle {
    width: 100%;
    padding: 0 0 80px; /* Отступ снизу для футера */
    height: 1%; /* Для старых версий IE */
    position: relative;
}
/* Clearfix для #middle */
#middle:after {
    content: '.';
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
}

/* Контейнер для контента */
#container {
    width: 100%;
    float: left;
    overflow: hidden;
}

/* Основное содержимое */
#content {
    padding: 0 370px 0 0; /* Отступ справа для сайдбара */
}

/* Стили для блока с ссылками */
#styleLinks {
    border: 1px solid #A5CAE4;
    border-radius: 4px 4px 4px 4px;
    padding: 2px;
    margin: 5px 20px 0 0;
}

/* Правый сайдбар */
#sideRight {
    float: left;
    margin-right: -3px;
    width: 350px;
    margin-left: -350px;
    position: relative;
}

/* Подвал сайта */
#footer {
    width: 1000px;
    margin: -80px auto 0; /* Поднимаем на высоту своего отступа */
    height: 80px;
    background: 0 0 no-repeat;
}

/* ===== КОМПОНЕНТЫ ШАПКИ ===== */
/* Левая часть футера */
#fl {
    width: 300px;
    float: left;
    margin-top: 30px;
}

/* Правая часть футера */
#fr {
    width: 600px;
    float: right;
    margin-top: 10px;
    height: 35px;
    background: url(../images/zl.jpg) right top no-repeat;
    padding: 15px 40px 0 0;
    text-align: right;
}

/* Левая часть шапки */
#lh {
    padding: 40px 0 0 20px;
    background: url(../images/kl.png) 295px 50px no-repeat;
    height: 97px;
    width: 700px;
    float: left;
}

/* Логотип */
#logo {
    float: left;
}

/* Текст в шапке */
#htxt {
    width: 400px;
    height: 50px;
    margin: 12px 0 0 35px;
    float: left;
}

/* Правая часть шапки */
#rh {
    width: 468px;
    height: 60px;
    margin: -60px 0 0 500px;
    float: left;
}

/* Стиль для email в шапке */
#mail {
    font: 17px Tahoma, Geneva, sans-serif;
    color: #009cff;
    text-decoration: none;
}
a#mail:hover {
    text-decoration: underline;
}

/* ===== ГЛАВНОЕ МЕНЮ ===== */
#menu {
    background: url(../images/fmenu.gif) 0 0 no-repeat;
    float: left;
    clear: both;
    width: 1000px;
    height: 50px;
}

/* Стили для списка меню */
.menu {
    list-style: none;
}
.menu li {
    float: left;
    padding: 0 60px;
    background: url(../images/lir.gif) right top no-repeat;
    height: 50px;
}
.menu a {
    font: 16px Tahoma, Geneva, sans-serif;
    line-height: 45px;
    color: #fff;
    text-decoration: none;
}
.menu a:hover {
    text-decoration: underline;
}
.menu li.last {
    background: none;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
#content {
    margin-left: 20px;
}
#content img, p img {
    margin-right: 8px;
}
#content p {
    margin: 5px 0;
}
#content h1 {
    font: 24px Georgia;
    font-weight: normal;
    padding-bottom: 10px;
}

/* Вспомогательный класс для float */
.trey {
    float: left;
}

/* ===== СПИСКИ ===== */
.list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: table;
    list-style-position: outside;
}
.list li {
    background: url(../images/cl.jpg) 0 5px no-repeat;
    padding-left: 13px;
    font: 12px Tahoma, Geneva, sans-serif;
    color: #3e3936;
}

/* Блоки с контентом */
#u1, #u2 {
    width: 300px;
    margin-top: 15px;
    min-height: 300px;
}
#u1 ul li, #u2 ul li {
    padding-bottom: 13px;
}
#u1 {
    float: left;
    clear: both;
    background: url(../images/) center 40px no-repeat;
}
#u2 {
    float: right;
    background: url(../images/) center 40px no-repeat;
}

/* ===== ФОРМЫ ===== */
/* Стили для формы авторизации */
.avt {
    font: 18px Tahoma, Geneva, sans-serif;
    font-weight: bold;
    color: #3e3936;
    float: left;
    padding-bottom: 10px;
}
.remindPass {
    float: left;
    clear: right;
    padding-left: 30px;
    margin-top: 10px;
}
.line {
    float: left;
    clear: left;
    padding: 5px 0;
    width: 300px;
    text-align: right;
    color: #009cff;
    font-size: 11px;
    line-height: 20px;
}
.label {
    float: left;
    padding-left: 15px;
}
.line input {
    float: right;
    width: 280px;
    height: 20px;
    margin: 0 0 0 10px;
    font: 11px Tahoma, Geneva, sans-serif;
    color: #666;
}
.line_rem {
    float: left;
    clear: left;
    padding-left: 70px;
    width: 150px;
}
.reg {
    float: left;
    clear: left;
    padding-left: 10px;
    margin-top: 10px;
}
#button {
    float: right;
    clear: right;
    margin-top: 5px;
    background: url(../images/button.jpg) 0 0 no-repeat;
    border: 0;
    width: 85px;
    height: 28px;
    color: #fff;
    cursor: pointer;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ===== */
/* Большая ссылка-баннер */
a#link {
    background: url(../images/link.jpg) 0 0 no-repeat;
    display: block;
    width: 314px;
    height: 108px;
    float: left;
    clear: left;
}

/* Список ссылок */
ul.leftlink {
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.leftlink li {
    padding: 2px 0;
}

/* Clearfix */
.clr {
    clear: both;
}

/* Слайдер */
#sld {
    width: 325px;
    height: 115px;
    float: left;
    clear: left;
    overflow: hidden;
}
.sld {
    width: 325px;
    height: 140px;
    position: relative;
}
.sld a {
    line-height: 0;
    margin: 0;
    padding: 0;
    color: #3e3936;
    text-decoration: none;
}
.sld .l1 {
    font: 24px Georgia, "Times New Roman", Times, serif;
    position: absolute;
    top: 30px;
    left: 17px;
}
.sld .l2 {
    font: 72px Georgia, "Times New Roman", Times, serif;
    position: absolute;
    top: 25px;
    left: 0px;
}
.sld .l3 {
    font: 36px Georgia, "Times New Roman", Times, serif;
    position: absolute;
    top: 80px;
    left: 160px;
}
.sld .l4 {
    font: 200px Georgia, "Times New Roman", Times, serif;
    position: absolute;
    right: 0;
    top: -67px;
}
.sld .l5 {
    font: 14px Georgia, "Times New Roman", Times, serif;
    position: absolute;
    right: 10px;
    top: 80px;
}

/* ===== СПЕЦИФИЧЕСКИЕ БЛОКИ ===== */
#adr {
    background: url(../images/cline.jpg) 0 85% no-repeat;
    padding-bottom: 50px;
}
.lim {
    padding: 5px 50px;
}

/* Статистика */
#stat {
    background: url(../images/rline.jpg) left 10px no-repeat;
    padding-top: 20px;
}
.stat {
    background: url(../images/rline.jpg) left bottom no-repeat;
    padding-bottom: 10px;
}
.stat ul {
    list-style: none;
}
.stat li {
    padding-left: 20px;
    line-height: 23px;
    width: 300px;
    float: left;
}
/* Иконки для статистики */
.stat1 { background: url(../images/icon/icon_01.jpg) 0 3px no-repeat; }
.stat2 { background: url(../images/icon/icon_02.jpg) 0 3px no-repeat; }
.stat3 { background: url(../images/icon/icon_03.jpg) 0 3px no-repeat; }
.stat4 { background: url(../images/icon/icon_04.jpg) 0 3px no-repeat; }
.stat5 { background: url(../images/icon/icon_05.jpg) 0 3px no-repeat; }
.stat6 { background: url(../images/icon/icon_06.jpg) 0 3px no-repeat; }
.stat7 { background: url(../images/icon/icon_07.jpg) 0 3px no-repeat; }
.stat8 { background: url(../images/icon/icon_07.jpg) 0 3px no-repeat; }

/* Дополнительные стили */
.sll {
    font: 12px Tahoma, Geneva, sans-serif;
    color: #009cff;
    float: left;
    margin-left: 2px;
    padding-top: 5px;
}
.slr {
    float: right;
    margin-right: 50px;
    font-weight: bold;
}

/* Облако тегов */
#tags {
    margin: 20px 0;
}
#tags a {
    color: #3e3936;
    text-decoration: none;
    padding: 0 2px;
}
#tags a:hover {
    text-decoration: underline;
}
/* Размеры тегов */
.tg1 { font-size: 30px; }
.tg2 { font-size: 24px; }
.tg3 { font-size: 14px; }
.tg4 { font-size: 11px; }
.tg5 { font-size: 24px; }