.mainpage #content h1{
    margin: 0;
    text-align: center;
}
#manage_companies, #statistics, #best, #news{
    width: 400px;
    height: 370px;
    padding: 0 50px 30px 50px;
}



#manage_companies{
    background: #dbffff;
    color: #3f6262;
}
    #manage_companies h1 span{
        background: #66afaf;
    }
    #manage_companies .tabTitleLine{
        height: 20px;
        margin-top: 15px;
        font-size: 0.8em;
        font-weight: bold;
    }
        #manage_companies .tabTitleLine .name{
            width: 245px; 
            display: inline-block;
            padding-left: 25px;
        }
        #manage_companies .tabTitleLine .value{
            margin-left: 18px;
        }
    #manage_companies .line{
        line-height: 36px;
        margin-top: 5px;
        height: 36px;
        font-weight: bold;
    }
        #manage_companies .line .name{
            padding-left: 25px;
            border-radius: 18px 0 0 18px;
            display: inline-block;
            width: 245px;
            height: 36px;
            white-space: nowrap;
            overflow: hidden;
            vertical-align: top;
        }
        #manage_companies .line .name a{
            color: #3f6262;
            text-decoration: none;
        }
        #manage_companies .line.l1 .name{background: #68afaf;}
        #manage_companies .line.l2 .name{background: #7ac3c3;}
        #manage_companies .line.l3 .name{background: #92d8d8;}
        #manage_companies .line.l4 .name{background: #aceeee;}
        #manage_companies .line.l5 .name{background: #c8fafa;}
        #manage_companies .line .value{
            display: inline-block;
            width: 80px;
            height: 36px;
            margin-left: 3px;
            background: #9ee8e8;
            padding: 0 25px 0 15px;
            border-radius: 0 18px 18px 0;
            vertical-align: top;
        }
    #manage_companies .all:link, #manage_companies .all:visited{
        display: inline-block;
        text-transform: uppercase;
        color: #3f6262;
        font-size: 0.75em;
        margin: 30px 0 0 25px;
    }
    #manage_companies .all:hover{
        text-decoration: none;
    }

    
    
#statistics{
    background: #fff7c6;
    color: #79702e;
    position: relative;
}
    #statistics h1 span{
        background: #dfd58e;
        margin-bottom: 35px;
    }
    #statistics .line{
        height: 36px;
        line-height: 36px;
        font-weight: bold;
        margin-top: 5px;
    }
        #statistics .line .name{
            font-size: 0.8em;
            display: inline-block;
            width: 120px;
            vertical-align: middle;
        }
        #statistics .line.first .name, #statistics .line.second .name{
            line-height: 14px;
        }
        #statistics .line .value{
            display: inline-block;
            height: 36px;
            padding: 0 20px 0 10px;
            border-radius: 0 18px 18px 0;
            color: #fff;
            font-size: 1.2em;
            vertical-align: middle;
        }
        #statistics .line.first .value{background: #8d791d;}
        #statistics .line.second .value{background: #ae9319;}
        #statistics .line.third .value{background: #d7b000;}
    #statistics .all:link, #statistics .all:visited{
        font-size: 0.75em;
        text-transform: uppercase;
        color: #79702e;
        display: inline-block;
        margin: 30px 30px 30px 0;
    }
    #statistics .all:hover{
        text-decoration: none;
    }
    #statistics .terms{
        position: absolute;
        bottom: 0px;
        left: 0px;
        height: 130px;
        background: #dfd58e;
        width: 500px;
    }
        #statistics .terms div{
            margin: 30px 50px 0 150px;
        }
    #statistics #houseChart{
        position: absolute;
        left: -136px;
        bottom: -136px;
        background: url("../images/houseChart-bg.png");
        width: 240px;
        height: 240px;
        z-index: 10;
        border-radius: 135px;
        box-shadow: 1px 2px 6px #5c5c5c;
        padding: 16px;
    }
        #statistics #houseChart a:link, #statistics #houseChart a:visited{
            display: block;
            width: 240px;
            height: 240px;
            border-radius: 120px;
            background-image: url(../images/houseChart.jpg);
            background-position: -1px -1px;
            overflow: hidden;
        }
        #statistics #houseChart a:hover{
            background-position: -1px -242px;
        }
        #statistics #houseChart a:active{
            background-position: -1px -241px;
        }
    
        
        
