@media screen and (max-width:2560px) {
}
@media screen and (max-width:1800px) {
	/* --- header --- */
		body.not_main .category_icon.hidden {max-height: 700px;}
}
@media screen and (max-width:1600px) {
	/* --- header --- */
		body.not_main .category_icon.hidden {max-height: 650px;}
		#Title_site.top_line {background-size: cover;}
}
@media screen and (max-width:1560px) {
	/* --- header --- */
		body.not_main .category_icon.hidden {max-height: 600px;}
}
@media screen and (max-width:1440px) {
	/* --- header --- */
		body.not_main .category_icon.hidden {max-height: 550px;}
}
@media screen and (max-width:1366px) {
	/* --- header --- */
		#Title_site.top_line {
			background-size: contain;
			min-height: 190px;
		}
		div#Logo img {max-width: 10%;}
		div#Logo_title img {max-width: 9%;}
		.top_menu:before {
	    	padding-top: 4.1%;
		    min-height: 0px;
		}
		ul.inline li {font-size: 16px;}

		body.not_main .category_icon.hidden {max-height: 500px;}
}
@media screen and (max-width:1280px) {
	/* --- header --- */
		body.not_main .category_icon.hidden {max-height: 450px;}

	#Main, #news_slider {
		margin: 0;
		padding: 1%;
		width: 100%;
	}
	h1.article_title {margin-left: -1%;}

	#Info {padding-bottom:300px;}
	/* --- footer --- */
		#footer { 
			width:90%;
			/*min-width: 1000px;*/
			margin:0 5%;
		    left: 0;
		}
		#Forma, #footer {min-width: initial;}
}
@media screen and (max-width:1150px) {
	table.family_tree {margin-left: 0px;}
	table.family_tree > tbody > tr > td {
	    padding: 5px;
	    border-collapse: collapse;
	}

}
@media screen and (max-width:1024px) {
	body {font-size: 16px;}

	/* --- header --- */
		#Title_site.top_line {
			min-height: 190px;
			height: initial;
		}
		#Title_site.top_line {background-size: 1300px;}
		div#Logo img {max-width: 125px;}
		div#Logo_title img {max-width: 100px; margin-top: 12px;}
		.top_menu .menu_list li.menu_item_el.middle-left {margin-right: 8%;}
		.top_menu .menu_list li.menu_item_el.middle-right {margin-left: 8%;}
		.top_menu:before, .top_menu ul.menu_list li .divider {padding-top: 54px;}
		.top_menu ul.menu_list li {font-size: 15px; padding: 0 7px;}
	body.mobile .owl-nav {display: none;}
}
@media screen and (max-width:980px) {
	body {font-size: 15px;}
	/* --- header --- */
		.top_menu ul.menu_list li {font-size: 13px; padding: 0 5px;}

	/* --- horse family histoty table --- */
		table.horse_info > tbody > tr > td {
		    display: inline-block;
		    width: 100%;
		}

		table.horse_info > tbody > tr > td.portrait {
		    text-align: center;
		}

	/* --- footer --- */
		#footer {
		    width: 100%;
			/*min-width: inherit;*/
		    padding: 10px;
		    margin: 0 auto;
		}
}
@media screen and (max-width:840px) {
	#Main, #news_slider {padding: 7px 2%;}
	h1.article_title, #news_slider > h2 {font-size: 1.3em;}
	h1.article_title {margin-left: -2%;}

	.top_menu ul.menu_list li:nth-child(odd) {display: none;}
	.top_menu .menu_list li.menu_item_el.middle-left {margin-right: 12%;}
	.top_menu .menu_list li.menu_item_el.middle-right {margin-left: 12%;}


	/*--------- top menu mobi -------------*/
/*		.top_menu:before
		, .top_menu ul.menu_list li .divider {
		    padding-top: 0;
		    display: none;
		}
		.top_menu ul.menu_list li:nth-child(odd) {
		    display: block;
		}
		#header ul.menu_list
		, .top_menu .menu_list li.menu_item_el.middle-left
		, .top_menu .menu_list li.menu_item_el.middle-right
		 {margin: 0 !important;}

*/		#Name_Sayt.top_dark_line {z-index: 101; position: relative;}

		.menu.top_menu {
		    transition: all ease 1s;
		}
		#Info {transition: opacity ease 1s;}

		/* --------- menu switcher ------------- */
			#mobile_menu_switcher {
			    top: 25px;
			    right: 0;
			    z-index: 200;
			    padding: 10px 10px 15px 15px;
			    /*position: fixed;*/
			}

			div#mobile_menu_switcher.hidden.menu_mobile
			, #header:not(.menu_opened) div#mobile_menu_switcher.menu_mobile > img.hidden.menu_open
			, #header.menu_opened div#mobile_menu_switcher.menu_mobile > img.hidden.menu_close
			 {display: block;}

			div#mobile_menu_switcher.menu_mobile > img.mobi_icons {filter: brightness(200%) drop-shadow(1px 1px 0px rgba(0,0,0,0.5));}
		
		/* --------- menu opened ------------- */
			#header.menu_opened #mobile_menu_switcher {position: fixed;}
			#header.menu_opened .menu.top_menu {
			    padding-top: 200px;
			    height: 100%;			
			    background: #23598a;
			    top: 0px;
			    display: block;
			    position: fixed;
			    overflow: scroll;
		    }
			#header.menu_opened .top_menu:before
			, #header.menu_opened .top_menu ul.menu_list li .divider {
			    padding-top: 0;
			    display: none;
			}
			#header.menu_opened .top_menu ul.menu_list li:nth-child(odd) {
			    display: block;
			}
			#header.menu_opened ul.menu_list
			, #header.menu_opened .top_menu .menu_list li.menu_item_el.middle-left
			, #header.menu_opened .top_menu .menu_list li.menu_item_el.middle-right
			 {margin: 0 !important;}
			#header.menu_opened .top_menu ul.menu_list li
			, body.mobile #header.menu_opened .top_menu .menu_list > li.menu_item_el.paddington
			 {
			    font-size: 20px;
			    min-height: 20px;
			    padding: 7px;
			}
			#header.menu_opened #Title_site.top_line
			, #header.menu_opened #Name_Sayt.top_dark_line
			 {position: fixed; z-index: 150;}
			#header.menu_opened #Title_site.top_line {background: #23598a; background: transparent;}
			#header.menu_opened #Name_Sayt.top_dark_line {top: 0; width: 100%;}
			body.menu_opened {background: #23598a;}
			body.menu_opened #Info
			, body.menu_opened .category_icon.hidden 
			, body.menu_opened #footer
			 {opacity: 0; display: none;}

}
@media screen and (max-width:780px) {
	body {font-size: 14px;}
	h1.article_title {padding-right: 30px;}

	/* --- contacts form --- */
		#ymaps-map {width: 100% !important;}

		form[name="contacts"] textarea {
		    max-width: 320px;
		}

		form[name="contacts"] > table > tbody > tr > td > textarea {
		    width: 96%;
		}
	table.family_tree > tbody > tr > td {font-size: 1em;}
	/*==========  footer  ==========*/
		#left_form_kont div
		, #left_form_kont p
		 {padding-left: 10px;}
}
@media screen and (max-width:640px) {
	#Info {padding-bottom:200px;}

	/*==========  footer  ==========*/
		#left_form_kont {
		    width: 100%;
		    text-align: center;
		}
		#left_form_kont div
		, #left_form_kont p
		 {padding-left: 0px;}

		#left_form_kont div {padding-top: 6px;}
		#left_form_kont p {margin: 2px;}
		p#Phone_number > br {display: none;}
		p#Phone_number > span {margin: 0 5px;}

		#center_form_kont, #right_form_kont {display: none;}

		.site_details {
		    position: relative;
		    width: 100%;
		    bottom: inherit;
		    left: inherit;
		}
		.uaBiznes {float: right;}
		.copyright {float: left;}
}
@media screen and (max-width:580px) {
	/* --- header --- */
		body.not_main .category_icon.hidden {height: 400px;}
	#Main, #news_slider {padding: 5px 1%;}
	h1.article_title {margin-left: -1%;}
	h1.article_title, #news_slider > h2 {font-size: 1.5em;}
	/* Общие Стили для списков новостей, статей, разделов*/
	    #articles_columns a:hover, #articles_ext_columns a:hover, #category_ext_columns a:hover, #category_columns a:hover{text-decoration:none;}
	    .art_ext_columns li, .cat_ext_columns li, .img_ico_ext, .img_ico_news {
	    	width:98%;
	    }

	/*==========  Horse family table's rules  ==========*/
		table.family_tree > tbody > tr > td.odd_parent:before
		, table.family_tree > tbody > tr > td:before
		 {
		    right: -9px;
		    border-right: 8px solid #0a498c;
		    border-top: 4px solid transparent;
		    border-bottom: 3px solid transparent;
		    border-left: 0 solid transparent;
		    margin-top: -5px;
		}
		table.family_tree > tbody > tr > td {padding-left: 0px;padding-right: 1px;}
		table.family_tree > tbody > tr > td {
		    font-size: 0.8em;
		    font-family: Arial;
		    /*white-space: normal;*/
		}

	/*==========  Table as list rules  ==========*/
		table.table_as_list > tbody > tr > td,
		table.table_as_list_1-5 > tbody > tr > td,
		table.table_as_list.col_1-5 > tbody > tr > td,
		table.gallery_table.col_1-5 > tbody > tr > td,
		table.table_as_list_1-4 > tbody > tr > td,
		table.table_as_list.col_1-4 > tbody > tr > td,
		table.gallery_table.col_1-4 > tbody > tr > td {
		    width: 49% !important;
		}
		table.table_as_list_1-3 > tbody > tr > td,
		table.table_as_list.col_1-3 > tbody > tr > td,
		table.gallery_table.col_1-3 > tbody > tr > td,
		table.table_as_list_1-2 > tbody > tr > td,
		table.table_as_list.col_1-2 > tbody > tr > td,
		table.gallery_table.col_1-2 > tbody > tr > td {
		    width: 100% !important;
		}

}
@media screen and (max-width:540px) {
	body {font-size: 13px;}
	/* --- header --- */
		#Title_site.top_line {
			min-height: initial;
			min-height: 125px;
			background-size: cover;
		}
		div#Logo img {max-width: initial; max-height: 75px;}
		div#Logo_title img {max-width: initial; max-height: 25px;margin-top: 10px;}

	/*--------- top menu mobi -------------*/
		.top_menu:before
		, .top_menu ul.menu_list li .divider {
		    padding-top: 0;
		    display: none;
		}
		.top_menu ul.menu_list li:nth-child(odd) {
		    display: block;
		}
		#header ul.menu_list
		, .top_menu .menu_list li.menu_item_el.middle-left
		, .top_menu .menu_list li.menu_item_el.middle-right
		 {margin: 0 !important;}

		#Name_Sayt.top_dark_line {z-index: 101; position: relative;}

		.menu.top_menu {
		    background: #23598a;
		    top: 0px;
		    display: block;
		    position: fixed;
		    height: 0; 
		    overflow: scroll;
		    transition: all ease 1s;
		}
		.top_menu ul.menu_list li
		, body.mobile .top_menu .menu_list > li.menu_item_el.paddington
		 {
		    font-size: 20px;
		    min-height: 20px;
		    padding: 7px;
		}
		#Info {transition: opacity ease 1s;}

		/* --------- menu switcher ------------- */
			#mobile_menu_switcher {
			    top: 20px;
			    right: 0;
			    z-index: 200;
			    padding: 10px 10px 15px 15px;
			    /*position: fixed;*/
			}

			div#mobile_menu_switcher.hidden.menu_mobile
			, #header:not(.menu_opened) div#mobile_menu_switcher.menu_mobile > img.hidden.menu_open
			, #header.menu_opened div#mobile_menu_switcher.menu_mobile > img.hidden.menu_close
			 {display: block;}

			div#mobile_menu_switcher.menu_mobile > img.mobi_icons {filter: brightness(200%) drop-shadow(1px 1px 0px rgba(0,0,0,0.5));}
		
		/* --------- menu opened ------------- */
			#header.menu_opened #mobile_menu_switcher {position: fixed;}
			#header.menu_opened .menu.top_menu {
			    padding-top: 160px;
			    height: 100%;			
			}
			#header.menu_opened #Title_site.top_line
			, #header.menu_opened #Name_Sayt.top_dark_line
			 {position: fixed; z-index: 150;}
			#header.menu_opened #Title_site.top_line {background: #23598a; background: transparent;}
			#header.menu_opened #Name_Sayt.top_dark_line {top: 0; width: 100%;}
			body.menu_opened {background: #23598a;}
			body.menu_opened #Info
			, body.menu_opened .category_icon.hidden 
			, body.menu_opened #footer
			 {opacity: 0; display: none;}

	/* --- contacts form --- */
		form[name="contacts"] > table > tbody > tr > td {
		    display: block;
		    width: initial;
		}
}

