/* Первая отрисовка шапки и первого экрана до загрузки Bootstrap и style.css.
   Геометрия и брейкпоинты совпадают с основными стилями. */
body { margin: 0; }
body > .wrapper { position: relative; padding-top: 43px; overflow: hidden; }

:where(.wrapper > header) {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 888;
}
:where(.wrapper > header, #content) {
	font: 16px/1.625 'Open Sans', sans-serif;
	color: #787878;
}
:where(.wrapper > header, .wrapper > header *) { box-sizing: border-box; }
:where(.wrapper) .container {
	box-sizing: border-box;
	margin-inline: auto;
	padding-inline: 15px;
}

/* На внутренних страницах шапка фиксирована сразу, не только после init.js. */
body.inner { padding-top: 80px; }
/* Дополнительный отступ под подменю, пока init.js не выставил отступ у body. */
body.inner:not(.fixed) > .wrapper > header:has(> .subMenu) ~ #content { margin-top: 33px; }
body.inner > .wrapper > header,
.header--fixed { position: fixed; }
body.inner :is(.header--fixed, .inner-bg--fixed, .service-block-fixed--visible) {
	animation: none;
}
.inner-bg { display: none; }
body.inner > .wrapper > .inner-bg,
.inner-bg--fixed {
	display: block;
	position: fixed;
	top: 43px;
	left: 0;
	width: 100%;
	height: 60px;
	overflow: hidden;
	z-index: 433;
	background-color: #018184;
}
.inner-bg > img { position: absolute; bottom: 0; left: 0; min-width: 100%; }

