/*
	HDService — общий стиль лендингов (ai.html, infrastructure.html).
	Дизайн-токены повторяют главную страницу (style.css):
	шрифт Inter, белый «пилюля»-стиль, красный акцент #d1140d,
	тёмный текст #000515, фоновое изображение fff.png.
*/

html {
	scroll-behavior: smooth;
}

body {
	font-family: Inter, sans-serif;
	margin: 0;
	color: #000515;
	background-color: #fff;
	background-image: url("fff.png");
	background-size: 30% auto;
	background-position: center;
}

a {
	color: #000515;
	text-decoration: none;
	font-weight: 500;
}
a:hover {
	color: #d1140d;
}

/* Красная первая буква — фирменный приём главной страницы */
h1::first-letter,
h2::first-letter,
h3::first-letter,
h4::first-letter,
.mail p::first-letter {
	text-transform: uppercase;
	color: #d1140d;
}

/* ---------- Шапка ---------- */
.header {
	margin: 24px auto 0;
	padding: 0 24px;
	text-align: center;
}
.logo {
	/* Крупный логотип на десктопе; на мобильных — как на главной (95vw) */
	width: clamp(280px, 28vw, 460px);
	height: auto;
	display: inline-block;
}

/* ---------- Каркас ---------- */
.wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px 24px;
}
section {
	margin-top: 72px;
}
h2 {
	position: relative;
	font-size: clamp(26px, 2.6vw, 40px);
	font-weight: 650;
	text-align: center;
	margin: 0 0 36px;
	letter-spacing: -0.3px;
}
h2::before {
	/* Белый контур H2 — та же подложка-дубликат, что у H1, но тоньше.
	   Без data-text подложка пуста и ничего не рисует (безопасно). */
	content: attr(data-text);
	position: absolute;
	inset: 0;
	color: #fff;
	-webkit-text-stroke: 15px #fff;
	text-shadow: 0 0 16px #fff, 0 0 24px #fff, 0 0 34px #fff;
	z-index: -1;
}

/* ---------- Герой ---------- */
.hero {
	text-align: center;
	padding: 0 0 8px;
}
.hero h1 {
	position: relative;
	font-size: clamp(34px, 4.6vw, 62px);
	font-weight: 650;
	line-height: 1.08;
	letter-spacing: -0.5px;
	margin: 28px auto 0;
	max-width: 900px;
}
.hero h1::before {
	/* Белый контур — отдельным слоем ПОД текстом: копия текста с широкой
	   белой обводкой и свечением, спрятанная за настоящими буквами.
	   Кайма каждой буквы лежит ниже ВСЕХ букв, поэтому не может накрыть
	   соседнюю — в отличие от text-stroke/text-shadow на самом тексте. */
	content: attr(data-text);
	position: absolute;
	inset: 0;
	color: #fff;
	-webkit-text-stroke: 24px #fff;
	text-shadow: 0 0 26px #fff, 0 0 38px #fff, 0 0 52px #fff;
	z-index: -1;
}
.hero h1 .fl {
	/* Красная первая буква — цвет задаём явно: ::first-letter
	   не срабатывает для буквы, обёрнутой в span */
	color: #d1140d;
}
.lead {
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 500;
	line-height: 1.55;
	max-width: 740px;
	margin: 32px auto 0;
	background-color: #fff;
	border-radius: 500px;
	padding: 28px 44px;
	box-sizing: border-box;
}
.hero_buttons {
	margin-top: 40px;
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---------- Кнопки ---------- */
.btn {
	display: inline-block;
	background-color: #fff;
	color: #000515;
	border-radius: 500px;
	padding: 16px 36px;
	font-size: 16px;
	font-weight: 550;
	border: 1.5px solid #d1140d;
	box-sizing: border-box;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover {
	color: #d1140d;
	transform: translateY(-2px);
}
.btn_primary {
	background-color: #d1140d;
	color: #fff;
	border-color: #d1140d;
}
.btn_primary:hover {
	color: #fff;
	background-color: #b3120b;
	border-color: #b3120b;
}
.btn_big {
	padding: 20px 48px;
	font-size: 18px;
	margin-top: 32px;
}

/* ---------- Услуги ---------- */
.services_grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.card {
	background-color: #fff;
	border-radius: 48px;
	padding: 40px;
	box-shadow: 0 12px 40px rgba(0, 5, 21, 0.05);
}
.num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 500px;
	background-color: #d1140d;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}
.card h3 {
	font-size: clamp(20px, 1.8vw, 26px);
	font-weight: 600;
	margin: 20px 0 0;
}
.card p {
	font-size: 16px;
	line-height: 1.6;
	margin: 14px 0 0;
}
.chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 22px 0 0;
}
.chips li {
	border-radius: 500px;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 500;
	background-color: #fff;
	border: 1px solid rgba(0, 5, 21, 0.1);
}
.card_link {
	display: inline-block;
	margin-top: 26px;
	font-size: 15px;
	font-weight: 550;
}

/* ---------- Как мы работаем ---------- */
.steps_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.step {
	background-color: #fff;
	border-radius: 40px;
	padding: 32px 26px;
	text-align: center;
	box-shadow: 0 12px 40px rgba(0, 5, 21, 0.05);
}
.step_num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 500px;
	border: 2px solid #d1140d;
	color: #d1140d;
	font-size: 16px;
	font-weight: 600;
}
.step h4 {
	font-size: 18px;
	font-weight: 600;
	margin: 16px 0 0;
}
.step p {
	font-size: 14px;
	line-height: 1.55;
	margin: 10px 0 0;
}

