/*
Theme Name: ИАЦ по ЖКХ
Template: generatepress
Description: Дочерняя тема GeneratePress для сайта vn-iac.ru: оформление, структура и цвета прежнего сайта, адаптивная вёрстка.
Author: kuratov.ru
Author URI: https://kuratov.ru
Version: 1.2.0
Text Domain: vniac
*/

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #f5f3ed;
	font: 12px/1.2em Arial, Tahoma, Verdana, sans-serif;
	color: #394a5c;
	padding-bottom: 60px;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, blockquote, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; border: 0; }
.clr::after { content: ""; display: block; clear: both; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

a:link, a:visited { text-decoration: underline; color: #307fd3; }
a:hover, a:active { text-decoration: none; }
p { line-height: 1.8em; }
sup { font-size: 80%; vertical-align: top; }
strong, b { font-weight: bold; }
em, i { font-style: italic; }

/* Иконки файлов у ссылок на документы */
a[href$=".doc"] img, a[href$=".docx"] img, a[href$=".xls"] img, a[href$=".xlsx"] img, a[href$=".pdf"] img,
a[href$=".DOC"] img, a[href$=".DOCX"] img, a[href$=".PDF"] img { display: none; }
a[href$=".doc"]::before, a[href$=".docx"]::before, a[href$=".DOC"]::before, a[href$=".DOCX"]::before,
a[href$=".xls"]::before, a[href$=".xlsx"]::before,
a[href$=".pdf"]::before, a[href$=".PDF"]::before {
	content: "";
	vertical-align: middle;
	display: inline-block;
	margin-right: 10px;
	width: 30px;
	height: 30px;
	background: url(img/doc.svg) no-repeat center / contain;
}
a[href$=".xls"]::before, a[href$=".xlsx"]::before { background-image: url(img/xls.svg); }
a[href$=".pdf"]::before, a[href$=".PDF"]::before { background-image: url(img/pdf.svg); }
#top-nav a::before, #footer a::before, .widget a::before { display: none !important; }

ul li { background: url(img/li.png) 0 3px no-repeat; padding-left: 20px; margin-bottom: 1em; }
ul li li { background-image: url(img/li-i.png); }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #e1dbcb; padding: 15px 20px; }
th { background: #caeaea; text-align: left; }
blockquote { margin: 10px 20px; border-left: 5px solid #ff5a00; font-style: italic; }
blockquote p { margin: 0; padding: 15px; }

/* ---------- Каркас ---------- */
#main-wrapper {
	width: 900px;
	max-width: 100%;
	margin: 0 auto;
	border-top: 4px solid #f8db92;
}

/* Шапка */
#header {
	position: relative;
	background: url(img/header-shadow.jpg) 0 100% no-repeat;
	background-size: 100% auto;
	padding-bottom: 12px;
	margin-bottom: 3px;
}
#header-inner {
	background: #fff url(img/header.jpg) 100% 100% no-repeat;
	min-height: 131px;
	padding: 27px 20px 0 60px;
}
#logo { margin: 0; font-size: 12px; font-weight: normal; }
#logo a {
	display: block;
	background: url(img/logo.jpg) 0 0 no-repeat;
	min-height: 75px;
	padding-left: 107px;
	padding-top: 5px;
	color: #394a5c;
	text-decoration: none;
	line-height: 1.9em;
}
#logo .logo-org { display: block; font-size: 1em; font-weight: bold; }
#logo .logo-name { display: block; font-size: 1.5em; font-weight: bold; }

