@media screen and (max-width: 999px) {
	#mainWrapper {
		width: 100%;
		min-width: 320px;
	}
	main {
		width: 70%;
	}
	aside {
		width: calc(30% - 5px);
	}
	.attic, .asdBlc, .mainBlock {
		border-left: none;
		border-right: none;
	}
	.curtain .innerLayer { max-width: 100%; }
	.index-greeting {
		height: auto;
		-webkit-background-size: 116%;
		     -o-background-size: 116%;
		        background-size: 116%;
	}
	.index-greeting .inner {
		width: auto;
		margin: 0 5%;
	}
	#loginForm input[type="text"], #loginForm input[type="password"] {
		width: 21vw;
	}
	.srchBySite {
		display: flex;
	}
	.srchBySite input[name='q'] {
		width: 50%;
		-webkit-flex-grow: 1;
		        flex-grow: 1;
	}
	.srchBySite input[type='image'] {
		-webkit-flex-basis: 16px;
		        flex-basis: 16px;
	    -webkit-flex-shrink: 0;
	            flex-shrink: 0;
	}

	#mobileZyx {
		background-color: #ff8000;
		border-top: 1px solid silver;
		bottom: 0;
		display: none;
		min-height: 60px;
		min-width: 320px;
		position: fixed;
		width: 100%;
		z-index: 9999;
	}
	#mobileZyx > div,
	#mobileZyx object,
	#mobileZyx embed {
		width: 100% !important;
	}
	#mobileZyx img {
		display: block;
		width: 100%;
	}
	#mobileZyx .close {
		background: url('/images/icons.png') no-repeat -342px -72px;
		cursor: pointer;
		display: block;
		height: 21px;
		left: 4px;
		position: absolute;
		top: 4px;
		width: 21px;
		z-index: 9999999;
	}
	#mobileZyx .close i {
		cursor: pointer;
		display: inline-block;
		height: 22px;
		width: 22px;
	}
	#mobileZyx > .adsbygoogle {
		display: block !important;
		margin: 0 auto;
	}
    
    #topZyx {
        background-size: 180%;
        height: 100px;
    }
	.contestC3 {
		max-width: 100%;
		margin-top: 10px;
		overflow-x: auto;
	}
	#Bs3R img { max-width: 100%; height: auto; }
}

@media screen and (max-width: 820px) {
	.attic_info {
		width: 550px;
	}
	#mainWrapper, main, aside {
		width: 100%;
	}
	.asdTtl.tags_groups-toggle span {
		display: inline-block;
	}
	#lk_links .asdCnt {
		display: none;
		-webkit-columns: 3 auto;
		   -moz-columns: 3 auto;
		        columns: 3 auto;
	}
	.asdUsrLnk .asdCnt {
		display: none;
	}
	.asdUsrLnk .asdCnt hr {
		width: auto;
	}
}

@media screen and (max-width: 780px) {
	body {
		margin: 0;
	}
	.attic {
		display: none;
	}
	.attic_info {
		max-width: 100%;
		height: auto;
		position: static;
		-ms-overflow-x: auto;
		    overflow-x: auto;
	}
	aside {
		margin-bottom: 2em;
	}
	.dsFlTgWr { margin-left: 5%; }
	.srchBySite { padding-left: 10px; }
}

@media screen and (max-width: 660px) {
	.cmpRvw .grade { display: block; margin-bottom: 10px; }
	.u-search-form { width: 100%; }
	.u-search-form.f1 { margin: 0 0 25px; }
	.u-search-form .e1 { margin-top: 55px; }
}

