/* Блоки «Мониторинг» (acf/nxm-*) — Figma «Мониторинг майнинга» 14577:15603.
   Сетка, заголовки, кнопки и отступы секций — из main.css (.container, .block-head, .title,
   .block-head__descr, .btn--2, .figure-arrow). Здесь — только внутренности новых блоков.
   Цвета — палитра темы: #292432 (тёмный), #F5F7FB (фон карточек), #F26D3C → #E83E3B (акцент). */

.section-nxm {
	margin-top: 120px;
}

/* ===== Сетка как у «Музеев»: контент min(1200px, 100% − 32px) по центру =====
   Применяется ко всем секциям страницы (и к блокам темы), шапка и подвал не затрагиваются. */

body.nxm-grid-1200 .main-content > * > .container {
	width: auto;
	max-width: min(1200px, calc(100% - 32px));
	margin-left: auto;
	margin-right: auto;
}

/* Первый экран: контейнер вложен в .section-premier__wrapp */
body.nxm-grid-1200 .section-premier .container {
	width: auto;
	max-width: min(1200px, calc(100% - 32px));
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

body.nxm-grid-1200 .section-premier .item-premier {
	padding-left: 0;
	padding-right: 0;
}

/* «Кому подходят» / «Почему выбирают»: у ряда свои поля — выравниваем текст по краю сетки */
body.nxm-grid-1200 .section-advantage .advantage-row {
	margin-left: -21px;
	margin-right: -21px;
}

/* Плашки с фоном (этапы, форма) сохраняют свои внутренние поля, у остальных край контейнера = край контента */
body.nxm-grid-1200 .main-content > :not(.section-phases):not(.feedback-section) > .container {
	padding-left: 0;
	padding-right: 0;
}

/* ===== Функции «стопкой» (nxm-features) ===== */

.nxm-pile {
	display: flex;
	flex-direction: column;
	gap: 128px;
}

.nxm-pile__card {
	position: sticky;
	top: 120px;
}

.nxm-pile__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	min-height: 494px;
	padding: 32px 32px 0;
	background: #F5F7FB;
	border: 2px solid #fff;
	border-radius: 32px;
	overflow: hidden;
	transform-origin: 50% 0;
	will-change: transform;
}

.nxm-pile__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.nxm-pile__title {
	margin: 0;
	font-weight: 600;
	font-size: 3.2rem;
	line-height: 1.2;
	color: #000;
}

.nxm-pile__text {
	margin: 0;
	max-width: 840px;
	font-size: 1.6rem;
	line-height: 1.5;
	color: #565656;
}

.nxm-pile__img {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	width: 100%;
	margin-top: auto;
}

.nxm-pile__img img {
	display: block;
	width: 100%;
	height: auto;
}

.nxm-pile__shade {
	position: absolute;
	inset: 0;
	background: #000;
	opacity: 0;
	pointer-events: none;
	border-radius: inherit;
}

.nxm-features__btn {
	margin-top: 64px;
}

.nxm-features__btn .btn {
	min-width: 280px;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 62px;
}

/* ===== Сравнение (nxm-compare) ===== */

.nxm-compare {
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow:
		0 136px 19px rgba(226, 232, 240, 0.02),
		0 87px 17.5px rgba(226, 232, 240, 0.15),
		0 49px 14.5px rgba(226, 232, 240, 0.5),
		0 22px 11px rgba(226, 232, 240, 0.85),
		0 5px 6px rgba(226, 232, 240, 0.98);
}

.nxm-compare__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.nxm-compare__th,
.nxm-compare__td {
	width: 50%;
	padding: 16px 24px;
	text-align: left;
	vertical-align: middle;
}

.nxm-compare__th {
	height: 73px;
	background: #F5F7FB;
	font-weight: 600;
	font-size: 1.8rem;
	line-height: 1.2;
	color: #000;
}

