/* WordPress overrides for Buildingv2 compatibility */

/* Fix WP admin bar */
html { margin-top: 0 !important; }
body.admin-bar { padding-top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar { padding-top: 46px; }
}

/* Search form — картинка-кнопка без дублирования текста */
.search-t {
	background-repeat: repeat-y;
	padding: 6px;
	padding-top: 50px;
	padding-left: 300px;
}
.search-t .search {
	width: 300px;
	border: 1px solid #ccc;
	height: 20px;
	padding: 2px 5px;
	font-size: 13px;
	vertical-align: middle;
}
.search-t input[type="image"].search_button,
.search-t .search_button {
	border: none;
	padding: 0;
	width: 100px;
	height: 20px;
	margin-bottom: -5px;
	margin-left: 5px;
	cursor: pointer;
	vertical-align: middle;
	background: none;
}

/* Login form in header */
.logs-input-text {
	border: 1px #999 solid;
	width: 100px;
	height: 18px;
	margin: 3px 0;
	background: #fff;
	color: #666;
	font-size: 11px;
	padding: 2px;
}

/* Shortstory list items — стабильная высота и clear */
.shortstory-l {
	float: left;
	width: 160px;
	border: #DCDCDC solid 1px;
	padding: 2px;
	background: #fff;
	margin-right: 10px;
	box-sizing: border-box;
}
.shortstory-l img {
	width: 160px;
	height: 100px;
	object-fit: cover;
	display: block;
}
.shortstory-r {
	float: left;
	width: 310px;
	margin-right: 5px;
	font-size: 12px;
	color: #434343;
	min-height: 110px;
}
.shortstory-wrap {
	overflow: hidden;
	margin-bottom: 5px;
	clear: both;
}

/* WP pagination */
.navigation {
	padding: 10px;
	clear: both;
	overflow: hidden;
}
.navigation .page-numbers,
.navigation a,
.navigation span {
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	background: #007496;
	float: left;
	padding: 4px 7px;
	font-weight: bold;
	text-decoration: none;
	color: #fff !important;
	margin: 0 5px 0 0;
}
.navigation .page-numbers:hover,
.navigation .page-numbers.current,
.navigation span.current {
	background: #D1292B;
	color: #fff !important;
}

/* Comments */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { overflow: hidden; margin-bottom: 15px; }

/* Align logo if custom logo used */
.custom-logo-link {
	position: absolute;
	top: 0;
	left: 7px;
	display: block;
	width: 214px;
	height: 94px;
	z-index: 10;
}
.custom-logo-link img {
	max-width: 214px;
	max-height: 94px;
	width: auto;
	height: auto;
}

/* Sidebar blocks on internal pages */
.internal-sidebar .pa2,
.internal-sidebar .pa3 {
	float: left;
}
.internal-content {
	float: left;
	width: 500px;
	margin-right: 10px;
}

/* Clear floats */
.clr, .clear { clear: both; }

/* n1/n2/n3/n4 image fix */
.n1-image img,
.n2-image img,
.short12 img,
.short13 img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Responsive soft fallback */
@media (max-width: 1024px) {
	.page, .header2, .header, .main {
		width: 100% !important;
		max-width: 1024px;
		box-sizing: border-box;
	}
	.pa1, .pa2, .pa3,
	.internal-content {
		float: none !important;
		width: 100% !important;
		margin-right: 0 !important;
	}
}

/* Force 3-column layout: pa1 | pa2 | pa3 in one row */
.main {
	overflow: hidden;
	width: 1000px;
	margin: 0 auto;
}
.main::after {
	content: "";
	display: table;
	clear: both;
}
.pa1 {
	float: left !important;
	width: 490px !important;
	margin-right: 10px !important;
}
.pa2 {
	float: left !important;
	width: 290px !important;
	margin-right: 10px !important;
}
.pa3 {
	float: left !important;
	width: 190px !important;
	margin-right: 0 !important;
}

