/*
Секция этапов работы.
Файл: sections-modules/work-stages/work-stages.css
*/

.section-work-stages,
.section-work-stages * {
	box-sizing: border-box;
}

.section-work-stages {
	position: relative;
	overflow: hidden;
	padding: clamp(62px, 6vw, 92px) 20px;
	color: #071f63;
	background:
		radial-gradient(circle at 12% 10%, rgba(11, 150, 198, 0.10) 0, transparent 34%),
		radial-gradient(circle at 90% 16%, rgba(11, 120, 208, 0.08) 0, transparent 30%),
		linear-gradient(180deg, #eef8ff 0%, #f8fcff 54%, #eaf7fd 100%);
	content-visibility: auto;
	contain-intrinsic-size: 780px;
}

.section-work-stages::before {
	content: "";
	position: absolute;
	top: 20px;
	right: -90px;
	width: min(680px, 56vw);
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 68%);
	pointer-events: none;
}

.section-work-stages__inner {
	position: relative;
	z-index: 1;
	width: min(100%, 1360px);
	margin: 0 auto;
}

.section-work-stages__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 34px;
	margin-bottom: 46px;
}

.section-work-stages__head-content {
	max-width: 790px;
	min-width: 0;
}

.section-work-stages__title {
	display: inline-block;
	margin: 0;
	color: #151b2a;
	font-size: clamp(40px, 4.6vw, 66px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	transform: scaleY(1.045);
	transform-origin: left center;
}

.section-work-stages__lead {
	max-width: 720px;
	margin-top: 22px;
	color: rgba(21, 27, 42, 0.78);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
}

.section-work-stages__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 12px 24px;
	border: 1px solid rgba(11, 150, 198, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 14px 34px rgba(7, 31, 99, 0.08);
	color: #0b78d0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.section-work-stages__badge:hover,
.section-work-stages__badge:focus,
.section-work-stages__badge:focus-visible {
	color: #0b78d0;
	background: rgba(234, 247, 253, 0.96);
	border-color: rgba(11, 150, 198, 0.42);
	text-decoration: none !important;
	transform: translateY(-2px);
}

.section-work-stages__badge:focus-visible {
	outline: 3px solid rgba(11, 150, 198, 0.22);
	outline-offset: 4px;
}

.section-work-stages__badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.section-work-stages__badge-icon img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.section-work-stages__timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: center;
	margin-bottom: 16px;
}

.section-work-stages__timeline::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	background: #0b96c6;
	transform: translateY(-50%);
}

.section-work-stages__timeline span {
	position: relative;
	z-index: 1;
	justify-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 2px solid #0b96c6;
	border-radius: 50%;
	background: #ffffff;
	color: #071f63;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

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

.section-work-stages__card {
	position: relative;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: start;
	gap: 0 22px;
	min-height: 232px;
	padding: 32px 30px 30px;
	border: 1px solid rgba(7, 31, 99, 0.08);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 14px 32px rgba(7, 31, 99, 0.08);
}

.section-work-stages__card-number {
	display: none;
}

.section-work-stages__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin-bottom: 0;
	border-radius: 50%;
	background: #e8f2ff;
}

.section-work-stages__card-icon img {
	display: block;
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.section-work-stages__card-title {
	align-self: center;
	max-width: none;
	color: #151b2a;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.section-work-stages__card-text {
	grid-column: 1 / -1;
	margin-top: 24px;
	color: #071f63;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.65;
}

.section-work-stages__bottom {
	display: grid;
	grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.16fr);
	gap: 14px;
	margin-top: 28px;
}

.section-work-stages__note,
.section-work-stages__callback {
	display: flex;
	align-items: center;
	min-height: 122px;
	border: 1px solid rgba(11, 150, 198, 0.28);
	border-radius: 14px;
	box-shadow: 0 14px 34px rgba(7, 31, 99, 0.055);
}

.section-work-stages__note {
	gap: 24px;
	padding: 24px 30px;
	background: linear-gradient(135deg, #ffffff 0%, #f8fcff 48%, #eef9ff 100%);
}

.section-work-stages__note-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	flex: 0 0 62px;
	border-radius: 50%;
	background: rgba(232, 247, 255, 0.95);
}

.section-work-stages__note-icon img {
	display: block;
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.section-work-stages__note-title,
.section-work-stages__callback-title {
	color: #0b96c6;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.section-work-stages__note-text {
	margin-top: 8px;
	color: #071f63;
	font-size: 14px;
	line-height: 1.5;
}

.section-work-stages__callback {
	gap: 22px;
	padding: 22px 26px;
	background: linear-gradient(135deg, #ffffff 0%, #f4fbff 44%, #e7f7ff 100%);
}

.section-work-stages__callback-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	border-radius: 50%;
	background: #e8f2ff;
}

.section-work-stages__callback-icon img {
	display: block;
	width: 25px;
	height: 25px;
	object-fit: contain;
	filter: brightness(0) saturate(100%) invert(46%) sepia(87%) saturate(945%) hue-rotate(158deg) brightness(92%) contrast(96%);
}

.section-work-stages__callback-content {
	min-width: 0;
	flex: 1 1 auto;
}

.section-work-stages__callback-text {
	margin-top: 2px;
	color: rgba(7, 31, 99, 0.62);
	font-size: 13px;
	line-height: 1.4;
}

.section-work-stages__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 180px;
	gap: 12px;
	margin-top: 12px;
}

