html, body, #wrap {
    height: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

#wrap {
    width: 980px;
    margin: 0 auto;
}

body > #wrap {
    height: auto;
    min-height: 100%;
}

#main {
    padding-bottom: 89px;
}

#footer {
    background: #324B23;
    border-top: 5px solid #C3CE8E;
    clear: both;
    color: #fff;
    font: small-caps bold 13px "Trebuchet MS", Helvetica, sans-serif;
    line-height: 84px;
    height: 84px;
    margin: -89px auto 0;
    padding-left: 40px;
    position: relative;
    width: 940px;
}

#footer a {
    outline: none;
}

#footer a:hover, #footer a:link, #footer a:visited {
    color: #fff;
}

#footer a:hover {
    text-decoration: none;
}

/* CLEARFIX */
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {
    display: inline-block;
}

/* Hides from IE-mac \*/ * html .clearfix {
    height: 0.1%;
}

.clearfix {
    display: block;
}

/* End hide from IE-mac */
img {
    border: 0 none;
}

h3 {
    color: #262a2c;
    font-size: 20px;
}

#header-lan {
    height: 32px;
    width: 100%;
}

#header-lan span {
    display: inline-block;
    float: right;
}

#header-lan img {
    margin: 5px 20px 0 -15px;
    border: 1px solid #ccc;
}

#header div.header-top {
    background: url(/bitrix/templates/cemms/images/header.png);
    height: 70px;
}

#header div.header-top-logo {
    float: left;
    left: 20px;
    position: relative;
    top: 10px;
}

#header div.header-top-logo a {
    outline: none;
}

#header div.header-top-logo img {
    margin-right: 30px;
}

#header div.header-top-phone {
    float: right;
    position: relative;
    right: 40px;
    top: 10px;
}

#inner-header div.header-top {
    background: url(/bitrix/templates/cemms/images/inner-header.png);
    height: 70px;
}

#inner-header div.header-top-logo {
    float: left;
    position: relative;
    left: 20px;
    top: 10px;
}

#inner-header div.header-top-logo a {
    outline: none;
}

#inner-header div.header-top-logo img {
    margin-right: 30px;
}

#inner-header div.header-top-phone {
    float: right;
    position: relative;
    right: 40px;
    top: 10px;
}

#inner-header div.inner-header-title {
    background: url(/bitrix/templates/cemms/images/inner-header-title.png) no-repeat;
    height: 58px;
    margin: 2px 0 0;
    padding-top: 20px;
    padding-left: 20px;
}

#inner-header div.inner-header-title h1 {
    font: bold 30px Trebuchet MS, Helvetica, sans-serif;
    color: #003974;
    margin: 0;
}

#main-menu {
    background: url(/bitrix/templates/apacnew/images/main-menu-bg.png) no-repeat;
    height: 49px;
    margin-top: 2px;
}

.main-partners {
    padding: 10px;
}

.main-partners img {
    margin: 0 10px 10px 0;
    vertical-align: middle;
}

#content {
    padding: 15px 5px 30px 5px;
    font: 14px Trebuchet MS, Arial, Helvetica, sans-serif;
    vertical-align: top;
}

#content a {
    color: #6A8012;
    text-decoration: none;
}

#content a:hover {
    text-decoration: underline;
}

/****** BEGIN: Боковая панель ******/
#sidebar {
    font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
    padding: 30px 0px 30px 15px;
    vertical-align: top;
    width: 258px;
}

#sidebar-header {
    background-color: #003974;
    color: #fff;
    font-size: 14px;
    padding: 12px 0;
    text-align: center;
    text-transform: uppercase;
}

.sidebar-block-header {
    background: url(/bitrix/templates/apacnew/images/sidebar-block-header.png) no-repeat;
    color: #787878;
    font-weight: bold;
    height: 40px;
    line-height: 40px;
    margin: 10px 0 0;
    padding-left: 10px;
    text-transform: uppercase;
}

.sidebar-block-header a:link, .sidebar-block-header a:visited, .sidebar-block-header a:active {
    color: #787878;
    text-decoration: none;
}

.sidebar-block-header a:hover {
    text-decoration: underline;
}

.sidebar-block-header-empty {
    background: url(/bitrix/templates/apacnew/images/sidebar-block-header-empty.png) no-repeat;
    height: 3px;
    margin: 10px 0 0;
}

.sidebar-toggle {
    display: inline-block;
    height: 16px;
    left: 7px;
    position: relative;
    vertical-align: middle;
    width: 16px;
}

.toggle-on {
    background: url(/bitrix/templates/apacnew/images/row-up.png) no-repeat;
}

.toggle-off {
    background: url(/bitrix/templates/apacnew/images/row-down.png) no-repeat;
}

.sidebar-block-body {
    background: #fff;
    border-left: 1px solid #d6d6d6;
    border-right: 1px solid #d6d6d6;
    margin: 0;
    min-height: 150px;
    width: 256px;
}

.sidebar-block-footer {
    background: url(/bitrix/templates/apacnew/images/sidebar-block-footer.png) no-repeat;
    height: 3px;
    margin: 0;
}

/****** END: Боковая панель ******/
/****** BEGIN: Фото-галерея ******/
.gallery-box {
    height: 540px;
    margin: 14px 0;
    overflow-y: scroll;
}
.gallery-box > a {
    border: 1px solid #ccc;
    display: block;
    float: left;
    margin: 3px;
}
.gallery-box > a > img {
    padding: 5px;
    width: 175px;
}
/****** END: Фото-галерея ******/