/* Logo position as requested */
.logo {
	position: absolute !important;
	display: block !important;
	background: url(../images/logo.png) left top no-repeat !important;
	width: 214px !important;
	height: 94px !important;
	top: -9px !important;
	left: -6px !important;
}

/* Page footer padding */
.page {
	width: 1014px !important;
	margin: 0 auto !important;
	background: #fff url(../images/logo-footer.png) bottom center no-repeat !important;
	padding: 5px !important;
	margin-bottom: 10px !important;
	padding-bottom: 85px !important;
}

/* Header size as requested */
.header {
	width: 1024px !important;
	margin: 0 auto !important;
	position: relative !important;
	text-align: left !important;
	padding: 0 !important;
	background: url(../images/header.jpg) 0 0 no-repeat !important;
	height: 400px !important;
	top: 25px !important;
}

/* Footer padding */
.foot {
	color: #999 !important;
	padding: 15px 0 35px !important;
}

/* Hide any leftover login panel */
.lo2 { display: none !important; }

/* n1 blocks: equal height, ~3 per row, title spacing */
.n1 {
	width: 90px !important;
	float: left !important;
	margin: 0 3px 7px 3px !important;
	border: 1px solid #DCDCDC !important;
	background: #fff !important;
	box-sizing: border-box !important;
	min-height: 110px;
	display: flex;
	flex-direction: column;
}
.n1-content {
	padding: 2px !important;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.n1-image {
	height: 60px !important;
	overflow: hidden !important;
	flex-shrink: 0;
}
.n1-image img {
	width: 90px !important;
	height: 60px !important;
	object-fit: cover;
	display: block;
}
.tok-title2 {
	margin-top: 5px !important;
	padding-bottom: 5px;
	flex-grow: 1;
	line-height: 1.25;
	overflow: hidden;
}
.tok-title2 h2 {
	margin: 0;
	padding: 0;
	font-size: 11px;
	font-weight: normal;
	line-height: 1.25;
}
.tok-title2 a {
	color: #000;
	text-decoration: none;
	font-size: 11px;
}
.tok-title2 a:hover {
	color: #007496;
}

/* Container for n1 grid (white wrap on landscape block) */
div[style*="background:#fff"] {
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

/* ===== Top slider (lo1) — as on tais-radio.ru ===== */
.lo1 {
	float: left;
	width: 830px;
	padding-top: 10px;
}
.slaider-block {
	height: 245px;
	position: relative;
	padding: 0 0 0 420px;
	overflow: visible;
}
/* Each slide in normal flow; only .slaider-block-news is absolute.
   Minis float left and sit in one row (parent height collapses). */
.slaider-block-all {
	position: static !important;
	width: auto !important;
	height: 0 !important;
	overflow: visible !important;
	display: block !important;
}
.slaider-block-news {
	display: none;
	height: 245px;
	width: 820px;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
}
.slaider-activ .slaider-block-news,
.slaider-block-all.slaider-activ .slaider-block-news {
	display: block !important;
}
.slaider-block-news-image {
	position: absolute;
	left: 10px;
	top: 20px;
	width: 393px;
	height: 245px;
	overflow: hidden;
	background: #fff;
	padding: 3px;
	box-sizing: border-box;
}
.slaider-block-news-image img {
	width: 393px;
	height: 245px;
	object-fit: cover;
	display: block;
}
.slaider-right-col {
	width: 400px;
	height: 150px;
	position: absolute;
	top: 10px;
	left: 420px;
}
.slaider-block-news-content {
	margin: 10px 0 0 0;
	font: bold 12px Tahoma, Geneva, sans-serif;
	color: #fff;
	line-height: 17px;
	height: 133px;
	overflow: hidden;
}
/* Minis in one horizontal row under the big image (like original) */
.slaider-block-news-mini {
	float: left !important;
	position: relative !important;
	width: 116px !important;
	height: 74px !important;
	overflow: hidden;
	margin: 194px 12px 0 0 !important;
	cursor: pointer;
	z-index: 5;
	background: transparent !important;
}
.slaider-block-news-image-mini img {
	width: 116px !important;
	height: 74px !important;
	object-fit: cover;
	display: block;
}
.frame-block {
	position: relative;
	display: block;
	height: 74px;
	width: 116px;
}
.frame-block span {
	background: url(../images/frame.png) no-repeat center top;
	height: 74px;
	width: 116px;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	pointer-events: none;
}

/* ===== Bottom carousel (.scroll) ===== */
.scroll {
	background: #d1292b url(../images/scroll.gif) repeat-x;
	overflow: hidden !important;
	position: relative;
	padding: 0;
	box-sizing: border-box;
	height: 170px;
}
.jcarousel-container-horizontal {
	width: auto !important;
	max-width: 100%;
	padding: 15px 40px 10px 40px !important;
	position: relative;
	margin: 0 auto;
	box-sizing: border-box;
	overflow: hidden !important;
	height: 155px;
}
.jcarousel-clip-horizontal {
	overflow: hidden !important;
	position: relative;
	width: 100%;
	height: 140px !important;
	max-height: 140px !important;
}
.jcarousel-list,
ul#center_dm_ru_carousel,
.jcarousel-list-horizontal {
	position: relative !important;
	top: 0 !important;
	left: 0;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	overflow: hidden !important;
	height: 140px !important;
	white-space: nowrap !important;
	/* one row only — no wrap to next line */
	display: block !important;
}
.jcarousel-list li,
.jcarousel-item,
ul#center_dm_ru_carousel > li {
	float: left !important;
	display: block !important;
	list-style: none !important;
	width: 150px !important;
	height: 140px !important;
	margin: 0 5px 0 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
	vertical-align: top;
	white-space: normal;
}
.jcarousel-item .n2,
ul#center_dm_ru_carousel .n2 {
	width: 140px !important;
	height: 130px !important;
	margin: 0 auto !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	background: #fff;
	border: 1px solid #DCDCDC;
	box-sizing: border-box;
	padding: 2px;
	overflow: hidden;
}
.jcarousel-item .n2-content,
ul#center_dm_ru_carousel .n2-content {
	width: 100%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.jcarousel-item .n2-image,