.section-work-stages__field {
	min-width: 0;
	margin: 0;
}

.section-work-stages__input {
	width: 100%;
	height: 46px;
	padding: 0 16px;
	border: 1px solid rgba(7, 31, 99, 0.18);
	border-radius: 9px;
	background: #ffffff;
	color: #071f63;
	font-size: 16px;
	line-height: 1.35;
	outline: none;
}

.section-work-stages__input::placeholder {
	color: rgba(21, 27, 42, 0.48);
}

.section-work-stages__input:focus {
	border-color: rgba(11, 150, 198, 0.56);
	box-shadow: 0 0 0 3px rgba(11, 150, 198, 0.12);
}

.section-work-stages__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 9px;
	background: linear-gradient(135deg, #0b66e4 0%, #0758d8 100%);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}

.section-work-stages__submit:hover,
.section-work-stages__submit:focus {
	background: linear-gradient(135deg, #0b78d0 0%, #064fc3 100%);
	transform: translateY(-1px);
}

.section-work-stages__consent {
	grid-column: 1 / -1;
	margin-top: 0;
	color: rgba(7, 31, 99, 0.66);
	font-size: 11.5px;
	line-height: 1.35;
}

@media (max-width: 1180px) {
	.section-work-stages {
		contain-intrinsic-size: 980px;
	}

	.section-work-stages__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.section-work-stages__timeline {
		display: none;
	}

	.section-work-stages__card-number {
		position: absolute;
		top: 14px;
		left: 14px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
		border: 2px solid #0b96c6;
		border-radius: 50%;
		background: #ffffff;
		color: #071f63;
		font-size: 13px;
		font-weight: 700;
		line-height: 1;
	}

	.section-work-stages__card {
		min-height: 0;
	}

	.section-work-stages__card-title {
		max-width: none;
	}

	.section-work-stages__bottom {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.section-work-stages {
		padding: 54px 16px;
		contain-intrinsic-size: 1280px;
	}

	.section-work-stages__head {
		flex-direction: column;
		margin-bottom: 28px;
	}

	.section-work-stages__title {
		font-size: clamp(34px, 11vw, 48px);
		line-height: 1.05;
	}

	.section-work-stages__lead {
		margin-top: 16px;
		font-size: 15.5px;
		line-height: 1.55;
	}

	.section-work-stages__badge {
		width: 100%;
		min-height: 52px;
		white-space: normal;
		text-align: center;
	}

	.section-work-stages__grid {
		grid-template-columns: 1fr;
	}

	.section-work-stages__card {
		display: grid;
		grid-template-columns: 62px minmax(0, 1fr);
		gap: 0 18px;
		align-items: start;
		padding: 28px 20px 24px;
	}

	.section-work-stages__card-icon {
		grid-row: span 2;
		margin-bottom: 0;
	}

	.section-work-stages__card-title {
		align-self: end;
	}

	.section-work-stages__card-text {
		grid-column: 2;
		margin-top: 10px;
	}

	.section-work-stages__note,
	.section-work-stages__callback {
		align-items: flex-start;
	}

	.section-work-stages__note {
		padding: 22px 20px;
	}

	.section-work-stages__callback {
		padding: 22px 20px;
	}

	.section-work-stages__form {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.section-work-stages {
		contain-intrinsic-size: 1460px;
	}

	.section-work-stages__card {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 0 14px;
	}

	.section-work-stages__card-number {
		top: 12px;
		left: 12px;
		width: 24px;
		height: 24px;
		font-size: 12px;
		border-color: #0b96c6;
	}

	.section-work-stages__card-icon {
		width: 54px;
		height: 54px;
	}

	.section-work-stages__card-icon img {
		width: 34px;
		height: 34px;
	}

	.section-work-stages__note,
	.section-work-stages__callback {
		gap: 16px;
	}

	.section-work-stages__note-icon {
		width: 54px;
		height: 54px;
		flex-basis: 54px;
	}

	.section-work-stages__note-icon img {
		width: 36px;
		height: 36px;
	}
}

/* =========================
   Карточка без иконки
   ========================= */

.section-work-stages__card--no-icon {
	grid-template-columns: minmax(0, 1fr);
}

.section-work-stages__card--no-icon .section-work-stages__card-title,
.section-work-stages__card--no-icon .section-work-stages__card-text {
	grid-column: 1 / -1;
}

.section-work-stages__card--no-icon .section-work-stages__card-title {
	align-self: start;
}

@media (max-width: 768px) {
	.section-work-stages__card--no-icon {
		grid-template-columns: minmax(0, 1fr);
	}

	.section-work-stages__card--no-icon .section-work-stages__card-text {
		grid-column: 1 / -1;
		margin-top: 10px;
	}
}

@media (max-width: 480px) {
	.section-work-stages__card--no-icon {
		grid-template-columns: minmax(0, 1fr);
	}
}
