/**
 * Relsoft: нормализация под WordPress.
 * Меню: ul больше не несёт .wrap — как шапка, обёртка div.wrap центрирует 960px.
 */

/* Сброс отступов документа (иначе относительно макета 960px всё «плывёт») */
html,
body {
	margin: 0;
	padding: 0;
}

/* Логотип: оригинальный r-s.ru/css/logo.png → assets/images/relsoft-logo-header.png */
#header .logo {
	position: absolute;
	top: 17px;
	left: 0;
	display: block !important;
	width: auto;
	max-width: min(100%, 220px);
	height: auto;
	min-height: 0;
	padding: 0;
	background: none !important;
	text-indent: 0 !important;
	overflow: visible !important;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}

#header .logo__img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 63px;
	object-fit: contain;
}

/* Телефон в шапке и в блоке контактов: явный no-repeat — иначе при сбросе background шорткатом иконка может «моститься» по ширине */
#header > .wrap > .tel {
	display: inline-block !important;
	width: auto !important;
	max-width: 50%;
	white-space: nowrap;
	background-image: url("call_me.png") !important;
	background-repeat: no-repeat !important;
	background-position: 0 11px !important;
	box-sizing: border-box;
}

#content .content_wrap .contacts .tel_email > .tel {
	background-image: url("call_me.png") !important;
	background-repeat: no-repeat !important;
	background-position: 0 22px !important;
	width: max-content !important;
	max-width: 100%;
	box-sizing: border-box;
}

#footer .logo.logo--footer {
	position: absolute;
	left: 16px;
	top: 55px;
	display: block;
	width: auto;
	max-width: 127px;
	height: auto;
	background: none !important;
	text-indent: 0 !important;
	overflow: visible;
}

#footer .logo__img--footer {
	display: block;
	width: auto;
	max-width: 127px;
	max-height: 40px;
	height: auto;
	object-fit: contain;
}

/* Вариант 1 — эволюция: две карточки на главной */
.relsoft-evolution-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin: 28px 0 8px;
}

@media (max-width: 640px) {
	.relsoft-evolution-cards {
		grid-template-columns: 1fr;
	}
}

.relsoft-evolution-cards__item {
	border-radius: 18px;
	padding: 22px 20px 20px;
	background: linear-gradient(145deg, #334e68 0%, #243b53 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.relsoft-evolution-cards__title {
	margin: 0 0 10px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
}

.relsoft-evolution-cards__text {
	margin: 0 0 12px;
	font-size: 0.9rem;
	color: #cbd5e1;
	line-height: 1.45;
}

.relsoft-evolution-cards__link {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #7dd3fc !important;
	text-decoration: none;
}

.relsoft-evolution-cards__link:hover {
	text-decoration: underline;
	color: #bae6fd !important;
}

/* Полоса меню: на всю ширину окна, как визуальный ряд под шапкой */
#relsoft_menu_bar {
	position: relative;
	z-index: 50;
	width: 100%;
	clear: both;
	box-sizing: border-box;
	overflow: visible;
}

/* Внутренний блок как у #header .wrap: те же margin auto и ширина */
#relsoft_menu_bar .relsoft-menu-inner {
	position: relative;
	overflow: visible;
}

/* Одна линия пунктов: flex + nowrap — float на узкой ширине мог переносить последнюю кнопку вниз («меню уехало») */
#relsoft_menu_bar ul#relsoft_menu.relsoft-menu,
#relsoft_menu_bar ul.relsoft-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: stretch;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	overflow: visible;
}

#relsoft_menu_bar ul.relsoft-menu > .menu_point {
	float: none !important;
	flex: 0 0 auto;
	display: list-item !important;
	overflow: visible;
}

/* Индикатор текущего пункта (menu_current.png, top: -2px в основном CSS) — не обрезать родителем */
#relsoft_menu_bar ul.relsoft-menu > .menu_point .menu_point_link {
	overflow: visible;
	min-width: 157px;
	width: 157px;
	box-sizing: border-box;
}

/* Контент страницы */
#content .entry-content,
#content .entry-content p,
#content .entry-content li {
	color: #82a4c2;
}
#content .entry-content a {
	color: #b9ccdd;
}
#content .entry-content ul {
	list-style: disc outside;
	margin: 0 0 15px 1.25em;
	padding: 0;
}
#content .entry-content ol {
	margin: 0 0 15px 1.25em;
	padding: 0;
}
#content .entry-content li {
	margin: 0 0 8px;
}

/* Старый HTML мог содержать ul#menu — отдельно от основной навигации (id теперь relsoft_menu) */
#content .entry-content ul#menu li {
	float: none !important;
	width: auto !important;
	min-width: 0 !important;
	list-style: disc outside;
	background: none !important;
}

#content .entry-content img {
	max-width: 100%;
	height: auto;
}

#footer .menu li {
	list-style: none;
}

@media (max-width: 980px) {
	#header .wrap,
	#relsoft_menu_bar .wrap,
	#content.wrap {
		padding-left: 8px;
		padding-right: 8px;
		box-sizing: border-box;
	}
	.wrap {
		width: 100%;
		max-width: 960px;
	}
	#relsoft_menu_bar ul.relsoft-menu {
		flex-wrap: wrap;
	}
	#relsoft_menu_bar ul.relsoft-menu .menu_point .menu_point_link {
		width: auto;
		min-width: 120px;
	}
}
