div#formazakaza_popup > span {
    content: "x";
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
	color: red;
}

@media only screen and (min-width: 990px) {
	.tel_head {
		display: none;
	}
    .tel_head.relative {
		display: block;
        position: relative;
		color: rgb(255, 255, 255);
		right: 20px;
		top: 3px;
		font-size: 25px;
		float: right;
		line-height: 35px;
    }
    #main .main-padding {
        position: relative;
    }
    #rightcol {
        position: absolute;
        right: 12px;
        top: 0;
    }
    #leftcol {
        position: absolute;
        top: 0;
    }
    #bottom-shadow {
        margin-top: 70px;
    }
    #main-bar {
        margin: 10px 13px;
    }
    .slicknav_menu {
        display: none;
    }
    #buttonform:checked ~ #formazakaza {
        min-height: 700px;
    }
    #formazakaza iframe { 
        *height: 650px !important;
    }
	.popup_form {
	    display: block;
		background: #38aa3b;
		padding: 2px 9px;
		border-radius: 2px;
		color: #fff !important;
		cursor: pointer;
		text-transform: uppercase;
		font-style: normal;
		font-size: 15px;
		text-align: center;
		text-decoration: none !important;
	}
	#formazakaza_popup {
		display: none;
	    position: absolute;
		z-index: 9000;
		background-color: #fff;
		border: 4px solid #00386b;
		height: 700px;
		margin-left: calc( (100vw - 1920px)/(1920 - 500) * (710 - 0) + 710px);
		width: 500px;
		top: 100px;
	}
}

@media only screen and (max-width: 990px) {
	#formazakaza_popup {
		display: none;
		position: absolute;
		z-index: 9000;
		background-color: #fff;
		border: 4px solid #00386b;
		height: 700px;
		margin-left: calc( (100vw - 990px)/(990 - 320) * (245 - 0) + 245px);
		width: 100%;
		max-width: 500px;
		top: 100px;
	}
	.popup_form {
	    display: block;
		background: #38aa3b;
		padding: 2px 9px;
		border-radius: 2px;
		color: #fff;
		cursor: pointer;
		text-transform: uppercase;
		font-style: normal;
		font-size: 15px;
		text-align: center;
	}
	.tel_head.relative {
		display: none;
	}
    .tel_head {
        /* z-index: 99999;
        position: absolute;
        color: rgb(255, 255, 255);
        right: 10px;
        top: 10px;
        font-size: 25px;
        line-height: 35px; */
		position: absolute;
		color: rgb(255, 255, 255);
		right: 20px;
		top: 10px;
		font-size: 25px;
		float: right;
		line-height: 35px;
    }
    img#logo {
        width: 40%;
        background: transparent url("../adap/logo.png") no-repeat scroll 20px 0px / contain;
    }
	
.slicknav_menu > img {
position: absolute;
z-index: 99;
top: 5px;
}
    #header-bar {
        padding-top: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        height: 90px;
        position: relative;
    }
    .adap_table {
        overflow-y: auto;
        overflow-x: auto;
        width: 100%;
    }
    img {
        max-width: 100%;
    }
    * {
        box-sizing: border-box;
    }
    #top-bar {
        display: none;
    }
    div.wrapper {
        width: 100%;
    }
    #maincol {
        margin-left: 0;
        margin-right: 0;
    }
    #leftcol,
    #rightcol {
        width: 100%;
        float: none;
    }
    #leftcol .padding,
    #rightcol .padding {
        padding: 0;
    }
    #rightcol table[width="100%"] {
        text-align: center;
    }
    #rokslide-toolbar {
        width: 100% !important;
    }
    div#frame {
        width: 100% !important;
        height: auto !important;
    }
    #footer {
        padding: 20px 0px;
    }
    #footer table[width="900"] {
        width: 100% !important;
    }
    .contentpaneopen,
    .contentpaneopen > tbody,
    .contentpaneopen td,
    .contentpaneopen tr {
        display: block;
    }
	.contentpane, .contentpaneopen, p.texts {text-align:left;}
	
    .adap_table td {
        display: table-cell;
    }
    .adap_table tr {
        display: table-row;
    }
    .i3 {
        width: 100%;
    }
    label[for="buttonform"] {
        display: block;
    }
    .module h3,
    .moduletable h3,
    .submenu-block h3 {
        font-size: 140%;
    }
    h1 {
        font-size: 180%;
    }
    .h2up {
        font-size: 150%;
    }
    .promo {
        padding: 10px;
    }
    ul {
        padding-left: 15px;
    }
    #largeImage {
        width: 100%;
        height: auto;
    }
    #thumbs {
        text-align: center;
    }
    #thumbs img {
        float: none;
        display: inline-block;
    }
    .promo {
        height: auto !important;
    }
    .promo td {
        width: 100%;
    }
    #contact_text {
        width: 100% !important;
    }
    td[style="border-right-style: solid; border-right-width: 1px; border-color: #ccc;"] {
        border-right: medium none !important;
    }
    #buttonform:checked ~ #formazakaza {
        width: 100%;
        height: 650px;
    }
    #formazakaza iframe {
        width: 100% !important;
        height: 100% !important;
    }
}

@media only screen and (max-width: 700px) {
    #newsflash-block {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }
    #searchmod {
        width: 100%;
        background: transparent url("../images/style6/search-bg.png") no-repeat scroll top center;
        text-align: center;
    }
    img[src*='gidroservis24.ru/images/'],
    .imggidro,
    img[src^="images/"],
    img.i1 {
        width: 100% !important;
        height: auto;
        margin: 0 0 10px 0 !important;
    }
    img[src="images/stories/gcil/clip_imk.gif"] {
        width: 8px !important;
        height: 10px !important;
    }
    table[width] {
        width: 100% !important;
    }
}

@media only screen and (max-width: 500px) {
	#formazakaza_popup {
		margin-left: 0px;
	}
}
