/* ----------------------------------------------------------------------------------------------------------
1) HTML tags
---------------------------------------------------------------------------------------------------------- */

body {padding:25px 0; background:url("../design/bg.gif") 0 0 repeat-x; font:0.75em/1.5 "arial", sans-serif;}

h2, h3, h4, h5, h6, address, blockquote, table, dl, fieldset {margin:15px 0;}

p {margin:0;}

h1 {margin:12px 10px 4px 0; font-size: 24px;}
/* ----------------------------------------------------------------------------------------------------------
2) HTML styles
---------------------------------------------------------------------------------------------------------- */


/* ----------------------------------------------------------------------------------------------------------
3) Layout
---------------------------------------------------------------------------------------------------------- */

#main {width:940px; padding:10px; margin:0 auto; overflow:hidden;}

    #header {position:relative; height:172px; padding:0 0 0 0; background:url("../design/meridian-logo.png") no-repeat center; overflow:hidden;}
    #header #logo {margin:0;}
    
    #slogan {top:24px; right:0; width:268px; padding:2px 12px 6px 12px; background:url("../design/pattern.gif");}
    
	#body-comment { padding:3px; }
	#body-comment .hname { width:100%; }
	#body-comment .hdate { float:right; }
	#body-comment .hbody { padding:5px; border-bottom: 1px solid #6F6F6F; clear:both;}

    #nav {position:relative; padding:0 20px; background:url("../design/nav.gif") 0 0 repeat-x;}
    #nav ul {margin:0; list-style:none;}
    #nav ul li {display:inline;}
    #nav ul li a {display:block; float:left; padding:9px 15px; background:url("../design/nav-separator.gif") 100% 0 repeat-y; text-decoration:none;}
    #nav a:hover {text-decoration:underline;}
    #nav ul li.active, #nav ul li.active a {font-weight:bold;}
    #nav #feeds {position:absolute; top:9px; right:25px; margin:0;}
    #nav #feeds a:hover {text-decoration:none;}

    #cols {margin-bottom:10px; background:url("../design/cols.gif") 0 0 no-repeat;}
    #cols-in {min-height:430px; padding:20px; background:url("../design/cols-in.gif") 0 100% no-repeat;}
    
        #content {float:left; width:600px;}
        #aside {float:right; width:280px;}
        #content .in, #aside .in {padding:15px;}
		/* #content .in img:first-child { display:block; margin: 0px 3px 0px 3px; float:left; } */
		#content .in img[style*=left] { display: block; margin-right: 5px; margin-left: 0; }
		#content .in img[style*=right] { display: block; margin-right: 0; margin-left: 5px; }
		#content .in p { margin-bottom:10px; }
		#content .in p img { display:block; margin: 0px 3px 3px 3px; float:left; }

    #footer {padding:15px 15px 5px 15px;}
    #footer p {margin:0;}
    
        #ico-print {padding-left:12px; background:url("../design/ico-print.gif") 0 50% no-repeat;}
        #ico-sitemap {margin-left:10px; padding-left:10px; background:url("../design/ico-sitemap.gif") 0 50% no-repeat;}

        .ico-rss {padding-left:18px; background:url("../design/ico-rss.gif") 0 50% no-repeat;}

    #copy {margin:15px auto 0 auto; width:910px; font-size:90%;}

/* ----------------------------------------------------------------------------------------------------------
4-1) Page: Homepage
---------------------------------------------------------------------------------------------------------- */

#breadcrumbs {margin:0; font-size:90%;}
#breadcrumbs a:hover {text-decoration:none;}
#breadcrumbs span {margin:0 3px;}

