.rekhi-factory-state {
	--rekhi-factory-primary: var(--primary-color, var(--rekhi-primary-color, #FF6600));
	--rekhi-factory-secondary: var(--secondary-color, var(--rekhi-factory-primary));
	--rekhi-factory-surface: var(--bg-dark-surface, #101010);
	--rekhi-factory-text: var(--text-light-main, #f7f4ef);
	padding: clamp(56px, 7vw, 96px) 0;
	color: var(--rekhi-factory-text);
	background:
		radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rekhi-factory-primary) 16%, transparent), transparent 36%),
		linear-gradient(180deg, var(--rekhi-factory-surface), rgba(0, 0, 0, 0.82));
}

.rekhi-factory-head,
.rekhi-factory-grid {
	width: min(1180px, calc(100% - 36px));
	margin: 0 auto;
}

.rekhi-factory-head {
	width: min(860px, calc(100% - 36px));
	margin-bottom: 30px;
	text-align: center;
}

.rekhi-factory-head p {
	display: inline-flex;
	margin: 0 0 12px;
	padding: 8px 14px;
	border: 1px solid color-mix(in srgb, var(--rekhi-factory-primary) 34%, transparent);
	border-radius: 999px;
	color: var(--rekhi-factory-primary);
	background: color-mix(in srgb, var(--rekhi-factory-primary) 12%, transparent);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.rekhi-factory-head h2 {
	margin: 0;
	color: var(--rekhi-factory-text);
	font-size: clamp(32px, 5vw, 58px);
	line-height: 1;
}

.rekhi-factory-head span {
	display: block;
	margin-top: 14px;
	color: color-mix(in srgb, var(--rekhi-factory-text) 70%, transparent);
	line-height: 1.65;
}

.rekhi-factory-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.rekhi-factory-card {
	position: relative;
	overflow: hidden;
	min-height: 220px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--rekhi-factory-primary) 12%, transparent), transparent 46%),
		rgba(255, 255, 255, 0.065);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transform: translateY(14px);
	opacity: .88;
	transition: transform .35s ease, opacity .35s ease, border-color .2s ease;
}

.rekhi-factory-state.is-visible .rekhi-factory-card {
	transform: translateY(0);
	opacity: 1;
}

.rekhi-factory-card:nth-child(2) {
	transition-delay: .05s;
}

.rekhi-factory-card:nth-child(3) {
	transition-delay: .1s;
}

.rekhi-factory-card:nth-child(4) {
	transition-delay: .15s;
}

.rekhi-factory-card:hover {
	border-color: color-mix(in srgb, var(--rekhi-factory-primary) 45%, transparent);
}

.rekhi-factory-card strong {
	display: block;
	color: var(--rekhi-factory-primary);
	font-size: clamp(38px, 5vw, 70px);
	line-height: .9;
	text-shadow: 0 0 30px color-mix(in srgb, var(--rekhi-factory-primary) 32%, transparent);
}

.rekhi-factory-card h3 {
	margin: 16px 0 9px;
	color: var(--rekhi-factory-text);
	font-size: 20px;
	line-height: 1.12;
}

.rekhi-factory-card p {
	margin: 0;
	color: color-mix(in srgb, var(--rekhi-factory-text) 68%, transparent);
	line-height: 1.6;
}

@media (max-width: 1000px) {
	.rekhi-factory-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.rekhi-factory-head,
	.rekhi-factory-grid {
		width: min(100% - 22px, 1180px);
	}

	.rekhi-factory-grid {
		grid-template-columns: 1fr;
	}
}