.jcarousel-item .n2-image img,
ul#center_dm_ru_carousel .n2-image,
ul#center_dm_ru_carousel .n2-image img {
	width: 140px !important;
	height: 90px !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 auto;
}
.jcarousel-item .tok-title2,
ul#center_dm_ru_carousel .tok-title2 {
	flex: 1 1 auto;
	width: 100%;
	min-height: 30px;
	max-height: 36px;
	margin: 0 !important;
	padding: 4px 2px 2px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	line-height: 1.2;
	overflow: hidden;
	box-sizing: border-box;
}
.jcarousel-item .tok-title2 h2,
ul#center_dm_ru_carousel .tok-title2 h2 {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 11px !important;
	font-weight: normal !important;
	line-height: 1.2 !important;
	text-align: center !important;
	width: 100%;
}
.jcarousel-item .tok-title2 a,
ul#center_dm_ru_carousel .tok-title2 a {
	color: #000;
	text-decoration: none;
	font-size: 11px;
	text-align: center;
	display: block;
	width: 100%;
}
.jcarousel-item .tok-title2 a:hover {
	color: #007496;
}
/* Arrows inside .scroll */
.jcarousel-next-horizontal {
	position: absolute !important;
	top: 50px !important;
	right: 8px !important;
	width: 32px;
	height: 32px;
	cursor: pointer;
	background: transparent url(../images/next-horizontal.png) no-repeat 0 0;
	z-index: 10;
}
.jcarousel-prev-horizontal {
	position: absolute !important;
	top: 50px !important;
	left: 8px !important;
	width: 32px;
	height: 32px;
	cursor: pointer;
	background: transparent url(../images/prev-horizontal.png) no-repeat 0 0;
	z-index: 10;
}
.jcarousel-next-horizontal:hover,
.jcarousel-prev-horizontal:hover {
	opacity: 0.85;
}
