/**
 * Sekcja „Rekrutacja — trzy kroki” (tło szałwiowe, timeline).
 * Fale góra/dół — kolor jak sekcja „Dlaczego my” (--ms-hero-ivory).
 */

.rec-proc-section {
	--rec-proc-wave-h: clamp(52px, 9vw, 88px);
	position: relative;
	overflow-x: clip;
	overflow-y: visible;
	margin-top: calc(-1 * var(--rec-proc-wave-h));
	margin-bottom: calc(-1 * var(--rec-proc-wave-h));
	padding-top: calc(var(--ms-space-section) + var(--rec-proc-wave-h));
	padding-bottom: calc(var(--ms-space-section) + var(--rec-proc-wave-h));
	background: var(--ms-sage);
	color: var(--ms-white);
}

/* Fala u góry: wypełnienie ivory z falistą dolną krawędzią (nad sekcją szałwiową widać zieleń) */
.rec-proc-section::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: var(--rec-proc-wave-h);
	z-index: 1;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23f7f3eb' d='M0%200L1440%200L1440%2058C1200%2022%20960%2068%20720%2040C480%2014%20240%2056%200%2034L0%200z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center top;
}

/* Fala u dołu: mirror — ivory pod falistą granicą (ciągłość z sekcją pod spodem) */
.rec-proc-section::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--rec-proc-wave-h);
	z-index: 1;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23f7f3eb' d='M0%2090L1440%2090L1440%2028C1200%2056%20960%2018%20720%2046C480%2072%20240%2024%200%2042L0%2090z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center bottom;
}

.rec-proc-bg {
	position: absolute;
	/* Mniejsze niż -15%/-10% — gradienty i bloby bez ryzyka przebicia clip w starszych silnikach. */
	inset: -12% -8%;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 55% 45% at 12% 18%, rgba(255, 255, 255, 0.09), transparent 52%),
		radial-gradient(ellipse 48% 40% at 88% 12%, rgba(255, 255, 255, 0.06), transparent 48%),
		radial-gradient(ellipse 50% 55% at 92% 88%, rgba(255, 255, 255, 0.07), transparent 50%),
		radial-gradient(ellipse 40% 35% at 8% 85%, rgba(255, 255, 255, 0.05), transparent 45%);
	opacity: 0.95;
}

.rec-proc-bg::before,
.rec-proc-bg::after {
	content: "";
	position: absolute;
	width: 120px;
	height: 120px;
	border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
	background: color-mix(in srgb, var(--ms-white) 8%, transparent);
}

.rec-proc-bg::before {
	top: 8%;
	right: 14%;
	transform: rotate(-12deg);
}

.rec-proc-bg::after {
	bottom: 10%;
	left: 8%;
	width: 180px;
	height: 160px;
	transform: rotate(18deg);
	opacity: 0.7;
}

.rec-proc-wrap {
	position: relative;
	z-index: 2;
	width: min(1320px, 100% - 2.5rem);
	margin: 0 auto;
}

/* —— Nagłówek —— */
.rec-proc-head {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.75rem, 4vw, 3rem);
	align-items: start;
	margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.rec-proc-section .rec-proc-eyebrow.s-eyebrow {
	color: color-mix(in srgb, var(--ms-white) 82%, transparent);
	margin-bottom: 1rem;
}

.rec-proc-section .eyebrow-line {
	background: color-mix(in srgb, var(--ms-white) 55%, transparent);
	opacity: 1;
}

.rec-proc-h2 {
	font-family: var(--ms-font-heading);
	font-weight: 900;
	font-size: clamp(1.65rem, 3.2vw, 2.35rem);
	line-height: 1.18;
	letter-spacing: -0.02em;
	margin: 0;
}

.rec-proc-h2__line {
	display: block;
	color: var(--ms-white);
}

.rec-proc-h2__accent {
	display: block;
	color: #f4d06f;
	text-shadow: 0 1px 0 color-mix(in srgb, var(--ms-ink) 18%, transparent);
}

.rec-proc-intro {
	font-family: var(--ms-font-body);
	font-size: 0.95rem;
	line-height: 1.65;
	color: color-mix(in srgb, var(--ms-white) 92%, transparent);
	margin: 0 0 1.35rem;
	max-width: 36rem;
}

.rec-proc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 0.85rem;
	align-items: center;
}

.rec-proc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem 1.2rem;
	border-radius: var(--ms-radius-pill);
	font-family: var(--ms-font-body);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.rec-proc-btn svg {
	flex-shrink: 0;
}

.rec-proc-btn--primary {
	background: var(--ms-white);
	color: var(--ms-ink) !important;
	border: 1px solid transparent;
}