.header-top {
	position: relative;
	height: 43px;
	padding-top: 12px;
	z-index: 888;
	background: #fff;
	font-size: 14px;
	line-height: 18px;
}
.header-top .navbar-toggle {
	position: relative;
	display: block;
	float: left;
	width: 90px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	z-index: 888;
}
.navbar-toggle > .icon { display: block; width: 17px; }
.navbar-toggle > .text { position: absolute; top: 0; left: 29px; }
.navbar-toggle > .text.text_close { top: -18px; }
.header-top .navbar-toggle .icon-bar {
	display: block;
	width: 100%;
	height: 2px;
	margin: 3px 0;
	background: #818181;
}
.navbar-toggle .icon > .icon-bar + .icon-bar { margin-top: 3px; }
.header-top__links { float: right; }
.header-top__links a { margin-left: 35px; color: #787878; text-decoration: none; }
.header-top-wrapper-outer { display: none; text-align: center; }
.header-top-link { color: #282829; text-decoration: none; }

.header-bottom { padding: 30px 0; }
body.inner .header-bottom,
.header--fixed .header-bottom { padding: 15px 0 13px; }
.header-bottom::after { content: ''; display: block; clear: both; }
.header-bottom__logo { float: left; width: 100%; max-width: 200px; }
.header-bottom__logo .svg-logo {
	width: 100%;
	height: auto;
	aspect-ratio: auto 789 / 121;
	vertical-align: middle;
}

.menu_top,
.menu_top ul { margin: 0; padding: 0; list-style: none; }
.menu_top { float: right; height: 29px; }
.menu_top > li { position: relative; float: left; margin-left: 38px; padding: 5px 0; font-size: 12px; }
.menu_top > li > .menu__item { color: #fff; font-weight: bold; text-transform: uppercase; text-decoration: none; }
.menu_top ul { position: absolute; visibility: hidden; opacity: 0; }

header .searchBlock { position: relative; float: right; margin: 0 0 0 36px; }
header .searchBlock .link_search { display: inline-block; padding: 5px 0; line-height: 19px; }
header .searchBlock svg { width: 22px; height: 22px; vertical-align: middle; }
.searchBlock .formSearch { position: absolute; top: calc(50% - 20px); right: -10px; width: 0; overflow: hidden; }

header .subMenu { min-height: 43px; background-color: #ebebeb; }
.subMenu__btn { display: none; }
.subMenu .submenu-list {
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: 40px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}
.submenu-list a { color: #282829; font-size: 14px; text-decoration: none; }

.modalMenu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	max-height: 100vh;
	overflow: hidden;
	visibility: hidden;
	opacity: 0;
	z-index: 777;
	transform: translateY(-100%);
}
.menu_open .modalMenu { visibility: visible; }
.modal { display: none; }

/* Геометрия первого блока /service/ до применения сетки и типографики. */
/* Приближаем ширину букв Arial к Open Sans, пока веб-шрифт загружается. */
@font-face {
	font-family: 'IQTech heading fallback';
	src: local('Arial');
	size-adjust: 106%;
}
.inner article:has(> .container > .service-title) { padding-top: 10px; }
.service-title,
.imgmap_service h2 {
	margin: 0 0 30px;
	font-family: 'Open Sans', 'IQTech heading fallback', sans-serif;
	font-size: 36px;
	font-weight: 400;
	color: #282829;
}
.service-title { max-width: 878px; line-height: 1.2; }
.imgmap_service h2 { line-height: 1.1; }
.imgmap_service > .row { display: flow-root; margin-inline: -15px; }
.imgmap_service > .row > .col-lg-9 { box-sizing: border-box; padding-inline: 15px; }
.imgmap_service > .row p { margin: 0; font-size: 16px; line-height: 1.875; }
.imgmap_service .services { padding-block: 60px; }
.services__list { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
.services__item { display: grid; gap: 20px; box-sizing: border-box; min-height: 204px; padding: 20px; }
.services__item-title { max-width: 210px; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; }
.services__item-title a { color: inherit; text-decoration: none; }
.services__item:not(.services__item--banner) {
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(3, auto);
}
.services__item:not(.services__item--banner) .services__item-title { grid-column: 1 / -1; grid-row: 1 / 3; }
.services__item:not(.services__item--banner) .services__item-logo { grid-column: 1 / 2; grid-row: 3 / 4; }
.services__item-logo { max-width: 100%; justify-self: start; align-self: end; }
.services__item-img {
	max-width: 100%;
	height: auto;
	grid-column: 2 / 3;
	grid-row: 1 / 4;
	justify-self: end;
	align-self: end;
}

@media (min-width: 576px) {
	.services__list { grid-template-columns: repeat(2, 1fr); }
	.services__item:not(.services__item--banner) { grid-template-columns: 82px 1fr; }
}
@media (min-width: 768px) {
	:where(.wrapper) .container { width: 750px; }
	.header-top-wrapper-outer { display: inline-block; width: calc(100% - 377px); }
	.header-top-link { display: inline-block; }
}
@media (min-width: 992px) {
	:where(.wrapper) .container { width: 970px; }
	.services__list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
	:where(.wrapper) .container { width: 1170px; }
	.services__list { gap: 50px; }
	.imgmap_service > .row > .col-lg-9 { width: 75%; }
}
@media (min-width: 992px) and (max-width: 1199px) {
	.menu_top > li { margin-left: 20px; }
}
@media (max-width: 991px) {
	.header-bottom > nav.hidden-sm { display: none; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
	.header-top-wrapper-outer { margin-top: -8px; }
}
@media (max-width: 767px) {
	header .searchBlock.hidden-xs { display: none; }
	.service-title { font-size: 30px; }
	.imgmap_service h2:not(.h2-iqtech) { font-size: 24px; }
	.imgmap_service > .row p { font-size: 14px; }
	.imgmap_service .services { padding-block: 30px; }
}
@media (max-width: 767.98px) {
	header .subMenu { display: flex; position: relative; align-items: center; justify-content: center; }
	.subMenu__btn { display: block; position: absolute; color: #282829; text-decoration: none; }
	.subMenu .submenu-list { display: none; margin-top: 30px; }
}
@media (max-width: 549px) {
	body.inner:not(.fixed) > .wrapper > header:has(> .subMenu) ~ #content { margin-top: 97px; }
}
@media (max-width: 425px) {
	.inner-bg > img { height: 100%; }
}
@media (max-width: 424px) {
	.header-top__links { font-size: 12px; }
	.header-top__links a { margin-left: 0; }
}
