/**
 # mega_orthodontis - Mega Orthodontis Template For Joomla! 1.7
 # author 		OmegaTheme.com
 # copyright 	Copyright(C) 2011 - OmegaTheme.com. All Rights Reserved.
 # @license 	http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 # Website: 	http://omegatheme.com
 # Technical support: Forum - http://omegatheme.com/forum/
**/
/**------------------------------------------------------------------------
 * file: layout.css 1.7.0 00001, March 2011 12:00:00Z OmegaTheme $
 * package:	 Mega Orthodontis Template
 *------------------------------------------------------------------------*/
 
* {
	margin:0;
	padding:0;
}
body#page{
	background:  url(../images/bg.jpg) no-repeat fixed;
	background-color:#0a4b71;
	color: #545454;
/*	font-family: Verdana, Arial,Helvetica,sans-serif;
*/	font-size:12px;
	background-size: cover;
}
.mega_wrapper{
	width: 100%;
	margin:0 auto;
}
.mega_wrapper_i,
.mega_header,
.mega_menu,
.mega_topnews,
.mega_main_body,
.mega_bots,
.mega_footer{
	width: 100%;
	float: left;
}
/*.mega_header{
	background: #014b92 url(../images/header_bg.jpg) repeat-x center bottom;
}
*/.mega_header_w,
.mega_menu_w,
.mega_topnews_w,
.mega_main_body_w,
.mega_bots_w,
.mega_footer_w{
	width: 965px;
	margin:0 auto;
}
.mega_main_body_w{
	background: #fefefe;
	padding-top: 15px;
	color: #666666;
	min-height:500px;
}
.mega_menu_w{
	background-image:url(../images/bgm.png) ;
	background-attachment: scroll; 
	background-repeat: repeat-x; 
	background-position: 0% 50%; 
	background-color: transparent;
	height: 64px;
	
	}
.logobox{
	width: 965px;
	float: left;
	margin-top: 28px;
	margin-bottom: 28px;
}
a.logo{
	background: url(../images/logo.png) no-repeat;
	width: 298px;
	height: 76px;
	display: block;
	float: left;
}
.adress{
	float:right;
	color: #cecece;
	font-family:Arial, Helvetica, sans-serif;
	}
	
.adress table{
	border-collapse:collapse;
	margin-top: 15px;
	margin-bottom:0px;
	width: 216px;
	}
	
.adress table td{
	margin-top: 0;
	padding: 0;
	}

.social_top a {
	padding-left: 2px;
	display: block;
    transition: all 0.5s ease;
}

.social_top a img {
	border-radius: 2px;
}

.social_top a:hover {
	transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
}

	
.mega_menu{
	position: relative;
	z-index: 9999;
	margin:0 auto;
}
.mega_topnews{
}
.mega_topnews_w{
	background: #fefefe;
	position: relative;
	z-index: 0;
	overflow: hidden;
}
.mega_topnews_left_top,
.mega_topnews_left_bot,
.mega_topnews_right_top,
.mega_topnews_right_bot{
	width: 5px;
	height: 5px;
	position: absolute;
	z-index: 9999;
}
/*.mega_topnews_left_top{
	background: url(../images/round_left_top.png) no-repeat;
	left: 0px;
	top: 0px;
}
.mega_topnews_right_top{
	background: url(../images/round_right_top.png) no-repeat;
	right: 0px;
	top: 0px;
}
.mega_topnews_left_bot{
	background: url(../images/round_left_bot.png) no-repeat;
	left: 0px;
	bottom: 0px;
}
.mega_topnews_right_bot{
	background: url(../images/round_right_bot.png) no-repeat;
	right: 0px;
	bottom: 0px;
}
*/
.mega_topnews_mid{

}
.mega_topnews_i{
	border-bottom: 1px #ccc solid;
	width: 100%;
	float: left;
}