@media screen and (max-width: 570px) {
	.index-greeting { background: white; }
	.index-greeting .inner { width: 100%; margin: 0; }
	#homepageNews .newsPic { display: none; }
	#homepageNews section ul { margin: 0; }
	#homepageNews section ul li.hover a { color: black; }
	#homepageNews section ul li.hover:after { display: none; }
	#lk_links .asdCnt {
		-webkit-columns: 2 auto;
		   -moz-columns: 2 auto;
		        columns: 2 auto;
	}
	.usrInfBlc .avatar-cell { width: 30%; }
	.usrInfBlc .avatar-cell img { max-width: calc(100% - 10px); }
	.certList .item { width: 100%; margin-bottom: 10px; }
	.listOfPM .item > div:first-child {
		-webkit-flex-basis: 12%;
		        flex-basis: 12%;
	}
	.listOfPM .avatar { width: 90%; }
	.pub-award { width: 100%; }
	.contestDescr > div:first-child {
		padding-left: 2%;
		-webkit-flex-shrink: 1;
		        flex-shrink: 1;
		-webkit-flex-basis: 40%;
		        flex-basis: 40%;
	}
	.contestLogo { width: 100%; }
	.contest-table td:first-child, .cntSchdC1, .contestC1 { width: 110px; }
	.contestC2 { max-width: calc(100% - 110px); }
	.contestC3 { max-width: 100%; margin-top: 10px; overflow-x: auto; }
	.dsFlTgWr { display: block; margin: 10px 0 0; }
	.pseudoTable > div:nth-child(odd) { margin-bottom: 5px; line-height: normal; }
	.pseudoTable > div:nth-child(odd), .pseudoTable > div:nth-child(even) { width: 100% !important; }
	.w50p { width: 100%; }
	.w50p.tar { text-align: left; }
	.crsBtns { flex-direction: column; }
	.pubAddCts.Opt .pseudoTable2 .c1, .pubAddCts.Opt .pseudoTable2 .c2 { display: block; width: 100%; }

	.mb-xs-1 { margin-bottom: 0.3rem }
	.mb-xs-2 { margin-bottom: 0.6rem }
}

@media screen and (max-width: 490px) {
	#regFrm .btn { flex-direction: column; }
	#regFrm .btn div { order: -1; margin-bottom: 16px; }
	.index-greeting .inner a[href="/advantages"] {
		white-space: nowrap;
		display: inline-block;
		margin-top: 10px;
	}
	#loginForm {
		width: 100%;
		-webkit-flex-flow: column;
		    -ms-flex-flow: column;
		        flex-flow: column;
	}
	#loginForm > div {
		height: auto;
		margin: 0 0 1.3em;
		-webkit-align-items: center;
		        align-items: center;
	}
	#loginForm input[type="text"], #loginForm input[type="password"] {
		width: auto;
		margin-top: 0.6em;
	}
	#loginForm input + a {
		display: none;
	}
	#loginForm > div:last-child {
		display: flex;
		height: 6em;
	}
	.types_of_pub .subitem a {
		display: inline-block;
		max-width: 86%;
	}
	.addPubInFav {
		float: none;
		margin-top: 10px;
		display: block;
		line-height: 2em;
		margin-bottom: -1.6em;
	}
	.cmRtWr {
		white-space: nowrap;
	}
	.pbLsPb, .dis_item {
		padding-left: 0;
		padding-right: 0;
	}
	.thanks_for_pub.vertically, .dis_item .num_of_cmm {
		position: static;
		margin: 0 10px 0 0;
		float: left;
	}
	.pbTgRtTl {
		margin-left: 0;
	}
	#msgBoardQuest .quest {
		display: block;
	}
	#msgBoardQuest .userpic {
		float: left;
	}
	#msgBoardQuest .answers .answer {
		display: block;
	}
	#msgBoardQuest .answers .answer .meat .info .vans {
		float: none;
		margin: 15px 0 10px;
	}
	.inviteHere.dis, .authorOfPub {
		display: block;
		margin: 10px 0;
	}
	.r2d_wrp.lower {
		padding-right: 10px;
	}
	#msgBoard .askForm, #msgBoardQuest #reply2discussion_form .link, #msgBoard .askForm .link, #attachVote_block, .attachImg_block {
		padding-right: 10px;
		padding-left: 10px;
	}
	#msgBoard .askForm label, #msgBoard .askForm .tags, #msgBoard .askForm .brdGrpLst,
	#msgBoardQuest #reply2discussion_form .link label, #msgBoard .askForm .link label {
		-webkit-flex-direction: column;
		    -ms-flex-direction: column;
		        flex-direction: column;
	}
	#msgBoard .askForm label span, #msgBoard .askForm .tags span, #msgBoard .askForm .brdGrpLst .col1,
	#msgBoardQuest #reply2discussion_form .link label span, #msgBoard .askForm .link label span {
	    -webkit-flex-basis: auto;
	            flex-basis: auto;
	    margin: 0 0 10px;
	}
	.disAdditMt {
		margin-left: 0;
	}
	#attachVote {
		display: block;
		margin-top: 15px;
	}
	.grLsGr {
		display: block;
	}
	.grLsGr .lg {
		float: left;
		min-width: 60px;
		width: 18%;
		margin: 6px 3% 5px 0;
	}
	.users-list .item td:first-child, .contests-list .item .logo { width: 18%; }
	.contests-list .item .logo { padding: 0 10px 0 0; }
	.users-list .item td:first-child img { width: calc(100% - 8px); }
	.infPartners .partner, .list-users .item {
		width: 100%;
		margin-right: 0;
	}
	.pubTtl, .pbTl, .cnTl {
		font-size: 1.5em;
		line-height: 1.2em;
	}
	.ln2sort {
		display: block;
		margin: 10px 0;
	}
	.dis_item .icoVote {
		position: static;
		float: right;
	}
	.userOnlineMark.search {
		width: calc(100% - 8px);
	}
	.contestC2 {
		max-width: 100%;
		margin-top: 10px;
	}
	.cmpRvw .rvwCnfm:after { content: 'Отзыв подтверждён документом'; }
}

