@media only screen and (min-device-width: 900px){
    body {
        width: 960px;
        margin-left: auto;
        margin-right: auto;

    }
    .contacts_text {
        padding: 0;
        background-color: white;
        width: 695px;
        height: 100px;
        color: black;
        border: solid 1px black;
        font-size: 21px;
    }
    #googleMap {
        width:695px;
        height:600px;
    }
    .contacts-images{
        width: 346px;
        height: 300px;
        border: solid 1px black;
        padding: 2px;
        margin: 0;
    }
    .p-text {
        padding: 0;
        margin: 0;
        background-color: white;
        width: 695px;
        height: 100px;
        color: black;
        border: solid 1px black;
        font-size: 21px;
    }
}

body {
    background-color: #FFFFFF;

}

div.header {
    position: relative;
    width: 100%;
    height: 250px;
    margin-left: auto;
    margin-right: auto;
    background: url(../images/header.png);
    min-height: 250px;
}

div.images {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color: #FFFFFF;
}

div.footer {
    background: #FFC58A;
    clear: left;

}
div.text{
    text-decoration:none;
    line-height: 1.4;
    /*text-indent: 30px;*/
    text-align:left;
    font-size:18px;
}

.address {
    margin-top: 189px;
    float: right;
    background-color: bisque;
    padding: 0px;
    font-size: 16pt;
}

figure {
    padding: 7px;
    margin: 1px;
    display: block;
    width: 222px;
    height:130px;
    float: left;
    text-align: center;
}


a{
    color: #7F0000;
    text-decoration:none;
}

a:hover {
    color: red;
    text-decoration:none;
}
h1 {
    text-transform:uppercase;
    font-size:24px;
    text-align:center;
    text-decoration:none;
}

.socialka table {
    position:absolute;
    float: left;
    margin-left: 710px;
    top:85px;
}

.socialka img {
    width: 30px;
}
h3 {
    text-transform:uppercase;
    text-align:center;
    font-size:20px;
    text-decoration:none;
}
#head {
    float: right;
    font-size: 38pt;
    padding-top: 20px;
    margin-right: 10px;
    color: #7F0000;
    font-family: Arial;
}

ul.links {
    width: 420px;
    list-style-image: url(images/done.png);
}

img.contacts {
    vertical-align: middle;
}

hr {
    color: #FFFFFF;
}

#left{
    width:100%;
    float:left;
    position: relative;
}
#left h2{
    margin:0;
    padding:0;
    font-size:0.7em;
    font-weight:bold;
}
#left ul{
    list-style:none;
    margin:3px;
    padding:2px 2px;
}

#left li{
    padding:2px 2px;
}
#left li a{
    display:block;
    padding:8px;
    text-transform:uppercase;
    text-decoration:none;

    background:linear-gradient(to top,rgba(0,37,99,1),rgba(1,69,179,1));
    box-shadow: 0 0 5px rgba(0,0,0,1);
    color:#e5be37;
    font: 106% MS Serif, New York, serif;
    border-radius:3px;
}
#left li a:hover{
    background:white;
    color:#1A2C1F;
    font: MS Serif, New York, serif;

}
#left .on a{
    background:white;
    background:linear-gradient(to top,rgba(255,255,255,1),rgba(255,255,255,0.5));
    color:#1A2C1F;
    font: MS Serif, New York, serif;
    border:1px solid #000;
}
#left li ul{
    display:none;
    position:absolute;
    width:auto;
    background:rgba(255,255,255,0.6);
}
#left li:hover ul{
    position:absolute;
    left:276px;
    margin-top:-50px;
    display:block;
    font-size: 0.9em;
    line-height: 1em;
    font-weight: 900;
}
#left li li{
    float:none;
    position:relative;
    width:250px;

}
#left li li a{
    z-index: 99;
    position: relative;
    display:block;
    background:#fff;
    color:#000;
}
#left li li a:hover{
    background:#000;
    color:#fff;
}
#left li #third{
    display:none;
    left:250px;
    top:0;
    position:absolute;
    width:200px;
    font-size: 1em;
    font-weight: 200;
    margin:0px;
    padding:0;
}
#left li li:hover #third{
    display:block;
}
#left li li li{
    float:none;
    display:table-row;
    text-align:left;
    font-size: 1em;
    line-height: 1em;
    font-weight: 700;
    line-height: 0.5em;
}
#left li li li a{
    margin:5px;
    display:block;
    background:white;
    color: rgba(57,60,65, 1);
    background:#e1e5e6;
}
#left li li li a:hover{
    background:#e1e5e6;
    color:#0064a2;
    text-decoration: underline;
}
.foot-tel{
    list-style-type: none;
    /*position: absolute;*/
    margin-top: -71px;
    left: 327px;}
.head-tel{
    display: inline-block;
    position: absolute;
    top: 114px;
    right: 43px;
    font-size: 20px;}
.foot-adr{display: inline-block;
    position: relative;
    margin-left: 33px;
    top: -53px;
    left: 345px;
}
@media only screen and (max-device-width: 500px){
    #left li a {
        font: 139% MS Serif, New York, serif;
    }
    div.text {
        font-size: 21px;
        margin: 22px;
    }
    .foot-tel {
        left: 39px;
        font-size: 26px;
        bottom: 39px;
        margin-top: -11px;
        position: inherit;
    }
    .foot-adr {
        display:none;
    }
    .head-tel {
        background-color: white;
        top: 146px;
        right: 13px;
        font-size: 17px;
    }
    h1{font-size: 29px;}
    .socialka table {
        margin-left: 72px;
        top: 135px;
    }
    #left li:hover ul {

        left: 33px;
        margin-top: -6px;

    }
    .address {
        bottom: 10px;
        left: 5px;
        background-color: bisque;
        padding: 0px;
        font-size: 10pt;
        position: absolute;
    }
}
div.footer {
    height: 180px;
}
address {
    font-size: 9pt;
    color: #080808;
}
#head {
    font-size: 20pt;
    padding-top: 9px;

}
@media  ( max-device-width: 600px) {
    .socialka table {
        position:absolute;
        right: 0;
        top:130px;
    }
    .p-text {
        padding: 1px;
        margin: 0 0 1px 0;
        background-color: white;
        width: 414px;
        height: 100px;
        color: black;
        border: solid 1px black;
        font-size: 15px;
    }
    #googleMap {
        width: 414px;
        height: 600px;
    }
    .contacts-images {
        width: 414px;
        height: 300px;
        border: solid 1px black;
        padding: 2px;
        margin: 0;
    }
}

.ash1{
		font-size:27px;
	}
	.bigger{
		font-size:27px;
	}
	
	.border{
		border-top: 2px solid black;
		border-right: 2px solid black;
	}
	.btn {
		white-space:normal;
		word-wrap: break-word; 
	}
	h2{
		font-size:27px;
		text-align:center;
	}
	h3{
		text-align:center;
	}
	ul{
		padding-left:15px;
	}
	p {
		text-indent:20px;
	}