@media screen and (max-height: 450px) {
	/*.cb-slideshow li:nth-child(1) span {background-image: url(/images/slider/slider1_sm.jpg);}*/
	.cb-slideshow li:nth-child(2) span {background-image: url(/images/slider/slider2_sm.jpg);}
	.cb-slideshow li:nth-child(3) span {background-image: url(/images/slider/slider3_sm.jpg);}
	.cb-slideshow li:nth-child(4) span {background-image: url(/images/slider/slider4_sm.jpg);}
	.cb-slideshow li:nth-child(5) span {background-image: url(/images/slider/slider5_sm.jpg);}
	/*.cb-slideshow li:nth-child(6) span {background-image: url(/images/slider/slider6_sm.jpg);}*/

	#Title_site.top_line, .top_menu {top: 20px;}
	#Name_Sayt.top_dark_line {min-height: 20px;}
}
@media screen and (max-height: 425px) {
	body {font-size: 13px;}
	/* --- header --- */
		#Title_site.top_line {
			min-height: initial;
			min-height: 125px;
			background-size: cover;
		}
		div#Logo img {max-width: initial; max-height: 75px;}
		div#Logo_title img {max-width: initial; max-height: 25px;margin-top: 10px;}
		.top_menu:before, .top_menu ul.menu_list li .divider {padding-top: 40px;}
		
		body.not_main .category_icon.hidden {max-height: 400px;	}

		#mobile_menu_switcher {top: 18px;}
		#header.menu_opened .menu.top_menu {padding-top: 140px;}
}
@media screen and (max-width:500px) {
	/*--------- vertical slides -------------*/
		.cb-slideshow li:nth-child(1) span {background-image: url(/images/slider/slider1_v.jpg);}
		.cb-slideshow li:nth-child(2) span {background-image: url(/images/slider/slider2_v.jpg);}
		.cb-slideshow li:nth-child(3) span {background-image: url(/images/slider/slider3_v.jpg);}
		.cb-slideshow li:nth-child(4) span {background-image: url(/images/slider/slider4_v.jpg);}
		.cb-slideshow li:nth-child(5) span {background-image: url(/images/slider/slider5_v.jpg);}
		.cb-slideshow li:nth-child(6) span {background-image: url(/images/slider/slider6_v.jpg);}

}
@media screen and (max-width:450px) {
	/* --- header --- */
		body.not_main .category_icon.hidden {height: 350px;}
	/* Общие Стили для списков новостей, статей, разделов*/
	    #articles_columns a:hover, #articles_ext_columns a:hover, #category_ext_columns a:hover, #category_columns a:hover{text-decoration:none;}
	    .art_ext_columns li, .cat_ext_columns li, .img_ico_ext, .img_ico_news {
	    	width:98%;
	    }
}
@media screen and (max-width:375px) {
	/* --- header --- */
		/*body.not_main .category_icon.hidden {height: 300px;}*/
	#Main, #news_slider {padding: 5px 3px;}
	h1.article_title {margin-left: -3px;}

		img.info_icon {
		    height: 1.2em;
		    margin-left: -2px;
		    margin-right: -2px;
		}
}
@media screen and (max-width:320px) {
	/* --- header --- */
		/*body.not_main .category_icon.hidden {height: 250px;}*/
	#Main, #news_slider {padding: 5px 1px;}
	h1.article_title {margin-left: -1px;}
	/*==========  Table as list rules  ==========*/
		table.table_as_list > tbody > tr > td,
		table.table_as_list_1-5 > tbody > tr > td,
		table.table_as_list.col_1-5 > tbody > tr > td,
		table.gallery_table.col_1-5 > tbody > tr > td,
		table.table_as_list_1-4 > tbody > tr > td,
		table.table_as_list.col_1-4 > tbody > tr > td,
		table.gallery_table.col_1-4 > tbody > tr > td,
		table.table_as_list_1-3 > tbody > tr > td,
		table.table_as_list.col_1-3 > tbody > tr > td,
		table.gallery_table.col_1-3 > tbody > tr > td,
		table.table_as_list_1-2 > tbody > tr > td,
		table.table_as_list.col_1-2 > tbody > tr > td,
		table.gallery_table.col_1-2 > tbody > tr > td {
		    width: 100% !important;
		}
}