/* ==========================================================================
   RaketaNews — russia-news.ru (Joomla 6)
   Повторяет hot_news_portal_test: css/joomla.css (нужная часть),
   сгенерированный Sparky CSS (?css_request=1) и css/template_css.css.
   ========================================================================== */

/* ---------- База (из joomla.css / Bootstrap 2) ---------- */
html { font-size: 14px; }
body { margin: 0; padding: 0; color: #333; font-family: Arial, serif; font-weight: normal; font-style: normal; text-align: left; background: #fff; }
article, aside, figure, footer, header, nav, section { display: block; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
button, input, select, textarea { margin: 0; font-size: 100%; vertical-align: middle; }
input[type="search"] { box-sizing: content-box; -webkit-appearance: textfield; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
strong { font-weight: bold; }
small { font-size: 85%; }
.muted { color: #999; }
dl { margin-bottom: 18px; }
dt, dd { line-height: 18px; }
dd { margin-left: 0; }
.pull-right { float: right; }
.pull-left { float: left; }
.pull-right.item-image { margin: 0 0 18px 20px; }
.pull-left.item-image { margin: 0 20px 18px 0; }
.clearfix::after, .clr { clear: both; }
.clearfix::after { content: ""; display: table; }
.element-invisible, .visually-hidden { position: absolute; padding: 0; margin: 0; border: 0; height: 1px; width: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.label-warning { display: inline-block; padding: 2px 4px; font-size: 11px; color: #fff; background: #f89406; border-radius: 3px; }
table { border-collapse: collapse; }

/* ---------- Сетка Sparky (ширина 1020, 12 ячеек по 85px) ---------- */
.container { margin: 0 auto; padding: 0; }
.row > * { float: left; }
.row::after { content: ""; display: table; clear: both; }
.cell_pad { padding: 0; margin: 0 10px; }

@media (min-width: 1020px) {
	.container, .row { width: 1020px; }
	.span12 { width: 1020px; } .span10 { width: 850px; } .span9 { width: 765px; } .span8 { width: 680px; }
	.span5 { width: 425px; } .span4 { width: 340px; } .span3 { width: 255px; } .span2 { width: 170px; }
}
@media (min-width: 980px) and (max-width: 1019.98px) {
	.container { width: 868px; }
	.span12 { width: 868px; } .span10 { width: 720px; } .span9 { width: 646px; } .span8 { width: 572px; }
	.span5 { width: 350px; } .span4 { width: 276px; } .span3 { width: 202px; } .span2 { width: 128px; }
}
@media (min-width: 768px) and (max-width: 979.98px) {
	.container { width: 724px; }
	.span12 { width: 724px; } .span10 { width: 600px; } .span9 { width: 538px; } .span8 { width: 476px; }
	.span5 { width: 290px; } .span4 { width: 228px; } .span3 { width: 166px; } .span2 { width: 104px; }
}
@media (max-width: 767.98px) {
	.container { width: 100%; }
	[class*="span"] { width: 100%; }
}

/* ---------- Типографика ---------- */
a { color: #069; font-weight: normal; font-style: normal; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
p { margin: 0 0 15px; }
h1, h1 a { color: #333; font-size: 48px; font-family: 'Brygada 1918', serif; text-align: left; font-weight: bold; font-style: normal; }
h2, h2 a { color: #333; font-size: 28px; font-family: 'Brygada 1918', serif; text-align: left; font-weight: normal; font-style: normal; }
h3 { color: #333; font-size: 18px; font-family: 'Brygada 1918', serif; text-align: left; font-weight: normal; font-style: normal; }
h4 { color: #333; font-size: 14px; font-family: Arial, serif; text-align: left; font-weight: bold; font-style: normal; }
h1 { padding: 0 0 30px; margin: 0; line-height: normal; }
h2, h2 a { padding: 0 0 15px; margin: 0; line-height: normal; }
h3 { margin: 15px 0; padding: 0; }
h4 { margin: 0 0 15px; padding: 0; }
fieldset { border: none; padding: 0; margin: 0; }
fieldset legend { font-size: 24px; }
ul, ol { margin: 15px 45px; padding: 0; }
div.item-page ol li, div.item-page ul li { margin: 0 0 10px; padding: 0; }
blockquote { margin: 0; padding: 15px 15px 15px 75px; font-size: 125%; font-style: italic; font-family: serif; line-height: normal; background: url(../images/quotes.png) top left no-repeat; }
img.img_left { float: left; margin: 0 30px 30px 0; }
img.img_right { float: right; margin: 0 0 30px 30px; }

/* иконки вместо Font Awesome 4 */
.rn-ico { width: 1em; height: 1em; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Формы и кнопки ---------- */
.inputbox, input.required, textarea.required, input#username, input#password,
.com-contact__form input[type="text"], .com-contact__form input[type="email"], .com-contact__form textarea {
	display: inline-block; vertical-align: middle; padding: 0 10px; height: 35px; margin: 0;
	background: #fff; color: #555; border: 1px solid #ccc; border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075); transition: border linear .2s, box-shadow linear .2s;
	font-family: Arial, sans-serif; font-size: 13px;
}
textarea.required, .com-contact__form textarea { height: auto; padding: 8px 10px; }
.inputbox:focus { outline: none; }
.button, .btn, button {
	display: inline-block; padding: 0 10px; height: 35px; margin: 0 0 0 5px; color: #333; text-align: center;
	text-shadow: 0 1px 1px rgba(255,255,255,.75); vertical-align: middle; cursor: pointer;
	background: #f5f5f5 linear-gradient(to bottom, #fff, #e6e6e6) repeat-x;
	border: 1px solid #ccc; border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25); border-bottom-color: #b3b3b3;
	border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
	font-family: Arial, sans-serif; font-size: 13px;
}
.button:hover, .btn:hover { color: #333; background-color: #e6e6e6; background-position: 0 -15px; transition: background-position .1s linear; }
p.readmore a { display: inline-block; text-align: center; vertical-align: middle; cursor: pointer; font-family: arial, sans-serif; text-transform: uppercase; font-size: 12px; transition: all .5s linear; }
p.readmore a:hover, p.readmore a:focus { color: #333; }

/* ---------- 1. Тёмная полоса: меню + дата ---------- */
.headerrow { background: linear-gradient(to bottom, #383838 0%, #383838 50%, #333 51%, #222 100%); color: #777; }
.mp_top1 .cell_pad { margin: 0; position: relative; }
.mp_top1 ul { margin: 0; padding: 0; list-style: none; white-space: nowrap; position: relative; }
.mp_top1 ul > li { display: inline-block; position: relative; margin: 0; padding: 0; background: transparent; }
.mp_top1 ul > li > a, .mp_top1 ul > li > span {
	display: block; margin: 0; color: #777; font-size: 14px;
	padding: 10px 15px 0; height: 30px; cursor: pointer;
}
.mp_top1 ul > li.active > a, .mp_top1 ul > li.active > span, .mp_top1 ul > li:hover > a { color: #777; }
.mp_top1 ul li:hover { background: #eee; }
.mp_top1 ul ul { display: none; position: absolute; left: -1px; z-index: 100; width: 160px; padding: 12px; background: #eee; border: 1px solid #ddd; }
.mp_top1 ul li:hover > ul { display: block; }
.mp_top1 ul ul li { display: block; height: 25px; padding: 0 10px; border-bottom: 1px solid #ddd; }
.mp_top1 ul ul a { line-height: 25px; font-size: 12px; color: #666; padding: 0; height: auto; }
.mp_fontresize { font-size: 11px; line-height: 40px; text-align: right; }
.rn-burger { display: none; }

/* ---------- 2. Логотип, поиск, соцсети ---------- */
.sparky_logo_image img { height: 120px; width: auto; margin-top: 14px; }
.mp_top3 { padding-top: 35px; text-align: right; }
.mp_top3 label { display: none; }
.mp_top3 .cell_pad { margin: 0; }
.mp_top3 .inputbox { width: 182px; height: 18px; padding: 8px 14px; line-height: 18px; }
.mp_top4 { padding-top: 30px; }
.mp_top4 ul { margin: 0; padding: 0; list-style: none; text-align: right; }

/* ---------- 3. Серая полоса под шапкой ---------- */
.topmenurow { background: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%); border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; }

/* ---------- 4. Контент и колонки ---------- */
.sparky_full.contentrow { padding-top: 30px; }
.contentrow h3 { text-transform: uppercase; }
.content_sparky .cell_pad { margin-bottom: 60px; }
.mp_user1 .cell_pad, .mp_user2 .cell_pad { margin-top: 48px; margin-bottom: 30px; }
.mp_user1 iframe { min-width: 146px !important; width: 146px !important; }
ul.mostread { margin: 0; padding: 0; }
ul.mostread li { list-style: none; margin: 10px 0; padding: 0 0 10px; font-size: 12px; border-bottom: 1px solid #ddd; }
.moduletable div.item-separator { margin: 15px 0; }
.newsflash img { max-width: 146px; }
.item-image img, .newsflash img { border-radius: 5px; }
.newsflash h4 { margin: 0; padding: 10px 0 0; }
.newsflash h4 a { font-weight: normal; }
.items-leading h2, .items-leading h2 a { font-weight: bold; }
.items-row { clear: both; }
div.item p, div.items-leading p, div.item-page p, div.item-page li, .blog-item p { line-height: 20px; }
div.item-separator { border-bottom: 1px solid #ddd; margin: 35px 0 25px; }
dl.article-info { margin-bottom: 10px; margin-top: 0; }
dl.article-info dd.published, dl.article-info dd.createdby, div.published { font-size: 12px; font-family: arial, sans-serif; color: #bbb; }
dl.article-info dd.published { float: left; min-width: 150px; }
dl.article-info dd.hits { color: #999; clear: left; }
div.abovecontent { padding: 0 0 30px; }
div.belowcontent { padding: 30px 0 0; }
img.caption { border-radius: 5px 5px 0 0; }
p.img_caption { background: #fff5f5; font-size: 11px; color: #333; border-radius: 0 0 5px 5px; padding: 3px 10px; border: 1px solid #ccc; }

/* пагинация: только круглые «Назад» / «Вперёд» */
.counter, .com-content-blog__counter { display: none; }
div.pagination { border-bottom: 0; margin: 0 0 45px; text-align: center; }
div.pagination ul { margin: 0; padding: 0; list-style: none; }
div.pagination li { display: inline-block; }
div.pagination .pagenav {
	display: inline-block; width: 40px; height: 40px; margin: 0; padding: 0; text-align: center;
	background: #344450; color: #fefefe; border: 1px solid #ccc; border-radius: 50%;
	font-family: arial, sans-serif; font-size: 11.2px; line-height: 40px; text-transform: uppercase;
	box-shadow: 2px 2px 3px #222 inset; overflow: hidden;
}
div.pagination span.pagenav { background: #ccc; box-shadow: 2px 2px 3px #999 inset; color: #333; }

/* страница «О нас» (контакт) — как аккордеон J3 */
.com-contact .page-header h1 { font-size: 28px; font-weight: normal; padding: 0 0 15px; }
.com-contact__container { border: 1px solid #e5e5e5; border-radius: 4px; margin: 0 0 20px; }
.com-contact__container > h2 { font: bold 14px/20px Arial, sans-serif; color: #069; padding: 8px 15px; margin: 0; border-bottom: 1px solid #e5e5e5; }
.com-contact__info { padding: 9px 15px; }
.com-contact .dl-horizontal dt { float: left; width: 20px; }
.com-contact .dl-horizontal dd { margin-left: 30px; line-height: 18px; }

/* результаты поиска */
.result-title { font-size: 18px; }
.result-created, .result-category, .result__taxonomy { font-size: 12px; font-family: arial, sans-serif; color: #bbb; }
.com-finder__results-list { margin: 15px 0; padding: 0; list-style: none; }

/* ---------- 5. Ряд advert1 ---------- */
.videorow { background: #25323b; padding: 60px 0 0; }

/* ---------- 6. Подвал ---------- */
.footerrow { font-family: arial, sans-serif; padding: 30px 0; background: #eee; color: #999; }
.footerrow p { margin: 0; line-height: 25px; }
.footerrow a { color: #999; }
.footerrow .mp_footer { font-family: 'Brygada 1918', serif; font-size: 20px; }
.footer_footer { font-size: 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: 'Brygada 1918', serif; }
.footer_sv { font-size: 18px; margin-top: 16px; color: #000; font-weight: 600; }
.mp_footer a img { height: 120px; width: auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 996px) {
	img, .newsflash img { max-width: 100%; }
	.mp_top3 { padding-top: 30px; }
	.mp_top3 .inputbox { width: 80px; }
	.mp_user1 iframe { min-width: 84px !important; width: 84px !important; }
}
/* меню → кнопка-гамбургер (в старом шаблоне tinynav с порогом 940px) */
@media (max-width: 940px) {
	.rn-burger { display: block; float: left; width: 40px; height: 30px; margin: 5px 0 5px 10px; padding: 0; border: 1px solid #666; border-radius: 3px; background: #000; box-shadow: none; text-shadow: none; position: relative; }
	.rn-burger span, .rn-burger span::before, .rn-burger span::after { content: ""; position: absolute; left: 9px; right: 9px; height: 2px; background: #eee; }
	.rn-burger span { top: 14px; } .rn-burger span::before { top: -6px; left: 0; right: 0; } .rn-burger span::after { top: 6px; left: 0; right: 0; }
	.mp_top1 .moduletable_menu, .mp_top1 .moduletable { display: none; position: absolute; top: 40px; left: 10px; z-index: 200; background: #222; min-width: 200px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
	.mp_top1.is-open .moduletable_menu, .mp_top1.is-open .moduletable { display: block; }
	.mp_top1 ul > li { display: block; }
	.mp_top1 ul > li > a { color: #eee; height: auto; padding: 10px 15px; }
	.mp_top1 ul li:hover { background: #333; }
}
@media (max-width: 768px) {
	.headerrow .cell, .topmenurow .cell { width: 50%; }
	.mp_top3 { text-align: left; }
	.mp_top3 .cell_pad { margin-left: 10px; }
	.mp_top4 { padding-bottom: 15px; }
	.leading-0 img, .leading-0 .item-image { width: 100%; }
	.mp_top3 .inputbox { width: 60px; }
}
@media (max-width: 767.98px) {
	.mp_user1 iframe { min-width: auto !important; width: 100% !important; }
	dl.article-info dd.published { float: none; }
	.mp_top3, .mp_top4 { width: 50%; float: left; padding-top: 0; padding-bottom: 10px; }
	.mp_top3 form { width: 100%; }
	.mp_top3 .inputbox { width: 100%; height: 36px; padding: 0 10px; box-sizing: border-box; }
	.mp_footer, .mp_user2, .mp_user2 h3 { text-align: center; }
}
