@media only screen and (min-width: 0px) and (max-width: 900px) {

	#wrapper {min-width:220px}
	#banner20 {display:none !important;}
	.bannersline {display:none;}
	.yandex-direct  {display:none;}
	#admin-links  {display:none;}
	.printer {display:none}
	#level-catalog-mob {display:block !important;}
	#level-catalog {display:none;}


	#mob-menu {display:block; position:absolute; top:20px; right:20px;}
	#logo {width:100%; float:none; text-align:left;}
	#themes-menu, body.theme-0 #themes-menu {max-width:100%; margin:0; display:none; margin-left: 0 !important;}
	#themes-menu td, body.theme-0 #themes-menu  td{width: auto;}
	.desktop-proryv{display: none !important;}
	#themes-menu table, #themes-menu tr {display:block;}
	#themes-menu td {display:block; float:left;}

	.theme-menu-cell a{font-size:11px; color:black;}
	.theme-menu-cell img {width:auto; height:30px;}
	
	
	/* FLBOX */
	#flbox {max-width:90%;}
	

	/* PRORYV  */
	.pr-logo {width: 50%;}
	.pr-text {width: 50%;}
	.pr-menu {float:none; margin:0 auto; width:auto; margin-bottom:10px;}
	.list-row {width:100% !important; float:none !important; height:auto !important;}

	/* LEVEL 2 */
	#level2-col1 {width:50%; float: left; margin:0; margin-right:4%;}
	#level2-col2 {width:46%; float: left; margin:0;}
	#level2-col3 {clear:both; margin:0 0 20px 0; display:none;}
	#level2-banners {position:static;}

	/* MAINPAGE */
	.col {width: 100%; margin-bottom:30px !important}
	.col-pad {padding:0 !important;}

	.gridrow-1-1-1-1 .col-1-2, .gridrow-1-1-1-1 .col-3-4 {width:100%;}
	.gridrow-1-1-1-1 .col-1, .gridrow-1-1-1-1 .col-3 {float: left; width:50%; margin:0; margin-right:4%;}
	.gridrow-1-1-1-1 .col-2, .gridrow-1-1-1-1 .col-4 {width:46%; float:left;margin:0; }
	.gridrow-1-2-1 .col {width:100%; float:none; margin:0;}
	.gridrow-3-1 .col {width:100%; float:none; margin:0;}
	.gridrow-3-1-fixed .col {width:100%; float:none; margin:0;}
	.gridrow-1-1-1 .col-1 {width:100%; float:none; margin:0;}
	.gridrow-1-1-1 .col-2, .gridrow-1-1-1 .col-3  {width:50%}
	.gridrow-1-1-1-corp .col-1 {width:100%; float:none; margin:0;}
	.gridrow-1-1-1-corp .col-2, .gridrow-1-1-1-corp .col-3  {width:50%}
	.gridrow-1-1-1-wed .col-1 {width:48%; float:left;}
	.gridrow-1-1-1-wed .col-2 {width:50%; margin-right:0; float:left;}
	.gridrow-1-1-1-wed .col-3  {width:100%; float:none; margin:0; clear:both;}
	.gridrow-1-1-2 .col-1, .gridrow-1-1-2 .col-2  {width:45%; margin-right:5%;}
	.gridrow-1-1-2 .col-3  {width:100%;}
	.gridrow-1-3 .col, .gridrow-1-3-fixed .col {width:100%; float:none; margin:0}

	.m-user {float: left; margin-right:20px; width: auto !important;}
	.m-user:nth-child(n+8) {display:none;}
	.m-user.sotr:nth-child(n+5) {display:none;}
	.m-news:nth-child(n+7) {display:none;}
	.m-news1:nth-child(n+7) {display:none;}
	.m-afisha:nth-child(n+6) {display:none;}
	.m-articles:nth-child(n+7) {display:none;}


	/* ÑÏÈÑÎÊ ÔÈÐÌ */
	.raion-links {display:none;}
	.catalog-list-item:nth-child(2n+1) {border-bottom:3px solid #fcfbeb;}
	.catalog-list-item:nth-child(1n+1) {clear:both;}
	.catalog-list-item:last-child {border-bottom:none;}
	.firms_hor_sep {margin:0;}
	.firm-list-img {width:120px; height:120px;}
		

	/* ÑÒÐÀÍÈÖÀ ÔÈÐÌÛ */
	#firms-slider {display:none;}
	#leftcol, #rightcol, #centercol, #maincol {float:none; margin: 0 0 20px !important; width:100%;}
	#content {margin:0 !important;}
	.recommend-item {float:none; width:100%;}
	.f-eventnn-logo {width:50%; float:left;}
	.f-login {width:50%; float:left;}
	.f-logo {width:50%; float:left;}
	.f-contacts {width:50%; float:right;}
	.f-map {width:50%; float:right; clear: right;}
	#YMapsID {width:100% !important}
	.f-rating, .f-sestat, .f-counter {display:none;}
	.f-skidki {border:none; padding:0;}
	.f-social {width:48%; float:left;}
	.f-owner {width:48%; float:right;}
	.f-video iframe,.f-video object,.f-video embed {width:100% !important; height:200px !important}
	/*.video {display:none;}*/
	.f-contacts2 {display:none;}
	.f-links {text-align:center;}
	.f-title2 {display:block; text-align:center;}
	.f-title {display:none;}



	/* GALLERY */
	.gallery-item-wrap {width: 100% !important;}
	.gallery-img-wrap {padding:0; border:none; border-radius:0; text-align:center;}
	.gallery-img {max-width: 100%;}
	.img-prev {position:static; float:left;}
	.img-next {position:static; float:right;}


	/* forms */
	.fleft, .fright {float:none; width:100%;}
	.stdform input[type=text], .stdform textarea  {width:98%;}

	/* rightcol */
	.rblock {width:48%; float: left;}
	.rblock:nth-child(2n) {float:right}
	.rblock:nth-child(2n+1) {clear:both;}

	/* MISC */
	.gtext, .agtext, .ndescr, .adescr{display:none;}

	.list-row {font-size:14px}
	.list-img {width:50px; height:50px;}
	.list-row.afisha-row .list-img  {width:80px; height:80px;}

	.article_group_link {font-size:14px;}

	.letters-nav {display:none;}
	.catalog-list-item {float: none; width:100%;}
	.firms_vert_sep {display:none}

	.block1of3 {width:100%; float:none; margin-bottom:10px;}

	.article-body img {max-width:100%; height:auto !important; float:none !important;}
	iframe, object, embed {max-width:100%;}

	.half {float:none; width:100%;}
	
	
	
	
	/* THEMES */
	#fav {display:none;}
	#theme-desc {margin:0 0 10px 15px !important;}

	.activerestcatalog-col {width:100% !important; float:none; margin-bottom:5px;}
	
	.drcatalog div {width: auto; padding-right:20px; height:150px;}
	
	.col-1.col-dr {width:50%; float: left;}
	.col-2.col-dr {width:50%; float: left;}
	.col-3.col-dr {width:540px; margin:0 auto; float: none; clear:both;}
		
	.profi-big-link {width: auto;}	
	
	.wedding-catalog-cell {width:50%; margin-bottom:20px;}
	.wedding-catalog-cell:nth-child(2n+1) {clear:both;}
	.wedding-catalog-cell.last {width:100%;}
	.wedding-photo {width:50%;}
	.wedding-photo-sep {display:none;}
	.wedding-articles {float:left; width:46%; margin-left:2%; margin-right:2%;}
	
	.vertmob-comment {width:30%; margin-right:2%; float:left;}
	
	.hall-photo, .hall-photo-seminar {width:50%;}
	.hall-photo:nth-child(2n+1), .hall-photo-seminar:nth-child(2n+1) {clear:both;}
	
	.afishamod-left, .afishamod-right {float:none; width:100% !important; margin:0 !important;}
	.afishamod-calendar-col  {width:48% !important; float:left !important; margin:0 !important;}
	.afishamod-rub-col {width:48% !important; float:right !important; margin:0 !important;}
	.afishamod-itemscol {width:100%; margin-bottom:15px;}
	.afisha-theme .afishamod-itemscol {width:100%; margin-bottom:15px;}
	.afisha-next, .afisha-prev{display:none;}
	.afisha-wrapper {height:auto !important;}
	.afisha-wrapper .items {position:static; height:auto;}
	.afisha-wrapper .item:nth-child(n+6) {display:none;}
	
	.kids-catalog-cell {width:50%;}
	.kids-kostyl, .seminar-kostyl {width:100%; margin-top:0px;}
	
	
	/* CHAT */
	#chat-popup {left:0 !important; top:0 !important; right:0 !important; bottom:0 !important; width:100%; height:100%;}
	#chat-popup-body {position:absolute; top:23px; bottom:0; left:0; width:100%; height:auto;}
	body.chat-open {overflow:hidden;}
}



@media only screen and (min-width:0px) and (max-width: 480px) {

	/* PRORYV HEADER */
	.pr-logo, .pr-text {width: 100%; float:none; text-align:center; margin:0;}
	.pr-text {margin: 10px 0;}
	.pr-menu {font-size:11px;}
	.pr-menu img {height:30px}
	.pr-menu table tr td:last-child {display:none}
	.pr-menu table td {padding: 2px 2px !important;}

	/* LEVEL 2 */
	#level2-col1, #level2-col2 {width:100%; float:none; margin:0 auto;}
	#level2-col1 > div {margin-left: auto; margin-right:auto;}
	#level2-col2 {text-align:center;}
	#level2-banners {display:none;}

	/* GRID */
	.col {width:100% !important; float:none; margin:0;}

	.rblock {float:none; width:100%;}

	/* FIRM PAGE */
	.f-eventnn-logo, .f-login, .f-logo, .f-contacts,.f-map, .f-social, .f-owner {width:100%; float: none; text-align:center;}
	.f-login {text-align:left;}

	/* AUTH */
	#auth-block {width:94%; margin-left:-47%;}
	.auth-block-inner  {padding: 5px;}
	
	/* THEMES */
	.col-3.col-dr > div {float:none; margin:auto auto; margin-bottom: 20px;}
	.profi-big-link {width: 100%; text-align: center; float:none; margin-bottom:40px;}
		.profi-big-link > div {height:auto;}
		
	.wedding-catalog-cell {width:100%; float:none;}
	.wedding-photo {width:100%;}
	.wedding-articles {width:100%; margin-left:0; margin-right:0;}
	.vertmob-comment {width:99%; margin-right:0; float:none;}
	
	.hall-photo, .hall-photo-seminar {width:100%; float:none;}
	
	.afishamod-calendar-col, .afishamod-rub-col {width:100% !important; margin-bottom:10px !important;}
	
	/* CHAT */
	#chat-users {display:none; position: absolute; top:0; bottom:0; left:0; right:0; z-index:6; background-color:#fff; width:100%;}
	#chat {left:0;}
	#chat-message {left:0;}
	#chat-showusers {display:inline}
	.fll.audios {
        float: none;
    }
    .bh.active-users-header {
        margin-top: 30px;
        margin-left: 0 !important;
    }
    #notepad-tag {display: none;}
}