@media screen and (min-width: 800px) {
    .www-version{display: none;}
}
@media screen and (max-width: 1166px) {
    #header #secound #main-menu li a{
        line-height: 36px;
    }
    .safari #header #secound #main-menu li.folder ul li{
        width: 100%;
    }
    #header #first #menu-toggle{
        display: table;
    }
    #header #first .menu,
    #header #secound #main-menu{
        display: none;
    }
    #header #secound #main-menu .menu.first .nav-collapse .nav.nav-list{
        height: auto;
        width: calc(100% - 40px);
        float: left;
        margin: 0px;
        padding:0px;
    }
    #header #secound #main-menu.active li.folder{
        float: right;
        cursor: pointer;
    }
    #slider .controls a{
        left: 20px;
    }
    #header #first .menu{
        border-top: 1px solid #cdcdcd;
        top: 36px;
    }
    #slider .slide-content .text h3{
        bottom: 160px;
    }
    #slider .slide-content .text .slide-description{
        bottom: 110px;
    }
    #header #secound #menu2-toggle{
        display: table;
    }
    #header #first .menu ul li{
        width: 100%;
    }
    #header #secound #main-menu li a {
        width: calc(100% - 70px);
    }
    #main-menu.active .nav.nav-list li.folder {
        width: 95%;
    }
    #header #secound #main-menu li.folder ul li{
        width:100%;
    }
    #header #secound #main-menu li {
        height: auto;
        border-left: 0px !important;
        float: right;
        border-right: 0px !important;
    }
    #header #secound #main-menu li.folder:hover ul {
        display: none;
    }
    #header #secound #main-menu li.folder ul{
        position: relative;
        top:0px;
    }
    #main-menu.active ul.nav-list li{
        width: 95%;
        border-top: 1px solid #0b589a;
    }
    #main-menu.active ul.nav-list li:first-of-type{
        border-top: 0px;
    }
    .folder .drop{
        display: table;
    }
    #header #secound #main-menu li:last-of-type {
        border-right: none;
        border-bottom: none;
    }

    #header #secound #main-menu li a {
        width: calc(100% - 30px);
    }
    #header #secound #main-menu li.folder ul{
        background: none;
    }
}
@media screen and (min-width: 480px) {
    #responsive_recaptcha .solution {
        float: left;
        width: 62%;
        margin-top: 0.5em;
        padding: 1em 1%;
    }
    #responsive_recaptcha .solution input {
        margin: 0.35em auto;
        width: 90%;
    }
    #responsive_recaptcha .options {
        float: right;
        width: 34%;
        padding-left: 0.5em;
    }
}
@media screen and (min-width: 1166px){
    #main-menu .nav.nav-list li a{
        height: 36px;
    }
    #q-btn{display: none;}
}
@media screen and (max-width: 1023px) {
    .homepage .news-item.no-photo{
        min-height: 90px;
    }
    .homepage .news-item:nth-child(3n){
        margin-left: 0px;
    }
    .homepage .news-item:nth-child(3),
    .homepage .news-item:nth-child(4),
    .homepage .news-item:nth-child(5){
        display: none;
    }
    body.homepage #news .news-item:nth-child(4),
    body.homepage #news .news-item:nth-child(3){
        display: none;
    }
    .news-item:nth-child(2n-1){
        margin-left: 0px;
    }
    #news .block-content .news-item{
        width:100% !important;
    }
    #news .block-content .news-item img{
        width: 100%;
        height: 100%;
    }
}
@media (max-width: 568px) {
    .safari #units.block-7 div#block-7.block-content {display: none;}
    .safari #block-21 {display: table;}
    .safari #content #news{
        min-width: 280px;
        width: 100% !important;
    }
    .safari .news-item {
        min-width: 280px;
        width: 100% !important;
        margin-left: 0px;
    }
    .safari #blocks .bot-item,
    .safari #content #units,
    .safari #content #news,
    .safari #blocks2.banners .bot-item{
        min-width: 280px;
        width:100% !important;
        margin-left: 0px;
    }
    .safari #blocks2.banners .bot-item.section1 .block-content{
        width:90% !important;
    }
    .safari #blocks2.banners .bot-item h3{
        float: left !important;
        width: 90% !important;
    }	
	#module-blog-content .news  .photos .photo,
	#module-description-content .news  .photos .photo,
	#module-news-content .news  .photos .photo,
	#module-newscategory-content .news  .photos .photo{
		float:left;
		width: calc(94% / 3);
		height: auto;
		min-height: 80px;
		margin-bottom: 20px;

	}
	#module-news-content .news  .photos .photo a, #module-newscategory-content .news  .photos .photo a {
		height: auto;
		line-height: 100%;
	}
	#module-blog-content .news  .photos .photo,
	#module-description-content .news  .photos .photo,
	#module-news-content .news  .photos .photo,
	#module-newscategory-content .news  .photos .photo img {
		width: 100%;
		max-width: 100%;
		height: auto;
	}	
}
@media screen and (max-width: 500px) {
    #header #secound #logo img{
        width: 100px;
    }
}
@media screen and (max-width: 800px) {
    #popup{
        left: 0;
    }
    #popup .popup_block{
        left: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
    #popup .popup_block div{
        width: 100% !important;
        padding: 5px 0 !important;
    }
    #popup .close {
        right: 0 !important;
    }
    #content #units {
        width: 300px;
    }
    #content #news {
        width: calc(100% - 320px);
    }

    .logo_normal{display: none;}
    .logo_mobile{display: block;}
    #header #secound #logo {
        width: auto;
    }
    h1.owner-label span{
        display:block;
    }
    div.hide-in-mobile{display:none;}

}