#best{
    background: #e2fba6;
    color: #5b7e09;
    text-align: center;
}
    #best h1 span, #best .imgContainer{
        background: #b0d35d;
    }
    #best .imgContainer{
        width: 320px;
        height: 265px;
        margin: 20px 0 0 40px;
        border-radius: 50px;
        position: relative;
        padding-top: 10px;
    }
        #best .imgContainer .preview{
            display: block;
            margin: 0 10px 10px 10px;
            border-radius: 40px;
            overflow: hidden;
            width: 300px;
            height: 200px;
            position: relative;
        }
            #best .imgContainer .preview img{
                border-radius: 40px;
            }
            #best .imgContainer .preview .bg{
                position: absolute;
                top: -1px;
                left: 0;
                z-index: 10;
            }
        #best .imgContainer .adress{
            display: inline-block;
            color: #5b7e09;
            font-weight: bold;
            text-decoration: none;
        }
    #best .all:link, #best .all:visited{
        text-transform: uppercase;
        color: #5b7e09;
        font-size: 0.75em;
        display: inline-block;
        margin-top: 35px;
    }
    #best .all:hover{
        text-decoration: none;
    }

    
    
#news{
    background: #afedb8;
    color: #1e3d22;
    position: relative;
    overflow: hidden;
    line-height: 1em;
    height: 370px;
    overflow: hidden;
}
    #news h1 span{
        background: #56775a;
    }
    #news h2{
        font-size: 0.9em;
        margin: 15px 0 5px 80px;
        /*max-height: 60px;
        overflow: hidden;*/
    }
        #news h2 a{
            text-decoration: none;
            color: #1e3d22;
        }
    #news .newsWrapper{
        display: none;
        height: 13em;
        overflow: hidden;
    }
    #news .newsWrapper.second{
        display: block;
    }
    #news .previewText{
        margin-left: 80px;
        font-size: 0.8em;
        /*height: 125px;
        overflow: hidden;*/
    }
    #news #newsList{
        width: 480px;
        height: 135px;
        background: #56775a;
        position: absolute;
        left: 0px;
        bottom: 0px;
        padding: 0 10px;
    }
        #news #newsList #newsNav{
            height: 15px;
            white-space: nowrap;
            overflow: hidden;
        }
            #news #newsList #newsNav span{
                display: inline-block;
                width: 225px;
                height: 0px;
                border-bottom: 15px solid #56775a;
                margin: 0px;
            }
            #news #newsList #newsNav span.first{border-right: 15px solid #afedb8;}
            #news #newsList #newsNav span.second{border-left: 15px solid #afedb8; width: 400px;}
        #news #newsList .newsItem{
            display: inline-block;
            width: 140px;
            height: 6.4em;
            /*font-weight: bold;*/
            padding: 10px 10px 5px 10px;
            font-size: 0.8em;
            line-height: 1em;
            vertical-align: top;
            overflow: hidden;
            text-align: center;
        }
            #news #newsList .newsItem a{
                color: #fff;
                text-decoration: none;
            }
    #news .all{
        text-align: center;
        width: 480px;
    }
        #news .all a:link, #news .all a:visited{
            color: #fff;
            text-transform: uppercase;
            font-size: 0.75em;
        }
        #news .all a:hover{
            text-decoration: none;
        }
    
    
    #manage_companies h1 span, #statistics h1 span, #best h1 span, #news h1 span{
        display: inline-block;
        width: 360px;
        height: 40px;
        line-height: 40px;
        border-radius: 0 0 40px 40px;
    }
