.pure-img-responsive {
    max-width: 100%;
    height: auto;
}

/*
Add transition to containers so they can push in and out.
*/
#layout,
#menu,
.menu-link {
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

/*
This is the parent `<div>` that contains the menu and the content area.
*/
#layout {
    position: relative;
    padding-left: 0;
}
    #layout.active #menu {
        left: 190px;
        width: 190px;
    }

    #layout.active .menu-link {
        left: 190px;
    }
/*
The content `<div>` is where all your content goes.
*/
.content {
    margin: 0 auto;
    padding: 0 2em;
    max-width: 1190px;
    margin-bottom: 0;
}

#maindiv{
	min-height:1300px;
}

/*
The `#menu` `<div>` is the parent `<div>` that contains the `.pure-menu` that
appears on the left side of the page.
*/

#menu {
    margin-left: -190px; /* "#menu" width */
    width: 190px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000; /* so the menu or its navicon stays above all content */
    background: #f7f7f7;
    overflow-y: hidden;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
    /*
    All anchors inside the menu should be styled like this.
    */
    #menu a {
        color: black;
        border: none;
        padding: 0.6em 0 0.6em 0.9em;
    }
    #menu a.btn{
	    font-weight: normal;
	    padding: 1px 3px;
	    border:1px solid #cdcdcd;
    }
    #banners a {
        padding: 0;
    }
    

    /*
    Remove all background/borders, since we are applying them to #menu.
    */
     #menu .pure-menu,
     #menu .pure-menu ul {
        border: none;
        background: transparent;
    }

    /*
    Add that light border to separate items into groups.
    */
    #menu .pure-menu ul,
    #menu .pure-menu .menu-item-divided {
        border-top: none;
    }
        /*
        Change color of the anchor links on hover/focus.
        */
        #menu .pure-menu li a:hover,
        #menu .pure-menu li a:focus {
            background: #fd6e21;
            color:white;
        }

    /*
    This styles the selected menu item `<li>`.
    */
    #menu .pure-menu-heading {
        background: #fd6e21;
        border-bottom:5px solid #dee4e8;
    }
    #menu .pure-menu-selected{
        background: #fd6e21;
    }
        /*
        This styles a link within a selected menu item `<li>`.
        */
        #menu .pure-menu-selected a {
            color: #fff;
        }

    /*
    This styles the menu heading.
    */
    #menu .pure-menu-heading {
        font-size: 110%;
        color: #fff;
        margin: 0;
    }

/* -- Dynamic Button For Responsive Menu -------------------------------------*/

/*
The button to open/close the Menu is custom-made and not part of Pure. Here's
how it works:
*/

/*
`.menu-link` represents the responsive menu toggle that shows/hides on
small screens.
*/
.menu-link {
    position: fixed;
    display: block; /* show this only on small screens */
    top: 0;
    left: 0; /* "#menu width" */
    background: #0d2a31;
    background: rgba(0,0,0,0.7);
    font-size: 12px; /* change this value to increase/decrease button size */
    z-index: 10;
    width: 2em;
    height: auto;
    padding: 2.1em 1.6em;
    box-sizing: content-box;
}

    .menu-link:hover,
    .menu-link:focus {
        background: #0d2a31;
    }

    .menu-link span {
        position: relative;
        display: block;
    }

    .menu-link span,
    .menu-link span:before,
    .menu-link span:after {
        background-color: #fff;
        width: 100%;
        height: 0.2em;
    }

        .menu-link span:before,
        .menu-link span:after {
            position: absolute;
            margin-top: -0.6em;
            content: " ";
        }

        .menu-link span:after {
            margin-top: 0.6em;
        }





/* -- Responsive Styles (Media Queries) ------------------------------------- */

/*
Hides the menu at `48em`, but modify this based on your app's needs.
*/
@media (min-width: 769px) {

    .header,
    .content {
        padding-left: 2em;
        padding-right: 2em;
    }

    #layout {
        padding-left: 190px; /* left col width "#menu" */
        left: 0;
    }
    #menu {
        left: 190px;
    }

    .menu-link {
        position: fixed;
        left: 190px;
        display: none;
    }

    #layout.active .menu-link {
        left: 190px;
    }
}