@media screen and (max-width: 1024px) {
    #footer .newsletter .block-content input#newsletter-email {
        right: 80px;
        top: 60px;
        width: calc(50% - 80px);
        height: 33px;
    }
    h1.owner-label{
        padding-right:20px;
    }
    .safari #blocks2.banners .bot-item.section1 .block-content {
        width:85%;
    }
    #footer .socials-icons,
    #footer #shortcuts,
    #footer .contact-block,
    #footer #author-foot{
        margin-left: 0px;
    }
    #footer .newsletter .block-content input.submit{
        right: 20px;
        top: 59px;
        width: 10%;
    }

    #blocks .bot-item h3{
        font-size: 1.5em;
    }

    #footer .socials-icons {
        width: 50%;
    }
    #footer .newsletter {
        width: 50%;
    }
    .safari #footer .newsletter .headline,
    .safari #footer .newsletter .block-content,
    .safari #footer .contact-block,
    .safari #footer .info-block{
        width: 90%;
    }
    #footer .newsletter .headline,
    #footer .newsletter .block-content,
    #footer .contact-block,
    #footer .info-block{
        width: 100%;
    }
    #shortcuts .block-content{
        width: 50%;
        margin-bottom: 20px;
    }
    #shortcuts .block-content:nth-child(2n){
        clear: left;
    }
    #footer .info-block{
        margin-bottom: 25px;
        margin-top: -45px;
    }
    #footer .info-block .labels .structure{
        margin-right: 120px;
    }
    #footer .info-block .labels .biphref{
        margin-top: -10px;
    }
    /*    #slider .slides .slide img{
            height: 320px;
        }*/
}

