/*
 * Шаблон izborvolga — по образцу дизайна старого сайта (Joomla 3,
 * шаблон blog_j на YOOtheme Warp). Палитра взята из реальных
 * css/layout.css и css/menus.css старого шаблона, шрифт — тот же Georgia,
 * что было выставлено в его настройках (font1/2/3: georgia).
 *
 * Не порт Warp целиком (громоздкий фреймворк под старые Joomla) —
 * самостоятельная, простая вёрстка с тем же результатом.
 */

:root {
	--iv-orange: #D87F20;
	--iv-gold: #E9C344;
	--iv-coral: #e35948;
	--iv-coral-2: #E06F4A;
	--iv-cream: #F4EBD2;
	--iv-cream-2: #F3DDA1;
	--iv-cream-3: #F9E9C5;
	--iv-dark: #2B2B2B;
	--iv-text: #111111;
	--iv-border: #ddd;
	--iv-bg: #fafafa;
	--iv-width: 1200px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Georgia, 'Times New Roman', serif;
	color: var(--iv-text);
	background: #fff;
	line-height: 1.6;
}

a {
	color: var(--iv-orange);
	text-decoration: none;
}
a:hover {
	color: var(--iv-coral);
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
}

.iv-wrapper {
	max-width: var(--iv-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* --- строка даты над шапкой ("Сегодня: ...") --- */
.iv-toolbar {
	background: var(--iv-dark);
	color: #ccc;
	font-size: 13px;
	padding: 6px 0;
}

/* --- баннер шапки (картинка целиком, как на старом сайте) --- */
.iv-banner {
	line-height: 0;
}
.iv-banner img {
	width: 100%;
	display: block;
}

/* --- навигация --- */
.iv-header {
	background: var(--iv-orange);
	border-top: 3px solid var(--iv-gold);
	border-bottom: 3px solid var(--iv-gold);
}
.iv-header .iv-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
.iv-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}
.iv-menu li {
	position: relative;
}
.iv-menu a {
	display: block;
	padding: 14px 18px;
	color: #fff;
	font-weight: bold;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-size: 14px;
}
.iv-menu a:hover,
.iv-menu li.current > a {
	background: var(--iv-coral);
	text-decoration: none;
}
.iv-search {
	padding: 10px 18px;
}
.iv-search input[type="text"] {
	font-family: inherit;
	padding: 6px 10px;
	border: none;
	border-radius: 3px;
}
/* подпись поля есть в разметке для читалок с экрана (aria), визуально не
   нужна — своего класса вроде bootstrap .visually-hidden в шаблоне нет */
.iv-search .visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- хлебные крошки --- */
.iv-breadcrumbs {
	padding-top: 14px;
	font-size: 13px;
	color: #777;
}
.iv-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
/* заменитель текста «Вы здесь:» (showHere=0) — просто пустая иконка
   без подключённого шрифта иконок, скрываем совсем */
.iv-breadcrumbs .mod-breadcrumbs__divider {
	display: none;
}
.iv-breadcrumbs li:not(:last-child)::after {
	content: '\00bb';
	margin-left: 6px;
	color: var(--iv-orange);
}

/* --- общий трёхколоночный макет --- */
.iv-layout {
	display: flex;
	gap: 30px;
	padding: 20px 20px 40px;
	align-items: flex-start;
}
.iv-main {
	flex: 1 1 60%;
	min-width: 0;
}
.iv-sidebar {
	flex: 1 1 20%;
	min-width: 200px;
}

/* --- модули в сайдбарах --- */
.iv-sidebar .iv-module {
	background: var(--iv-cream);
	border: 1px solid var(--iv-cream-2);
	border-radius: 4px;
	padding: 14px 16px;
	margin-bottom: 20px;
}
.iv-sidebar .iv-module h3 {
	margin: 0 0 10px;
	font-size: 16px;
	color: var(--iv-orange);
	border-bottom: 2px solid var(--iv-gold);
	padding-bottom: 6px;
}
.iv-sidebar .iv-module ul {
	margin: 0;
	padding-left: 18px;
}
.iv-sidebar .iv-module li {
	margin-bottom: 6px;
}

/* --- лента статей (category/blog) --- */
.iv-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.iv-item {
	display: flex;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--iv-border);
}
.iv-item:first-child {
	padding-top: 0;
}

/* календарный блок даты — тот же приём, что в custom.css старого шаблона:
   крупное число, мелкий месяц, светлая рамка */