/* ---------- Возможности платформы (страница «Бизнес-процессы») ---------- */
.features_grid {
	/* 6 колонок: карточка занимает 2. Второй ряд из двух карточек
	   (4-я и 5-я) сдвинут к центру — по полколонки слева и справа */
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
}
.feature {
	grid-column: span 2;
	background-color: #fff;
	border-radius: 40px;
	padding: 32px;
	box-shadow: 0 12px 40px rgba(0, 5, 21, 0.05);
}
.features_grid .feature:nth-child(4) {
	grid-column: 2 / span 2;
}
.features_grid .feature:nth-child(5) {
	grid-column: 4 / span 2;
}
.feature h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
}
.feature p {
	font-size: 15px;
	line-height: 1.55;
	margin: 12px 0 0;
}

/* ---------- FAQ (аккордеон, нативный details/summary) ---------- */
.faq {
	max-width: 900px;
	margin: 0 auto;
	display: grid;
	gap: 16px;
}
.faq details {
	background-color: #fff;
	border-radius: 40px;
	padding: 26px 36px;
	box-shadow: 0 12px 40px rgba(0, 5, 21, 0.05);
}
.faq summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 20px;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary h3 {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
}
.faq summary::after {
	content: "+";
	color: #d1140d;
	font-size: 26px;
	font-weight: 500;
	line-height: 1;
	flex-shrink: 0;
}
.faq details[open] summary::after {
	content: "\2013";
}
.faq details p {
	margin: 16px 0 0;
	font-size: 15px;
	line-height: 1.6;
}
@media all and (max-width: 768px) {
	.faq details {
		padding: 22px 24px;
		border-radius: 36px;
	}
}

/* ---------- Другие услуги (перелинковка внизу страницы) ---------- */
.also_grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	max-width: 900px;
	margin: 0 auto;
}
.also_grid a {
	background-color: #fff;
	border-radius: 500px;
	padding: 13px 26px;
	font-size: 15px;
	font-weight: 550;
	box-shadow: 0 8px 24px rgba(0, 5, 21, 0.04);
	transition: transform 0.15s ease, color 0.15s ease;
}
.also_grid a:hover {
	color: #d1140d;
	transform: translateY(-2px);
}
.also_grid a::first-letter {
	text-transform: uppercase;
	color: #d1140d;
}

/* ---------- Призыв к действию ---------- */
.cta {
	background-color: #fff;
	border-radius: 60px;
	padding: 64px 40px;
	text-align: center;
	box-shadow: 0 12px 40px rgba(0, 5, 21, 0.05);
}
.cta h2 {
	margin-bottom: 16px;
}
.cta_text {
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.55;
	max-width: 640px;
	margin: 0 auto;
}
.cta_note {
	margin: 18px 0 0;
	font-size: 13px;
	color: rgba(0, 5, 21, 0.5);
}

/* ---------- Подвал ---------- */
.footer {
	text-align: center;
	padding: 56px 0 28px;
}
.mail_container {
	margin: 0 auto 12px;
	width: max-content;
	text-align: center;
	padding: 0 5px;
	background-color: #fff;
	border-radius: 500px;
	display: flex;
}
.mail {
	font-size: 15px;
}
.copy {
	font-size: 12px;
	color: rgba(0, 5, 21, 0.45);
	margin: 0;
}

/* ---------- Адаптив (брейкпоинты как в adaptive.css) ---------- */
@media all and (max-width: 1024px) {
	.services_grid {
		grid-template-columns: 1fr;
	}
	.steps_grid {
		grid-template-columns: 1fr 1fr;
	}
	.features_grid {
		grid-template-columns: 1fr 1fr;
	}
	/* сброс десктопной 6-колоночной раскладки */
	.features_grid .feature,
	.features_grid .feature:nth-child(4),
	.features_grid .feature:nth-child(5) {
		grid-column: auto;
	}
	/* пятая карточка одна в ряду — по центру, шириной с соседей */
	.features_grid .feature:nth-child(5) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - 10px);
		box-sizing: border-box;
	}
}

@media all and (max-width: 768px) {
	body {
		background-size: 70% auto;
	}
	.header {
		margin-top: 0;
		padding: 0;
	}
	.logo {
		width: 95vw;
		display: block;
		margin: 0 auto;
	}
	.also_grid a {
		font-size: 14px;
		padding: 11px 20px;
	}
	.hero {
		padding: 0;
	}
	.hero h1::before {
		-webkit-text-stroke: 18px #fff;
	}
	h2::before {
		-webkit-text-stroke: 12px #fff;
	}
	.lead {
		padding: 24px 28px;
	}
	.hero_buttons .btn {
		width: 100%;
	}
	.steps_grid {
		grid-template-columns: 1fr;
	}
	.features_grid {
		grid-template-columns: 1fr;
	}
	.features_grid .feature:nth-child(5) {
		grid-column: auto;
		width: auto;
		justify-self: stretch;
	}
	.feature {
		padding: 28px;
		border-radius: 36px;
	}
	.card {
		padding: 28px;
		border-radius: 36px;
	}
	.cta {
		padding: 48px 24px;
		border-radius: 40px;
	}
	section {
		margin-top: 56px;
	}
}