@media (max-width: 360px) {
    #admin-area{
        display: none !important;
    }
    .block-23 .item span{
        max-width: 99%;
    }


}
@media (max-width: 460px) {
    #slider .controls #slider-next a {
        margin-left: 410px !important;
    }
}
@media (max-width: 480px) {
    .bx-controls.bx-has-pager{
        display:none;
    }
    #slider .controls #slider-prev a {
        background-size: 30px 30px;
        display: block;
        /*float: left;*/
        height: 30px;
        left: 20px;
        /*margin-left: 20px;*/
        margin-top: 0;
        position: absolute;
        width: 30px;
    }
    #slider .controls #slider-next a {
        background-size: 30px 30px;
        display: block;
        float: left;
        height: 30px;
        margin-left: 430px;
        margin-top: 0px;
        position: relative;
        width: 30px;
        z-index: 200;
    }
    #slider,
    #slider .controls{position: relative;}
    #slider .block-slider .navigator{
        position: absolute;
        bottom: 81px;
    }
    #slider .controls #slider-prev a:hover,
    #slider .controls #slider-next a:hover{
        background-size: 30px 30px;
    }
    #slider .slide-content .text{background: transparent !important;}
    #slider .slide-content .text h2.label{
        background-color: rgba(0, 0, 0, 0.8);
        display: block;
        margin-left: -25px;
        padding-left: 30px;
        width: 100%;
        line-height: 20px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    #blocks2.banners .bot-item.section2 .block-content .position .date{
        width: 60px;
    }
    #info_c_box{
        font-size: 12px;
    }
    #info_c_box .span2 {
        height: 30px;
        line-height: 30px;
        width: 75px;
        bottom: 0px;
    }
    #info_c_box .container .row .span10 {
        text-align: justify;
        width: calc(100% - 40px);
        padding-top: 40px;
    }
    #slider .slides .slide img {
        width: 100%;
        height: auto !important;
        margin-bottom: 80px;
    }
    #slider .slide-content .text{
        background-image: none;
        background-color: rgba(0,0,0,0.4);
    }
    #slider .slide-content .text h2 {
        bottom: 65px;
    }
    #slider .slide-content .text .label {
        font-size: 1.2em;
    }
    #slider .slide-content .text {
        text-align: left;
        bottom: 4px;
        height: 301px !important;
        margin-left: -20px;
        margin-top: -220px;
        padding-top: 0;
        position: absolute;
        width: calc(100% + 20px);
    }
    .homepage .block-news .news-item .text{
        overflow: hidden;
    }
}

@media (max-width: 640px) and (min-width: 480px) {
	.homepage .news-item p.news-header a {
		color: #fff;
		background-color: #0b589a;
	}
}

@media (max-width: 640px) {
    #header #secound #controls{width: 157px;}
    #module-news-content .news-item,
    #module-newscategory-content .news-item{padding-bottom: 0;}
    .news-item a img,
    .news-item .text,
    .news-item .date,
    .news-item .category-name{display:none;}
    .news-item a.photo{height: 50px;}
    #header #secound #controls .contrast h1{
        display: none;
    }
    .news-item h4, 
    .news-item h3{
        width: calc(100% - 80px);
        margin-top: -46px;
        display: flex;
        align-items: end;
        padding-left: 10px;
        min-height: 66px;
        float: none;
    }
    .for-margin .news-item:nth-child(3n - 1){
        margin-left: 0px;
    }
    #header #secound #controls .contrast{
        width: 27px;
        height: 27px;
        padding-left: 0px;
        padding-right: 0px;
        overflow: hidden;
    }
    #LoginForm #login.login-field,
    #LoginForm #password.password-field{
        max-width: none;
    }
    #header #first .panel{
        position: static;
    }
    #header #first .panel .search-form.active,
    #header #first.row .container .panel .block-useraccount.block-content.active,
    #header #first.row .container .panel .language-list.active{
        left: 0px;
        width: 100%;
    }
    .language-list li{
        float: left;
        width: 50%;
    }
    #header #first.row .container .panel .block-useraccount.block-content.active{
        width: calc(100% - 40px);
    }
    .gazeta-prz .news-item,
    .aktualnosci .news-item{
        width: 100% !important;
    }
    .gazeta-prz .news-item a,
    .aktualnosci .news-item a{
        width: 100%;
    }
    .gazeta-prz .news-item .text,
    .aktualnosci .news-item .text{
        width: calc( 100% - 40px ) !important;
    }
    .gazeta-prz .news-item:nth-child(2n),
    .aktualnosci .news-item:nth-child(2n){
        margin-left: 0px;
    }
    #map-canvas iframe{
        height: 220px;
        width: 100%;
    }
}
@media (max-width: 560px) {
    #main-menu.active .folder ul{padding: 5px;}
    #header #secound #main-menu li.folder ul li a{
        line-height: 20px;
    }
    #owner-content .owner-data{
        width: 100%;
    }
    #footer .info-block .labels{
        height: 110px;
    }
    #content #news{
        padding-left: 0px;
    }
    /*    #module-blog-content .more, .units-btn,
        #module-news-content .more, .units-btn{
            margin-bottom: 20px;
        }*/
    #block-23{
        display: none;
    }
    .right-side.scale .news-item.clearfix.scale.news{
        width: 100%;
    }
    #footer .newsletter .block-content input.submit{
        right: 20px;
        top: 107px;
        width: 20%;
    }



    #header #secound #main-menu.active{
        font-size: 0.8em;
    }
    #news .block-content #more{
        margin-left: 0px;
    }
    #content #news,
    #blocks .bot-item,
    #footer .socials-icons,
    #footer .newsletter,
    #shortcuts .block-content{
        width: 100%;
    }

    #baner,
    #content #units h3,
    #content #units #block-7{display: none;}
    #blocks .bot-item:nth-child(2){margin-left: 0px;}
    #footer .socials-icons{
        margin-bottom: 25px;
    }
    .both .block-content p:nth-child(1) {
        margin-left: 0;
    }
    .both .block-content p:nth-child(2) {
        margin-left: 0;
        margin-top: 0;
        max-width: 200px;
    }

    #footer .info-block .labels .biphref{
        margin-top: 30px;
    }

    #footer .info-block .labels .structure {
        bottom: 2px;
        display: block;
        left: 0px;
        position: absolute;
    }
    #news .block-content .news-item{
        margin-left: 0px;
    }
    #news .headline {
        padding-left: 0px;
    }
    #news .block-content .news-item{ width: 100%;}
    #gradesComments .grade .date{
        width:80px;
    }
    #gradesComments .grade .status{
        width:40px;
    }
    #gradesComments .grade .author{
        width: calc(100% - 140px);
    }

}
@media (min-width: 560px){
    #block-21{
        display: none;
    }
}