/* Style for main body */
.mega_main_body{
	/*padding-bottom: 20px;*/
}
.mega_main_body_i{
	overflow: hidden;
}
.main_content{
	width: 480px;
	float: left;
	padding: 0 0 0 20px;
}
.main_content_i{
	overflow: hidden;
	min-height:500px;
}
.main_content_fn,
.main_content_fr{
	width: 715px;
	float: left;
	padding: 0 0 40px 20px;
}
.main_content_fn_fr{
	width: 100%;
	float: left;
}
.news_column{
	float: left;
	width: 220px;
	margin-left: 15px;
	border-left: 1px #e1e1e1 solid;
}
.news_column_i{
	padding: 0 0 0 14px;
	overflow: hidden;
}
.news_column .megamodule,
.right_column .megamodule{
	width: 100%;
	float: left;
	margin-bottom: 20px;
}
.news_column .megamodule a,
.right_column .megamodule a{
	color: #878787;
}

.news_column h3,
.right_column h3{
	border-bottom: 1px #c8c8c8 solid;
	color: #0056a3;
	font-size: 30px;
	font-weight: normal;
	line-height: normal;
	margin-bottom: 10px;
	padding-bottom: 6px;
}
.right_column{
	width: 220px;
	float: right;
	border-left: 1px #e1e1e1 solid;
}
.right_column_i{
	padding: 0 20px 0 15px;
	overflow: hidden;
}
.right_column ul.menu{
	
}
.right_column ul.menu li {
	
}
.right_column ul.menu li li{
	padding-left: 15px;
}
.right_column ul.menu li a{
	color: #3e69c5;
	font-size: 15px;
	display: block;
	margin: 2px 0;
	padding: 6px 0;
	border-bottom: 1px #ccc dotted;
}
.right_column ul.menu li.active a,
.right_column ul.menu li a:hover{
	color: #E69D00;
}
.right_column .megamodule{
	width: 100%;
	float: left;
	margin-bottom: 15px;
}
.mega_bots{
	color: #9b9b9b;
}
.mega_bots_w{
	padding-top: 15px;
	border-top: 1px solid #ccc;
	background: #FFFFFF;
}
.mega_bots_i{
	padding-bottom: 30px;
	overflow: hidden;
}
.mega_bots .botbox{
	color: #fff;
	font-size: 11px;
	line-height: 18px;
}
.mega_bots .botbox a.readmore{
	color: #FF9C00;
}
.mega_bots .botbox h3{
	font-size: 17px;
	color: #2b2b2b;
	font-weight: bold;
	line-height: normal;
	margin-bottom: 10px;
	padding-bottom: 12px;
	border-bottom: 1px #ccc solid;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.mega_bots .botbox h3 span{
    display: block;
    text-align: center;
}

.mega_bots .firstbox{
	float: left;
}
.mega_bots .firstbox .megaclassbox_i{
	padding-right: 20px;
}
.mega_bots .midbox{
	float: left;
	margin-left: 3px;
}
.mega_bots .midbox  .megaclassbox_i{
	padding: 0 10px;
}
.mega_bots .lastbox{
	float: right;
}
.mega_bots .lastbox .megaclassbox_i{
	padding-left: 20px;
}
.mega_bots a,
.mega_bots li a{
	display: block;
	color: #666666;
	line-height: 18px;
}
.mega_bots li a:hover{
	text-decoration: underline;
}


.newsflash-horiz {
    color: #666;
    display: flex;
    justify-content: space-between;
	padding: 0 25px;
}

.newsflash-horiz-li {
    width: 22%;
    min-height: 390px;
    position: relative;
}

.newsflash-horiz-li p.readmore {
    bottom: 0;
    position: absolute;
    right: 0;
}

.newsflash-title {
    font-size: 15px;
}

/*  */
.mega_footer{
	/*background:url(../images/footer_bg2.jpg) repeat-x;*/
	padding-top: 5px;
	padding-bottom: 20px;
	color: #FFF;
}
.mega_footer_i{
	position: relative;
}
.mega_bottom_menu_copyright{
	float: left;
	width: 100%;
}
.mega_bottom_menu{
	float:right;
	padding-top:18px;
	}