.iv-date-badge {
	flex: 0 0 60px;
	width: 60px;
	text-align: center;
	background: var(--iv-bg);
	border: 1px solid var(--iv-border);
	padding: 3px;
	align-self: flex-start;
}
.iv-date-badge .iv-day {
	font-size: 34px;
	line-height: 1;
	font-weight: bold;
	color: var(--iv-orange);
}
.iv-date-badge .iv-month {
	font-size: 13px;
	text-transform: uppercase;
	color: #777;
}
.iv-date-badge .iv-year {
	margin-top: 3px;
	padding-top: 3px;
	border-top: 1px solid var(--iv-border);
	font-size: 11px;
	color: #999;
}

/* подпись раздела над заголовком — только на ГЛАВНОЙ, где статьи
   вперемешку из 4 разделов (см. html/com_content/category/home.php) */
.iv-item-category {
	display: inline-block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--iv-orange);
}
.iv-item-category:hover {
	color: var(--iv-coral);
}
.iv-item-body h2,
.iv-article h1 {
	margin: 0 0 8px;
	font-size: 22px;
}
.iv-item-body h2 a {
	color: var(--iv-text);
}
.iv-item-body h2 a:hover {
	color: var(--iv-orange);
}
.iv-item-image {
	float: left;
	max-width: 240px;
	margin: 0 16px 10px 0;
}
.iv-item-image img {
	border-radius: 3px;
}
.iv-readmore {
	display: inline-block;
	margin-top: 8px;
	padding: 6px 14px;
	background: var(--iv-orange);
	color: #fff;
	border-radius: 3px;
	font-size: 13px;
}
.iv-readmore:hover {
	background: var(--iv-coral);
	color: #fff;
	text-decoration: none;
}

/* --- список «ещё статьи» под лентой (com-content-blog__links) — Joomla
   рендерит его как <ol>, оформляем как обычный маркированный список,
   тем же приёмом, что модули в сайдбарах */
.com-content-blog__links {
	list-style: disc;
	margin: 0 0 20px;
	padding-left: 18px;
}
.com-content-blog__links li {
	margin-bottom: 6px;
}

/* --- пагинация (список статей) — тот же приём, что в bootstrap-пагинации
   старого шаблона (warp/libraries/bootstrap/pagination.less): ряд
   сомкнутых кнопок, без списочных маркеров и переноса на новую строку */
.pagination {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}
.pagination .page-item {
	margin-left: -1px;
}
.pagination .page-link {
	display: block;
	padding: 6px 12px;
	border: 1px solid var(--iv-border);
	color: var(--iv-orange);
	background: #fff;
	font-size: 13px;
	line-height: 1.6;
}
.pagination .page-item:first-child .page-link {
	margin-left: 0;
	border-radius: 3px 0 0 3px;
}
.pagination .page-item:last-child .page-link {
	border-radius: 0 3px 3px 0;
}
.pagination .page-link:hover {
	background: var(--iv-cream-3);
	text-decoration: none;
}
.pagination .active .page-link {
	background: var(--iv-orange);
	border-color: var(--iv-orange);
	color: #fff;
	cursor: default;
}
.pagination .disabled .page-link {
	color: #bbb;
	cursor: default;
}
/* стрелки первая/предыдущая/следующая/последняя — Joomla отдаёт под них
   пустые <span class="icon-angle-..."> из шрифта иконок ядра, которого
   в самостоятельном шаблоне нет; подставляем текстовые стрелки */
.icon-angle-double-left::before { content: '\00ab'; }
.icon-angle-left::before { content: '\2039'; }
.icon-angle-right::before { content: '\203a'; }
.icon-angle-double-right::before { content: '\00bb'; }

/* --- страница статьи --- */
.iv-article .iv-article-meta {
	font-size: 13px;
	color: #777;
	margin-bottom: 14px;
}
.iv-article .iv-article-image {
	max-width: 100%;
	margin-bottom: 16px;
}
.iv-article .iv-article-image img {
	border-radius: 4px;
}

/* --- подвал --- */
.iv-footer {
	background: var(--iv-dark);
	color: #bbb;
	font-size: 13px;
	padding: 20px 0;
	margin-top: 30px;
}
.iv-footer a {
	color: var(--iv-cream-2);
}
.iv-rating-counter {
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
}

/* --- мобильная раскладка --- */
@media (max-width: 900px) {
	.iv-layout {
		flex-direction: column;
	}
	.iv-sidebar {
		width: 100%;
	}
	.iv-menu a {
		padding: 10px 12px;
		font-size: 13px;
	}
	.iv-item-image {
		float: none;
		max-width: 100%;
		margin-right: 0;
	}
}