@media (max-width: 768px) {
    /* Only apply this when the window is small. Otherwise, the following
    case results in extra padding on the left:
        * Make the window small.
        * Tap the menu to trigger the active state.
        * Make the window large again.
    */

/* new menu for small screens */
#menu {
    margin-left: -190px; /* "#menu" width */
    width: 190px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000; /* so the menu or its navicon stays above all content */
    background: #0d2a31;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#maindiv{
	min-height:0;
}
    /*
    All anchors inside the menu should be styled like this.
    */
    #menu a {
        color: white;
        border: none;
        padding: 0.6em 0 0.6em 0.6em;
    }

    /*
    Remove all background/borders, since we are applying them to #menu.
    */
     #menu .pure-menu,
     #menu .pure-menu ul {
        border: none;
        background: transparent;
    }

    /*
    Add that light border to separate items into groups.
    */
    #menu .pure-menu ul,
    #menu .pure-menu .menu-item-divided {
        border-top: 1px solid #333;
    }
        /*
        Change color of the anchor links on hover/focus.
        */
        #menu .pure-menu li a:hover,
        #menu .pure-menu li a:focus {
            background: #333;
        }

    /*
    This styles the selected menu item `<li>`.
    */
    #menu .pure-menu-heading {
        background: #fd6e21;
    }
    #menu .pure-menu-selected{
        background: #1f8dd6;
    }
        /*
        This styles a link within a selected menu item `<li>`.
        */
        #menu .pure-menu-selected a {
            color: #fff;
        }

    /*
    This styles the menu heading.
    */
    #menu .pure-menu-heading {
        font-size: 110%;
        color: #fff;
        margin: 0;
    }
    
    
/* эти важнее */
    #layout.active {
        position: relative;
        left: 190px;
    }
    #menu{
	    position:fixed;
    }    
    
    
}


.pure-menu-link{
	white-space: normal
}








/* -- Other styles (must be mixed with polpred.css) ------------------------------------- */

#menu a{
	margin-bottom:0;
	padding-top:4px;
	padding-bottom: 3px;
	font-weight: bold;
}
#menu a.pure-menu-heading{
	padding-top:7px;
	padding-bottom: 5px;	
}
#menu .small-menu a{
	text-transform: none;
	margin:0;
	padding:0;
	padding-left:20px;
	font-weight: normal;
}
#menu li{
	margin-top:0;
}

@media (max-width: 1325px) {
	#searchtext_top{
	  width:550px
	}
}
@media (max-width: 1290px) {
	#searchtext_top{
	  width:520px
	}
}
@media (max-width: 1265px) {
	#searchtext_top{
	  width:430px
	}
}
@media (max-width: 1165px) {
	#searchtext_top{
	  width:370px
	}
}

@media (max-width: 1100px) {
    .lh {
        display:none;
    }
	#searchtext_top{
	  width:230px
	}
}

@media (max-width: 995px) {
    .mh {
        display:none;
    }
    #submitbutton{
	    display:block;
	    float:none;
	    width:100%;
	    margin: 10px 0 5px 0;
    }
    #searchtext{
	    width:300px
    }}

@media (max-width: 768px) {
    .sh {
        display:none;
    }
    #menu li{
	margin-top:3px;
	}
	#sortby{
		margin:0;
	}
	#dpbeg {
		margin-top:10px
	}
	#news_list p{
		font-size:12pt;
	}
	#searchform_top{
		width: 80%;
	}
	#searchtext_top{
	  width: 70%;
	}
	#searchtext{
	    width:70%
	}
}
@media (max-width: 600px) {
    .xsh {
        display:none;
    }
    #searchform_top .pure-button, #searchform_top input{
	    display: inline;
    }
    #searchform_top .pure-button{
	    margin-top:-5px;
    }
    #searchtext{
	    width:99%
    }
}
@media (max-width: 320px) {
    .xxsh {
        display:none;
    }
    #searchtext{
	    width:99%
    }
}