.mega_bottom_menu ul{
	padding-top: 5px;
}
.mega_bottom_menu ul li{
	background: url(../images/bottom_menu_border.jpg) no-repeat left 4px;
	display: inline;
	padding: 0 12px;
}
.mega_bottom_menu ul li.first-item{
	background: none;
	padding-left: 0;
}
.mega_bottom_menu ul li a{
	color: #fff;
}
.mega_copyright{
	font-size: 11px;
	margin-top: 8px;
	color: #FFFFFF;
	padding-top:18px;
	text-align:center;
}
.mega_follow{
	float: right;
	margin-top: 5px;
}
.registration{
	padding-left:20px;
}
.container {position: relative;
display: block;
margin: 30px auto;
width: 70%;
max-width: 980px;
}
.container > .button {
margin: 12px;
}
/* Кнопки */
.buttonm {
position: relative;
display: inline-block;margin: 12px;
padding: 0 20px;
height: 36px;
border: 1px solid;
border-radius: 3px;
background-clip: padding-box;
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.25);
-moz-box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.25);
box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.25);
color: #363636;
vertical-align: top;
text-align: center;
text-decoration: none;
text-shadow: 0 -1px rgba(0, 0, 0, 0.4);
font-size: 14px;
line-height: 35px;
cursor: pointer;
}
.rounded-button{border-radius: 18px; }
.circular-button {
padding: 0;
width: 36px;
border-radius: 65px 65px 65px 65px;
}
.button:before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-image: -webkit-radial-gradient(center top, farthest-corner, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
background-image: -moz-radial-gradient(center top, farthest-corner, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
background-image: -o-radial-gradient(center top, farthest-corner, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
background-image: radial-gradient(center top, farthest-corner, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
content: '';
pointer-events: none;
}
.button:hover:before {
background-image: -webkit-radial-gradient(farthest-corner, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
background-image: -moz-radial-gradient(farthest-corner, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
background-image: -o-radial-gradient(farthest-corner, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
background-image: radial-gradient(farthest-corner, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
}
.button:active {
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.button:active:before {
content: none;
}
.button-green {
/*border-color: #478228 #478228 #3c6f22;*/
background: #EBEBEB;
/*background-image: -webkit-linear-gradient(top, #EBEBEB, #EBEBEB 66%, #EBEBEB);
background-image: -moz-linear-gradient(top, #EBEBEB#69c03b, #EBEBEB 66%, #EBEBEB);
background-image: -o-linear-gradient(top, #69c03b, #5ca934 66%, #54992f);
background-image: linear-gradient(to bottom, #69c03b, #5ca934 66%, #54992f);*/
}
.button-green:active {
border-color: #3c6f22 #478228 #478228;
background: #EBEBEB;
}
.popup h1,
.popup h2,
.popup h3 {
color: #414040;
text-shadow: 0 1px 3px rgba(0,0,0,.3);
font-weight: normal;
}
.popup h1 { /* заголовок 1 */
font-size:24px;
}
.popup h2 { /* заголовок 2 */
font-size: 1.5em;
}
.popup h3 { /* заголовок 3 */
font-size: 1.2em;
}
/* Базовые стили слоя затемнения и модального окна  */
.overlay {
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 9999;
visibility: hidden;
/* фон затемнения */
background-color: rgba(0, 0, 0, 0.7);
opacity: 0;
position: fixed; /* фиксированное поцизионирование */
cursor: default; /* тип курсара */
-webkit-transition: all 0.6s;
-moz-transition: all 0.6s;
-ms-transition: all 0.6s;
-o-transition: all 0.6s;
transition: all 0.6s;
}
.overlay:target {
visibility: visible;
opacity: 1;
}

/* стили модального окна */
.popup {
top: 0;
right: 0;
left: 50%;
font-size: 14px;
font-family: 'Tahoma', Arial, sans-serif;
z-index: 10000;
margin: 0 auto;
width: 100%;
min-width: 320px;
max-width: 820px;
/* фиксированное позиционирование, окно стабильно при прокрутке */
position: fixed;
padding: 15px;
border: 1px solid #383838;
/* скругление углов */
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
border-radius: 4px;
background-color: #FFFFFF;
/* внешняя тень */
-webkit-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
-moz-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
-ms-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
-o-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
/* трансформация */
-webkit-transform: translate(-50%, -150%);
-ms-transform: translate(-50%, -150%);
-o-transform: translate(-50%, -150%);
transform: translate(-50%, -150%);
/* анимируем трансформацию */
-webkit-transition: transform 0.6s ease-out;
-moz-transition: transform 0.6s ease-out;
-ms-transition: transform 0.6s ease-out;
-o-transition: transform 0.6s ease-out;
transition: transform 0.6s ease-out;
}
/* активируем мод. окно */
.overlay:target+.popup {
top: 50%;
-webkit-transform: translate(-50%,-50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
/* формируем кнопку закрытия */
.close {
position: absolute;
padding: 0;
top: -10px;
right: -10px;
width: 22px;
height: 22px;
border: 2px solid #ccc;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
background-color: rgba(61, 61, 61, 0.8);
-webkit-box-shadow: 0px 0px 10px #000;
-moz-box-shadow: 0px 0px 10px #000;
box-shadow: 0px 0px 10px #000;
text-align: center;
text-decoration: none;
font-weight: bold;
line-height: 20px;
-webkit-transition: background-color ease .7s;
-moz-transition:  background-color ease .7s;
-ms-transition:  background-color ease .7s;
-o-transition:  background-color ease .7s;
transition: background-color ease .7s;
}
.close:before {
color: rgba(255, 255, 255, 0.9);
content: '\2715';
text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
font-size: 12px;
 
}

.close:hover {
background-color: rgba(252, 20, 0, 0.8);
}
.popup p {
margin: 0;
padding: 10px;
}
/* планшет */
@media only screen and (min-width: 768px) and (max-width: 959px) {
	.popup {
		width: 95%;
	}
}
/* смарт */
@media only screen and (min-width: 320px) and (max-width: 767px) {
	.popup {
		width:85%;
	}
}
/* изображения внутри окна */
.popup img {
display: block;
border: none;
width: 100%;
height: auto;
}
/* миниатюры слева/справа */
.pic-left, 
.pic-right {
    width: 25%;
    height: auto;
}
.pic-left {
    float: left;
    margin: 5px 15px 5px 0;
}
.pic-right {
    float: right;
    margin: 5px 0 5px 15px;
}
/* встроенные элементы м-медиа, фреймы */
/* адаптивный блок видео */
.video { 
position: relative; 
padding-bottom: 56.25%; 
height: 0; 
overflow:hidden; 
} 
.video iframe, 
.video object, 
.video embed {
position: absolute; 
top: 0; 
left: 0; 
width: 100%;
height: 100%; 
}

.btn {
  display: inline-block;
  font-family: arial,sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: rgb(68,68,68);
  text-decoration: none;
  user-select: none;
  padding: .4em 1.2em;
  outline: none;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 2px;
  background: rgb(91, 90, 90) linear-gradient(#d7d7d7, #d8d8d8);
  transition: all .218s ease 0s;
}
.btn:hover {
  color: rgb(24,24,24);
  border: 1px solid rgb(198,198,198);
  background: rgb(91, 90, 90) linear-gradient(#cac9c9, #d8d8d8);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  cursor: pointer;
}
.btn:active {
  color: rgb(51,51,51);
  border: 1px solid rgb(204,204,204);
  background: rgb(238,238,238) linear-gradient(rgb(238,238,238), rgb(224,224,224));
  box-shadow: 0 1px 2px rgba(0,0,0,.1) inset;
}