@media (max-width: 360px){
    #owner-content .owner_image{
        float:left;
    }
    #slider .controls #slider-next a {
        margin-left: 260px !important;
    }
    #owner-content .owner-data{
        border:none;
        float:left;
        width:100%;
    }

    h1.owner-label{
        display:none;
    }

    .owner-data  label{
        width:110px;
    }
    .owner_image{
        margin-top:10px;
    }

    #slider .controls #slider-next a{
        margin-left: 260px;
    }
    #responsive_recaptcha,
    #content textarea,
    .container .right-side .contact form .field input,
    #module-newsletter-content .text input,
    #module-faq-content .text input,
    #module-faq-content .textarea textarea{
        width: 91%;
    }
    #header #first #menu-toggle,
    #header #first .panel #search-ico {
        width: 49px;
    }
    #footer #author-foot .optilogo {
        float: none;
        text-align: right;
        width: 100%;
    }
    #footer #author-foot {
        height: 60px;
    }
    #blocks2.banners #bot-item.section2 .block-content .position .posts {
        width: 50px;
    }
    #blocks2.banners div#bot-item.section2 .block-content .position p{
        min-width: 50px;
    }
    #blocks2.banners #bot-item.section2 .block-content .position .date{
        width: 96px;
    }
    #blocks2.banners #bot-item.section2 .block-content a .position{
        line-height: 22px;
        overflow: hidden;
        zoom: 1;
    }
    #blocks2.banners #bot-item.section2 .block-content .position img.icon {
        margin: 25px 10px 25px 8px;
        width: 20px;
    }
    #blocks2.banners #bot-item.section2 .block-content .position .title {
        width: calc(100% - 186px);
    }
    #blocks2.banners #bot-item.section2 .block-content .position .title p{
        text-align: left;
    }
    #available-projects-top .text{
        overflow-x: visible;
        text-align: left;
    }
    #available-projects-top  .search-area{
        padding-top:0px;
        margin-top:50px;
    }

    #available-projects-top .description-simple {
        font-size: 12px;
        /*height: 110px;
        left: 7px;
        overflow: hidden;
        position: absolute;
        top: 0;*/
        float:left;
        width: 234px;
    }

    #module-searchadvanced-content h4.project_title .expand_all{
        float:left;
    }

    #other-projects  .text{
        text-align: left;
    }
    #module-searchadvanced-content li.page_title h4{
        width:210px;
    }
}
@media (max-width: 320px){
    #news .block-content #more{
        width: 100% ;
    }


    #header #first .panel #search-ico{
        border-left: 0px !important;
    }

    #header #first .panel #lang-ico{
        width: 45px;
    }
    #header #first .panel #lang-ico:hover{
        width: 55px;
        padding-left: 20px;
    }

}
@media (max-width: 768px){
    .safari #blocks2.banners .bot-item.section1 {
        margin-top:20px;
    }
    .safari #content #units,
    .safari #blocks2.banners .bot-item.section1 {
        width:40%;
    }

    #blocks2.banners .bot-item.section2 #block-26.block-content .position .date,
    #blocks2.banners .bot-item.section2 #block-26.block-content .position .posts{
        display: none;
    }
    #blocks2.banners .bot-item.section1,
    #blocks2.banners .bot-item.section2{
        width: 100%;
    }
    #blocks2.banners .bot-item.section2{
        margin-top: 20px;
    }
}
@media (max-width: 480px){
    #slider .slide-content .text h2.label{
        width: calc(100% - 95px);
        font-size: 1em;

    }
    .scale .text{
        overflow-x:scroll;
    }

    #content #units,
    #block-21{
        width: 100%;
    }

    #more.units-btn,
    #more.units-btn:hover{
        text-align: center;
        width: calc(100% - 4px);
    }
    #news .block-content #more,
    .units-btn{
        width: calc(100% - 5px);
    }

    #module-blog-content .more,
    #module-news-content .more,
    #module-newscategory-content .more{
        width: calc(100% - 38px) !important;
    }

    #slider .slide-content .text {
        height: 215px;
        margin-left: -20px;
        margin-top: -220px;
        width: calc(100% + 20px);
        padding-top: 0;
    }
    #slider .slide-content .text h3 {
        bottom: 80px;
    }
    .bx-default-pager{
        left: -20px;
        width: calc(100% + 40px);
        background: black;
    }
    #slider .controls #slider-prev a{
        margin-left: -20px;
    }
    #slider .slide-content .text .slide-description{
        display: none;
    }
    #content textarea,
    .container .right-side .contact form .field input,
    #module-newsletter-content .text input,
    #module-faq-content .text input,
    #module-faq-content .textarea textarea{
        width: 94%;
    }
    .container .right-side .contact form .field input:focus,
    .container .right-side .contact form .field textarea:focus{
        border: 2px solid #003c82 !important;
    }
    .faq-form{
        width: 100%;
    }
    .container .right-side .contact form .field label{
        padding: 0;
        margin: 0 10px 5px;
        width: 94%;
    }
    #footer #author-foot .optilogo {
        float: none;
        text-align: center;
        width: 100%;
    }
    #footer #author-foot {
        height: 60px;
    }
    #blocks2.banners .bot-item.section2 .block-content .position .icon{
        width: 20px;
    }
    #blocks2.banners .bot-item.section2 .block-content .position p{
        width: 100%;
        min-width: 49px;
        max-width: 100%;
        text-align: center;
    }
    #blocks2.banners .bot-item.section2 .block-content .position .posts{
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }
    #module-newsletter-content .text input,
    #module-faq-content .text input,
    .container .right-side .contact form .field input[type="text"],
    .container .right-side .contact form .field textarea {
        width: 91% !important;
    }
    #responsive_recaptcha .options{
        margin-top: 0.5em;
    }

}
@media (max-width: 380px){
    #slider .controls #slider-next a{
        margin-left: 310px !important;
    }
}
@media (max-width: 340px){
    #slider .controls #slider-next a{
        margin-left: 290px !important;
    }
}
@media (max-width: 320px){
    #slider .controls #slider-next a{
        margin-left: 270px !important;
    }
    #slider .slide-content .text h3 {
        bottom: 75px;
        height: 52px;
        left: 10px;
        line-height: 26px;
        overflow: hidden;
        width: 278px;
    }
}