@media screen and (max-width: 450px) {
	.mainBlock.cmpRvwWrp { padding: 10px 10px 0; }
	.cmpRvw { margin: 0 -10px; }
	.cmpRvw .itm { padding: 0 10px 25px 110px; }
	.cmpRvw .avatar { left: 10px; }
}

@media screen and (max-width: 420px) {
	.dis1stElm { flex-wrap: wrap; }
	.dis1stElm div:nth-child(2) { order: -1; width: 100%; margin-bottom: 8px; }
	.cmpRvw .itm { padding: 0 10px 25px 10px; }
	.cmpRvw .avatar { position: static; float: right; margin: 0 0 10px 15px; }
}

@media screen and (max-width: 390px) {
	.srchBySite input[type='image'] {
	    padding: 5px;
	}
	.lkSMList .item {
		-webkit-flex-direction: column;
		    -ms-flex-direction: column;
		        flex-direction: column;
	}
	.lkSMList .tm {
		-webkit-flex-basis: 100%;
		        flex-basis: 100%;
	}
	#lk_links .asdCnt {
		-webkit-columns: auto;
		   -moz-columns: auto;
		        columns: auto;
	}
	.info_about_author td:first-child {
		width: 24%;
	}
	.cmmItm {
		padding-left: 17%;
		position: relative;
	}
	.cmmItm .avatarWrap {
		margin-left: 0;
		left: 0;
		width: 16%;
	}
	.cmmItm .avatarWrap img {
		max-width: 90%;
	}
	.cmmLvl1, .cmmLvl2, .cmmLvl3 {
		margin-left: 0px;
	}
	.ib4mq {
		display: block;
		float: none;
		margin: 10px 0;
	}
	.qty_tags_in_dis {
		-webkit-columns: auto;
		   -moz-columns: auto;
		        columns: auto;
	}
	.list-users .item {
		width: 100%;
		margin-right: 0;
	}
	#testList.mainSrc .testItem {
		padding-left: 0;
	}
	#testList.mainSrc .rateThis {
		position: static;
		float: left;
		margin-right: 8px;
	}
	.listOfPM .item {
		display: block;
	}
	.listOfPM .item > div:first-child {
		width: 54px;
		float: left;
		margin-right: 5px;
	}
	.listOfPM .tm {
		text-align: left;
		margin-top: 15px;
	}
	.listOfPM .dl {
		margin-top: 0;
		float: right;
	}
	.contestDescr {
		display: block;
		padding-right: 10px;
		padding-left: 10px;
	}
	.contestDescr > div:first-child {
		width: 25%;
		float: right;
	}
	.contestDescr > div:last-child {
		display: inline;
	}
	.cntSchdC2 {
		display: block;
		margin: 10px 0 0 15px;
	}
	.crsBtns div:first-child { display: flex; justify-content: space-between; }
	.crsBtns div:first-child input.mr15 { margin-right: 0; }
}