/* Верхнее меню */
#top-nav {
	position: relative;
	background: url(img/top-nav-shadow.jpg) 0 100% no-repeat;
	background-size: 100% auto;
	padding-bottom: 13px;
	margin-bottom: 2px;
	z-index: 20;
}
#top-nav > ul {
	background: url(img/top-nav-back.jpg) 0 0 repeat-x;
	background-size: auto 100%;
	padding: 15px;
}
#top-nav > ul::after { content: ""; display: block; clear: both; }
#top-nav ul li { float: left; margin: 0 15px 0 0; padding: 0; background: none; position: relative; }
#top-nav ul li.account { float: right; margin-right: 0; }
#top-nav ul li a {
	color: #fff;
	font-size: 1.1em;
	font-weight: bold;
	text-decoration: none;
	text-shadow: 1px 1px #888;
	text-transform: uppercase;
}
#top-nav ul li a:hover { text-shadow: none; }
#top-nav > ul > li.current-menu-item > a,
#top-nav > ul > li.current-menu-ancestor > a,
#top-nav > ul > li.current-page-ancestor > a,
#top-nav > ul > li.current-menu-parent > a { color: #96ff00; }
#top-nav ul li.account > a { background: url(img/account.png) 0 0 no-repeat; padding-left: 25px; }

#top-nav ul li ul {
	background: none;
	border-bottom: 3px solid #7ac2bf;
	display: none;
	font-weight: bold;
	padding: 15px 0 0;
	position: absolute;
	left: 0;
	top: 100%;
	width: 178px;
	z-index: 10;
}
#top-nav ul li.account ul { left: auto; right: 0; }
#top-nav ul li ul li {
	float: none;
	margin: 0;
	background: url(img/popupbg.png);
	border-bottom: 2px solid #fff;
	padding: 2px 2px 2px 8px;
	width: 178px;
}
#top-nav ul li ul li:hover { background: url(img/popupbg2.png); }
#top-nav ul li ul li a { text-shadow: none; background: none; display: block; font-size: 12px; padding: 5px 2px; color: #fff; }
#top-nav ul li ul li:hover a { color: #7ac2bf; }
#top-nav ul li:hover > ul, #top-nav ul li:focus-within > ul { display: block; }
#nav-toggle { display: none; }

/* Колонки */
#main-content { margin-bottom: 29px; }
#main-content::after { content: ""; display: block; clear: both; }
#content { float: left; width: 650px; }
#sidebar { float: right; width: 220px; }