.rec-proc-btn--primary:hover {
	background: color-mix(in srgb, var(--ms-white) 92%, var(--ms-ivory));
	transform: translateY(-1px);
}

.rec-proc-btn--ghost {
	background: transparent;
	color: var(--ms-white) !important;
	border: 1px solid color-mix(in srgb, var(--ms-white) 65%, transparent);
}

.rec-proc-btn--ghost:hover {
	background: color-mix(in srgb, var(--ms-white) 12%, transparent);
	border-color: color-mix(in srgb, var(--ms-white) 85%, transparent);
}

.rec-proc-btn:focus-visible {
	outline: 2px solid var(--ms-focus);
	outline-offset: 3px;
}

/* —— Kroki —— */
.rec-proc-steps {
	/* Ta sama wartość co .rec-proc-icon — linia przerywana przez środek kółek */
	--rec-proc-icon-d: clamp(104px, 22vw, 128px);
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: clamp(0.5rem, 2vw, 1.25rem);
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0.5rem 0 0;
}

.rec-proc-steps::before {
	content: "";
	position: absolute;
	left: 12%;
	right: 12%;
	/* padding góra listy + min. wysokość pigułki (border-box) + odstęp + środek koła */
	top: calc(0.5rem + 1.85rem + 0.65rem + var(--rec-proc-icon-d) / 2);
	transform: translateY(-1px);
	border-top: 2px dashed color-mix(in srgb, var(--ms-white) 45%, transparent);
	z-index: 0;
	pointer-events: none;
}

.rec-proc-step {
	flex: 1;
	min-width: 0;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 0.35rem;
}

/* Rezerwa wysokości jak przy pigułce — bez pustego kolorowego tła */
.rec-proc-step__badge-slot {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 2.25rem;
	margin-bottom: 0.65rem;
}

.rec-proc-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 1.85rem;
	padding: 0.2rem 0.85rem;
	margin-bottom: 0;
	border-radius: var(--ms-radius-pill);
	font-family: var(--ms-font-heading);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ms-white);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.rec-proc-badge--amber {
	background: #e19b4c;
}

.rec-proc-badge--slate {
	background: #708a7c;
}

.rec-proc-badge--rose {
	background: #e88b80;
}

.rec-proc-step__track {
	position: relative;
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}

.rec-proc-icon {
	position: relative;
	z-index: 1;
	width: var(--rec-proc-icon-d);
	height: var(--rec-proc-icon-d);
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--ms-white) 55%, transparent);
	background: color-mix(in srgb, var(--ms-white) 12%, transparent);
	color: var(--ms-white);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ms-white) 25%, transparent);
	transform-origin: center center;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.rec-proc-icon:hover {
	transform: scale(1.08);
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.rec-proc-icon {
		transition: none;
	}

	.rec-proc-icon:hover {
		transform: none;
	}
}

.rec-proc-icon__svg {
	display: block;
	width: 40px;
	height: 40px;
}

.rec-proc-icon__num {
	font-family: var(--ms-font-heading);
	font-weight: 900;
	font-size: 1rem;
	letter-spacing: 0.02em;
	opacity: 0.95;
	line-height: 1;
}

.rec-proc-step__title {
	font-family: var(--ms-font-heading);
	font-weight: 900;
	font-size: clamp(1rem, 1.35vw, 1.12rem);
	line-height: 1.28;
	margin: 0 0 0.55rem;
	color: var(--ms-white);
}

.rec-proc-step__body {
	font-family: var(--ms-font-body);
	font-size: 0.88rem;
	line-height: 1.62;
	color: color-mix(in srgb, var(--ms-white) 90%, transparent);
	margin: 0 0 0.85rem;
	max-width: 22rem;
}

.rec-proc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rec-proc-tag {
	display: inline-block;
	padding: 0.32rem 0.72rem;
	border-radius: var(--ms-radius-pill);
	border: 1px solid color-mix(in srgb, var(--ms-white) 42%, transparent);
	background: color-mix(in srgb, var(--ms-white) 8%, transparent);
	font-family: var(--ms-font-body);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
	color: color-mix(in srgb, var(--ms-white) 94%, transparent);
}

/* —— Responsive —— */
@media (max-width: 960px) {
	.rec-proc-head {
		grid-template-columns: 1fr;
	}

	.rec-proc-intro {
		max-width: none;
	}
}

@media (max-width: 720px) {
	.rec-proc-steps {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.rec-proc-steps::before {
		display: none;
	}

	.rec-proc-step {
		max-width: 26rem;
	}

	.rec-proc-step__body {
		max-width: none;
	}
}