.nxm-compare__th--accent span {
	background: linear-gradient(90deg, #F26D3C 0%, #E83E3B 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nxm-compare__td {
	height: 70px;
	font-size: 1.6rem;
	line-height: 1.35;
	border-top: 1px solid #EBEBEB;
}

.nxm-compare__td--before {
	color: #909090;
}

.nxm-compare__td--after {
	color: #000;
}

.nxm-compare__th + .nxm-compare__th,
.nxm-compare__td + .nxm-compare__td {
	border-left: 1px solid #EBEBEB;
}

.nxm-compare__row {
	transition: background-color 0.3s ease-in-out;
}

.nxm-compare__row:hover {
	background: #FBFCFE;
}

/* ===== Технологический стек (nxm-stack) ===== */

.nxm-stack {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.nxm-stack__card {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	background: #F5F7FB;
	border: 2px solid #fff;
	border-radius: 24px;
	transition: box-shadow 0.3s ease-in-out;
}

.nxm-stack__card:hover {
	box-shadow: 0 12px 32px rgba(41, 36, 50, 0.08);
}

.nxm-stack__card--wide,
.nxm-stack__cta {
	grid-column: span 3;
}

.nxm-stack__head {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 32px;
}

.nxm-stack__title {
	flex: 1 1 auto;
	margin: 0;
	font-weight: 600;
	font-size: 1.8rem;
	line-height: 1.2;
	color: #000;
}

.nxm-stack__logos {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.nxm-stack__logo {
	display: block;
	width: 32px;
	height: 32px;
	object-fit: contain;
	transition: transform 0.3s ease-in-out;
}

.nxm-stack__card:hover .nxm-stack__logo {
	transform: translateY(-2px);
}

.nxm-stack__card:hover .nxm-stack__logo:nth-child(2) { transition-delay: 0.05s; }
.nxm-stack__card:hover .nxm-stack__logo:nth-child(3) { transition-delay: 0.1s; }
.nxm-stack__card:hover .nxm-stack__logo:nth-child(4) { transition-delay: 0.15s; }

.nxm-stack__text {
	margin: 0;
	font-weight: 600;
	font-size: 1.8rem;
	line-height: 1.2;
	color: #8D8D8D;
}

.nxm-stack__text > span {
	display: block;
}

.nxm-stack__cta {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 150px;
	padding: 24px;
	border-radius: 16px;
	background: linear-gradient(90deg, #F26D3C 0%, #E83E3B 100%);
	color: #fff;
	text-decoration: none;
	transition: box-shadow 0.3s ease-in-out;
}

.nxm-stack__cta:hover {
	color: #fff;
	box-shadow: 0 16px 40px rgba(232, 62, 59, 0.3);
}

.nxm-stack__cta-title {
	font-weight: 600;
	font-size: 2.4rem;
	line-height: 1.2;
}

.nxm-stack__cta-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 21px;
}

.nxm-stack__cta-text {
	font-weight: 500;
	font-size: 1.6rem;
	line-height: 1.2;
}

.nxm-stack__cta .figure-arrow {
	background: rgba(255, 255, 255, 0.1);
}

.nxm-stack__cta .figure-arrow .figure-arrow__svg,
.nxm-stack__cta:hover .figure-arrow .figure-arrow__svg {
	stroke: #fff;
}

/* ===== Адаптив: точки перелома темы ===== */

@media (max-width: 1100px) {
	.nxm-pile__title {
		font-size: 2.8rem;
	}
}

@media (max-width: 991px) {
	.nxm-pile {
		gap: 64px;
	}

	.nxm-pile__card {
		top: 96px;
	}

	.nxm-stack {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nxm-stack__card,
	.nxm-stack__card--wide {
		grid-column: span 1;
	}

	.nxm-stack__cta {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.nxm-pile {
		gap: 32px;
	}

	.nxm-pile__card {
		top: 84px;
	}

	.nxm-pile__inner {
		gap: 16px;
		min-height: 0;
		padding: 24px 16px 0;
		border-radius: 24px;
	}

	.nxm-pile__body {
		gap: 12px;
	}

	.nxm-pile__title {
		font-size: 2.2rem;
	}

	.nxm-pile__text {
		font-size: 1.4rem;
	}

	.nxm-features__btn {
		margin-top: 32px;
	}

	.nxm-features__btn .btn {
		min-width: 0;
		line-height: 52px;
		font-size: 1.6rem;
	}

	.nxm-compare {
		border-radius: 16px;
	}

	.nxm-compare__th,
	.nxm-compare__td {
		padding: 12px;
	}

	.nxm-compare__th {
		height: auto;
		font-size: 1.4rem;
	}

	.nxm-compare__td {
		height: auto;
		font-size: 1.3rem;
	}

	.nxm-stack {
		grid-template-columns: minmax(0, 1fr);
	}

	.nxm-stack__card,
	.nxm-stack__card--wide,
	.nxm-stack__cta {
		grid-column: 1 / -1;
	}

	.nxm-stack__card {
		padding: 20px;
		border-radius: 20px;
	}

	.nxm-stack__title,
	.nxm-stack__text {
		font-size: 1.6rem;
	}

	.nxm-stack__cta-title {
		font-size: 2rem;
	}
}

@media (max-width: 576px) {
	.section-nxm {
		margin-top: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nxm-pile__card {
		position: static;
	}

	.nxm-pile__inner {
		transform: none !important;
	}

	.nxm-pile__shade {
		display: none;
	}
}