@media (max-width: 440px){
    .container .right-side .contact form .field label, form .field input:not([type="submit"]){
        width: 90%;
    }
    #responsive_recaptcha .solution input,
    #content textarea,
    .container .right-side .contact form .field input,
    #module-newsletter-content .text input,
    #module-faq-content .text input,
    #module-faq-content .textarea textarea{
        width: 91%;
    }
    #responsive_recaptcha{
        width: 95%;
    }
    #module-newsletter-content .text input,
    #module-faq-content .text input,
    .container .right-side .contact form .field input[type="text"],
    .container .right-side .contact form .field textarea {
        width: 91% !important;
    }

    #footer .cookiehref,
    #footer .submit-bug{
        display:block;
        float:left;
        width: 100%;
        margin-top:5px;
    }

    #footer .structure{
        display: block;
        width: 100%;
        float: left;
    }
}

@media (max-width: 860px){
    .container .left-side,
    .container .right-side,
    .safari .container .left-side,
    .safari .container .right-side{
        max-width: 100%;
        width: 100%;
    }
    .container .left-side .menu,
    .container .left-side .headline,
    .container .left-side #block-23,
    .container div.left-side .block-content,
    .container .left-side .nav-list{
        width: 100%;
        max-width: 100%;
        float: left;
    }

}
@media (min-width: 1220px){
    #header #secound #main-menu{
        display: table !important;
    }
}
@media (max-width: 1210px) {
    .container{
        position: relative;
        width: calc(100% - 40px);
        padding-left: 20px;
        padding-right: 20px;
        margin: auto;
    }
    .home{
        max-width: 100%;
        margin: auto;
    }
	
		.homepage .block-news .news-item.science a.photo {
		display: block;
		height: auto;
		width: 50%;
	}
	
	.homepage .block-news .news-item.science p.science-header {
		width: calc(50% - 60px);
		margin-left: 30px;
		margin-top: 20px;
		margin-bottom: 30px;
	}
	
	.homepage .block-news .news-item.science h4 {
	  width: calc(50% - 60px);
	  margin-left: 30px;
	  margin-right: 20px;
	  margin-top: 10px;
	  display: block;
	  float: left;
	  padding-left: 0;
	}
	
	.homepage .block-news .news-item.science h4 a {
		position: relative;
		top: 0;
		transform: none;
	}
	
	.homepage .block-news .news-item.science .text {
		display: none;
	}
}
@media (max-width: 768px) {
    .safari #content #units{
        width:295px !important;
    }
    .safari #content #news, .safari #blocks2.banners .bot-item.section2 {
        width:55%;
    }
    .safari #blocks .bot-item {
        width:30%;
    }
}
@media (max-width: 560px) {
    #footer .newsletter .block-content input.submit {
        top: 74px;
    }
    #footer .newsletter .block-content input#newsletter-email {
        right: 100px;
        top: 74px;
        width: calc(100% - 330px);
    }
}
@media (max-width: 450px) {
    #footer .newsletter .block-content input.submit {
        top: 119px;
    }
    #footer .newsletter .block-content input#newsletter-email {
        right: 70px;
        top: 120px;
        width: calc(100% - 90px);
    }
    #footer #shortcuts {
        margin-top: 45px;
    }
	
	.homepage .block-news .news-item.science p.science-header {
		margin-bottom: 10px;
	}
}


@media (min-width: 861px) and (max-width: 1100px) {
    .container-mobile-full {
        clear: both;
        max-width: 320px;
        width: 100%;
    }
}
@media (max-width: 580px) {
    .share-box{width: 100%;}
}
@media (max-width: 680px) {
    .container-mobile-full {
        clear: both;
        max-width: 320px;
        width: 100%;
    }
}