/* Блоки */
.block {
	background: #fff;
	border-top: 3px solid #97d9d8;
	margin-bottom: 9px;
	position: relative;
}
.block .block-inner { padding: 20px; position: relative; }
.block .block-icon {
	display: block;
	width: 30px;
	height: 30px;
	position: absolute;
	right: 9px;
	top: 11px;
	background-image: url(img/block-icons.jpg);
}
.block h5, .block .widget-title {
	color: #e21a17;
	font-size: 0.85em;
	font-weight: bold;
	margin-bottom: 10px;
	padding-right: 25px;
	text-transform: uppercase;
}
.block .more { text-align: right; padding: 7px 10px; border-top: 1px solid #f1f4f4; }
.block .more a { color: #bdc3ca; font-size: 0.85em; font-weight: bold; text-decoration: none; text-transform: uppercase; }
.block .more a:hover { text-decoration: underline; }

/* Тени под блоками (растягиваются по ширине блока) */
.short-block::after, .middle-block::after, .long-block::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 12px;
	background: url(img/block-shadow-short.jpg) 0 0 no-repeat;
	background-size: 100% 12px;
}
.middle-block::after { background-image: url(img/block-shadow-middle.jpg); }
.long-block::after { background-image: url(img/block-shadow-long.jpg); height: 10px; background-size: 100% 10px; }
.short-block, .middle-block { margin-bottom: 21px; }
.long-block { margin-bottom: 19px; }

.short-block { width: 220px; max-width: 100%; }
.middle-block { width: 400px; max-width: 100%; }
.blue-block { border-top-color: #97d9d8; }
.green-block { border-top-color: #f8db92; }
.red-block { border-top-color: #e21a17; }

.sides { margin-bottom: 9px; }
.sides::after { content: ""; display: block; clear: both; }
.sides .side-left { float: left; }
.sides .side-right { float: right; }

.vn-contacts { font-weight: bold; }
.vn-contacts .phone span { font-size: 2em; }
.vn-contacts .phone a { color: inherit; text-decoration: none; }
.vn-contacts .block-icon { background-position: 0 0; }
.banner .block-icon { background-position: 0 -30px; }
.news .block-icon { background-position: 0 -60px; }
.services .block-icon { background-position: 0 -90px; }
.widget.services { border-top-color: #f8db92; }

.services ul { margin-bottom: 0; }
.news dl { line-height: 1.6em; }
.news dl dt { font-size: 0.85em; }
.news dl dd { margin-bottom: 20px; }

.banner { text-align: center; }
.banner img { display: block; margin: 0 auto; }
.banner a::before { display: none !important; }
#js-show-iframe-wrapper .bf-107 { margin: 0 auto; }

/* Контент */
#content h1 { font-size: 1.55em; font-weight: normal; text-transform: uppercase; margin-bottom: 1em; padding-top: 0.5em; line-height: 1.2em; }
#content .entry-content h1 { font-size: 1.35em; text-transform: none; font-weight: bold; }
#content h2 { font-size: 1.5em; font-weight: normal; margin-bottom: 1em; padding-top: 0.5em; line-height: 1.2em; }
#content h3 { font-size: 1.35em; margin-bottom: 1em; padding-top: 0.5em; line-height: 1.3em; }
#content h4 { margin-bottom: 18px; }
#content p { margin-bottom: 1em; }
#content ul { margin-bottom: 1em; padding-left: 5px; }
#content ul ul { padding-top: 0.8em; padding-left: 0; }
#content ol { padding-left: 7px; margin-bottom: 1em; }
#content ol li { list-style: inside decimal; margin-bottom: 0.6em; }
.entry-content { overflow-wrap: break-word; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content table { display: block; overflow-x: auto; }
.entry-content iframe { max-width: 100%; }
.entry-date { font-style: italic; }
.purple { color: #6db7b6; }

.breadcrumbs { font-size: 1.05em; font-weight: bold; margin-bottom: 25px; padding-top: 12px; line-height: 1.5em; }
.breadcrumbs a { font-weight: normal; }
.breadcrumbs .home { background: url(img/home.gif) 2px 4px no-repeat; padding-left: 20px; }

/* Список новостей */
.news-list .news-item { margin-bottom: 1.5em; }
.news-list .news-item h2 { margin-bottom: 0.3em; }
.pagination { margin-top: 1.5em; }
.pagination .page-numbers { display: inline-block; padding: 4px 9px; margin-right: 4px; border: 1px solid #e1dbcb; text-decoration: none; }
.pagination .page-numbers.current { background: #97d9d8; border-color: #97d9d8; color: #fff; }

/* Галереи */
#content ul.gallery { padding-left: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 9px; }
#content ul.gallery li { background: none; padding: 0; margin: 0; border: 3px solid #f1f1f1; }
#content ul.gallery li a { display: block; }
#content ul.gallery li img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Расчётно-кассовые центры */
.rkc-inner { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.rkc-text { flex: 1; min-width: 0; }
#content .rkc-title { font-size: 1.55em; font-weight: normal; text-transform: none; margin-bottom: 1em; padding-top: 0.5em; }
#content .rkc h3 { font-size: 1.1em; }
.rkc-map { flex: 0 0 auto; }
.rkc-map img { display: block; max-width: 230px; height: auto; }
.rkc-break { vertical-align: baseline; margin: 0 2px; }

/* Формы (Contact Form 7) */
.wpcf7 { border: 1px solid #e1dbcb; border-top: 3px solid #97d9d8; padding: 30px 40px; margin-top: 1em; }
.wpcf7 p { margin-bottom: 13px; }
.wpcf7 label { display: block; font-weight: bold; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	display: block;
	width: 100%;
	max-width: 480px;
	margin-top: 8px;
	border: 1px solid #e1dbcb;
	padding: 6px 11px;
	font: inherit;
	font-size: 13px;
}
.wpcf7 textarea { height: 140px; }
.wpcf7 .wpcf7-acceptance label { font-weight: normal; display: inline; }
.wpcf7 input[type="submit"] {
	background: url(img/button.png) 0 0 repeat-x;
	background-size: auto 100%;
	border: none;
	height: 35px;
	line-height: 35px;
	text-transform: uppercase;
	color: #fff;
	font-weight: bold;
	padding: 0 30px;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:disabled { opacity: 0.5; cursor: default; }
.wpcf7-not-valid-tip { color: #e21a17; font-size: 11px; }

/* Подвал */
#footer {
	background: #98dad9 url(img/footer.png) 0 100% repeat-x;
	padding: 20px 20px 12px;
	margin-bottom: 10px;
}
#footer .links { border-bottom: 1px solid #a8eceb; padding: 0 0 0 9px; }
#footer .links::after, .footer-bottom::after { content: ""; display: block; clear: both; }
#footer .links .col { float: left; margin-right: 30px; }
#footer .links h4 { text-transform: uppercase; margin-bottom: 10px; }
#footer .links li { background: none; padding-left: 0; }
#footer .links li a { color: #fff; }
.footer-bottom { border-top: 1px solid #52a8a7; padding: 12px 9px 0; }
.footer-bottom .stat { float: left; margin-right: 15px; }
.footer-bottom .copyright { float: left; font-weight: bold; padding-top: 7px; }
.footer-bottom .author { float: right; padding-top: 7px; }
.footer-bottom .author a { text-decoration: none; color: inherit; }
.footer-legal { padding: 10px 9px 0; font-size: 0.95em; }
.footer-legal a { color: #fff; margin-right: 20px; }
.footer-legal a:hover { text-decoration: none; }
#bottom-text { color: #c5bca3; font-size: 0.85em; text-align: center; line-height: 1.5em; padding: 0 10px; }

/* ---------- Адаптив ---------- */
@media (max-width: 919px) {
	body { font-size: 14px; padding-bottom: 20px; }
	#main-wrapper { width: auto; }
	#header-inner { padding: 20px 15px; background-size: auto 100%; min-height: 0; }
	#logo a { padding-left: 95px; }
	#content, #sidebar { float: none; width: auto; }
	#content { padding: 0 10px; }
	#sidebar { padding: 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; }
	.short-block, .middle-block { width: auto; }
	.sides .side-left, .sides .side-right { float: none; }
	.sides { display: flex; flex-direction: column-reverse; }
	.banner img { max-width: 220px; }

	#nav-toggle {
		display: block;
		width: 100%;
		background: #6db7b6 url(img/top-nav-back.jpg) 0 0 repeat-x;
		background-size: auto 100%;
		border: 0;
		color: #fff;
		font: bold 15px Arial, sans-serif;
		text-transform: uppercase;
		text-align: left;
		padding: 14px 15px;
		cursor: pointer;
		text-shadow: 1px 1px #888;
	}
	#nav-toggle span { display: inline-block; width: 18px; height: 2px; background: #fff; box-shadow: 0 -6px #fff, 0 6px #fff; vertical-align: middle; margin-right: 12px; }
	#top-nav > ul { display: none; padding: 5px 15px 10px; }
	#top-nav.open > ul { display: block; }
	#top-nav ul li, #top-nav ul li.account { float: none; margin: 0; }
	#top-nav ul li a { display: block; padding: 9px 0; font-size: 15px; }
	#top-nav ul li ul { display: block; position: static; width: auto; border: 0; padding: 0 0 5px 15px; }
	#top-nav ul li ul li { width: auto; background: none; border: 0; padding: 0; }
	#top-nav ul li ul li a { font-size: 14px; padding: 6px 0; }
	#top-nav ul li ul li:hover { background: none; }
	#top-nav ul li.account > a { background-position: 0 50%; }

	th, td { padding: 8px 10px; }
	.rkc-inner { flex-direction: column; }
	.rkc-map img { max-width: 100%; }
	.wpcf7 { padding: 20px 15px; }
	#footer .links .col { float: none; }
	.footer-bottom .stat, .footer-bottom .copyright, .footer-bottom .author { float: none; margin-bottom: 8px; }
	.footer-legal a { display: block; margin: 0 0 8px; }
}
@media (max-width: 520px) {
	#header-inner { background-image: none; }
	#logo a { background-size: 60px auto; padding-left: 72px; }
	#logo .logo-name { font-size: 1.15em; }
	#logo .logo-org { font-size: 0.85em; }
	.block .block-inner { padding: 16px; }
}