#topstory-img {float:left; width:200px;}
#topstory-img img {display:block;}
#topstory-txt {float:right; width:355px;}
#topstory-txt h3 {margin: 0px 0px 3px 0px; font-size:140%; font-weight:normal;}
#topstory-txt p img {display:block; margin: 0px 3px 0px 3px;}
#topstory-txt #topstory-info {margin: 0; font-size:90%; }
#topstory-txt .comment {padding-left:12px; background:url("../design/ico-comment.gif") 0 2px no-repeat;}
.cat_color  {color:#FF0099;}

.cols5050 {clear:both; background:url("../design/dot-01.gif") 0 100% repeat-x;}
.cols5050 .col {float:left; width:100%;}
.cols5050 .col {clear:both; margin-bottom:15px;}
.article { border-bottom: 1px dotted #9D9D9D; clear:both; margin-bottom:15px;}
.cols5050 .col .article-img {float:left; width:85px;}
.cols5050 .col .article-img img {display:block;}
.cols5050 .col .article-txt {float:right; width:100%;}
.cols5050 .col .article-txt h4 {margin:0; margin-bottom:7px; font-size:115%;}
.cols5050 .col .article-txt p {margin:0; font-size:100%;}
.cols5050 .col .article-txt p img {margin:4px;}
.comment {padding-left:12px; background:url("../design/ico-comment.gif") 0 2px no-repeat;}

.cols5050s {clear:both; background:url("../design/dot-01.gif") 0 100% repeat-x;}
.cols5050s .cols {float:left; width:275px;}
.cols5050s .cols .articles {clear:both; margin-bottom:15px;}
.cols5050s .cols .article-imgs {float:left; width:85px;}
.cols5050s .cols .article-imgs img {display:block;}
.cols5050s .cols .article-txts {float:right; width:175px;}
.cols5050s .cols .article-txts h4 {margin:0; margin-bottom:7px; font-size:110%;}
.cols5050s .cols .article-txts p {margin:0; font-size:90%;}

.commbgr { background: #E1E1E1; width:572px; }
#subnav {margin:0; list-style:none;}
#subnav li {display:inline;}
#subnav li a {display:block; padding:4px 10px 4px 25px; background:url("../design/subnav.gif") 10px 50% no-repeat;}
#subnav li a:hover {text-decoration:none;}
#subnav li.last a {border:0;}

dl#news {margin:0; background:url("../design/dot-02.gif") 3px 0 repeat-y;}
dl#news dt {margin-bottom:3px; padding-left:15px; background:url("../design/news-dt.gif") 0 50% no-repeat; font-weight:bold;}
dl#news dd {margin:0; margin-bottom:10px; padding-left:15px;}
dl#news a:hover {text-decoration:none;}

#gallery-in {padding:15px; background:url("../design/gallery.gif") 0 0 repeat-x;}
#gallery .separator {width:910px; height:2px; margin:10px 0; background:url("../design/separator.gif") 0 0 repeat-x; font-size:0; line-height:0; overflow:hidden;}
#gallery img {margin-right:18px;}
#gallery a.last img {margin:0;}

/* ----------------------------------------------------------------------------------------------------------
5) Others
---------------------------------------------------------------------------------------------------------- */
div.pages {padding: 7px;margin-top: 15px;text-align:left;color:#a0a0a0;font-size:80%;background:#333;font-family:arial,helvetica,sans-serif}
div.pages a {border: 1px solid #909090;margin-right:2px;padding:2px 4.85px;background-image:url('../images/bar.gif');background-position:bottom;text-decoration: none;color: #c0c0c0;}
div.pages a:hover, div.meneame a:active {border: 1px solid #f0f0f0;background-image:url(images/invbar.gif);background-color:#404040;color: #ffffff;}
div.pages span.current {margin-right:3px;padding:2px 5px;border: 1px solid #ffffff;font-weight: bold;background-color: #606060;color: #ffffff;}


.title-01 {margin:0; padding:15px 15px 15px 45px; background:url("../design/arrow-01.gif") 15px 50% no-repeat; font-size:150%; font-weight:normal;}
.title-02 {background:url("../design/dot-01.gif") 0 60% repeat-x; font-size:100%;}
.title-02 span {padding-right:5px;}
.title-03 {margin:0; padding:13px 10px 13px 15px; background:url("../design/arrow-02.gif") 245px 50% no-repeat; font-size:100%; font-weight:bold;}
.title-03.gallery {background:url("../design/arrow-02.gif") 903px 50% no-repeat;}
.title-04 {margin:0 5px; padding:13px 30px 13px 15px; background:url("../design/title-04.gif") 0 0  repeat-x; font-size:100%; font-weight:bold;}
.title-05 {margin:0; padding:13px 10px 13px 15px; background:url("../design/arrow-02.gif") 97% no-repeat; font-size:100%; font-weight:bold;}

.more {padding-right:14px; background:url("../design/more.gif") 100% 5px no-repeat;}
a:hover.more {text-decoration:none;}

.pagination {
  list-style: none;
  display: inline-block;
  padding: 0;
  margin-top: 10px;
}
.pagination li {
  display: inline;
  text-align: center;
}
.pagination a {
  float: left;
  display: block;
  font-size: 14px;
  text-decoration: none;
  padding: 5px 12px;
  color: #fff;
  margin-left: -1px;
  border: 1px solid transparent;
  line-height: 1.5;
}
.pagination a.active {
  cursor: default;
}
.pagination a:active {
  outline: none;
}

.modal-1 li:first-child a {
  -moz-border-radius: 6px 0 0 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px 0 0 6px;
}
.modal-1 li:last-child a {
  -moz-border-radius: 0 6px 6px 0;
  -webkit-border-radius: 0;
  border-radius: 0 6px 6px 0;
}
.modal-1 a {
  border-color: #ddd;
  color: #4285F4;
  background: #fff;
}
.modal-1 a:hover {
  background: #eee;
}
.modal-1 a.active, .modal-1 a:active {
  border-color: #4285F4;
  background: #4285F4;
  color: #fff;
}

span.timedate {
    padding: 0 3px 0 3px;
    background: rgba(0, 0, 0, 0.8);
    font-weight: bold;
    font-size: 12px;
    color: white;
}

.lastnewsc {
    border: 1px solid #333; /* Рамка */
    display: inline-block;
    padding: 5px 15px; /* Поля */
    text-decoration: none; /* Убираем подчёркивание */
    color: #000; /* Цвет текста */
}
.lastnewsc:hover {
    box-shadow: 0 0 5px rgba(0,0,0,0.3); /* Тень */
    background: linear-gradient(to bottom, #fcfff4, #e9e9ce); /* Градиент */
    color: #a00;
}
.share a {
display: inline-block;
vertical-align: inherit;
margin: 5px 0 0 2px;
padding: 0px;
font-size: 0px;
width: 40px;
height: 40px;
background: url("images/share-icons.png") no-repeat scroll 0px 0px transparent;
}

.share a.vkontakte { background: url("images/share-icons.png") no-repeat scroll -168px 0px transparent; }
.share a.google { background: url("images/share-icons.png") no-repeat scroll -252px 0px transparent; }
.share a.livejournal { background: url("images/share-icons.png") no-repeat scroll -336px 0px transparent; }
.share a.twitter { background: url("images/share-icons.png") no-repeat scroll -42px 0px transparent; }
.share a.mail { background: url("images/share-icons.png") no-repeat scroll -294px 0px transparent; }
.share a.odnoklassniki { background: url("images/share-icons.png") no-repeat scroll -126px 0px transparent; }
.share a.pinterest { background: url("images/share-icons.png") no-repeat scroll -210px 0px transparent; }
.share a.liveinternet { background: url("images/share-icons.png") no-repeat scroll -378px 0px transparent; }
.share a.evernote { background: url("images/share-icons.png") no-repeat scroll -420px 0px transparent; }
.share a.bookmark { background: url("images/share-icons.png") no-repeat scroll -462px 0px transparent; }
.share a.email { background: url("images/share-icons.png") no-repeat scroll -504px 0px transparent; }
.share a.print { background: url("images/share-icons.png") no-repeat scroll -546px 0px transparent; }
.share a.digg { background: url("images/share-icons.png") no-repeat scroll -588px 0px transparent; }
.share a.spring { background: url("images/share-icons.png") no-repeat scroll -630px 0px transparent; }

.img-responsive {
    display:block;
    max-width:100%;
    height:auto;
}