/* ==========================================================================
   Секция «Когда требуется илососная машина?» (parts/when-needed.php)
   ========================================================================== */

.when {
	padding: 50px 0;
	font-family: Ubuntu, sans-serif;
}

.when__card {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 55px;
	padding: 55px 60px;
	background: #eaf3fc;
	border-radius: 24px;
}

/* --- Левая колонка ------------------------------------------------------- */
.when__left {
	-webkit-box-flex: 0;
	-ms-flex: 0 1 38%;
	flex: 0 1 38%;
	min-width: 0;
}

.when__title {
	margin-bottom: 26px;
	font-size: 28px;
	line-height: 34px;
	font-weight: bold;
	text-transform: uppercase;
	color: #3a3a3a;
}

.when__subtitle {
	margin-bottom: 12px;
	font-size: 17px;
	line-height: 24px;
	font-weight: 500;
	color: #2196e0;
}

.when__text {
	margin-bottom: 30px;
	font-size: 15px;
	line-height: 23px;
	color: #3a3a3a;
}

.when__text p {
	margin: 0 0 10px;
}

.when__text p:last-child {
	margin-bottom: 0;
}

.when__btn {
	display: inline-block;
	padding: 16px 26px;
	background: #4189d6;
	border-radius: 8px;
	font-size: 14px;
	line-height: 18px;
	font-weight: bold;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	-webkit-transition: all 0.25s ease-in-out;
	transition: all 0.25s ease-in-out;
}

.when__btn:hover,
.when__btn:focus {
	background: #2f7ac4;
	color: #fff;
	text-decoration: none;
	-webkit-transform: translateY(-2px);
	transform: translateY(-2px);
	-webkit-box-shadow: 0 8px 20px rgba(33, 150, 224, 0.32);
	box-shadow: 0 8px 20px rgba(33, 150, 224, 0.32);
}

.when__btn:active {
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

/* --- Правая колонка ------------------------------------------------------ */
.when__right {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 0%;
	flex: 1 1 0%;
	min-width: 0;
}

.when__content {
	font-size: 16px;
	line-height: 26px;
	color: #3a3a3a;
}

.when__content p {
	margin: 0 0 22px;
}

.when__content p:last-child {
	margin-bottom: 0;
}

.when__list-title {
	margin: 26px 0 18px;
	font-size: 15px;
	line-height: 20px;
	font-weight: bold;
	text-transform: uppercase;
	color: #3a3a3a;
}

/* Список в две колонки, как в макете */
.when .when__list {
	-webkit-column-count: 2;
	-moz-column-count: 2;
	column-count: 2;
	-webkit-column-gap: 30px;
	-moz-column-gap: 30px;
	column-gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.when .when__list li {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
	padding: 0 0 14px;
	font-size: 15px;
	line-height: 22px;
	color: #3a3a3a;
	list-style: none;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	break-inside: avoid;
}

.when__check {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
	width: 16px;
	margin: 4px 10px 0 0;
	color: #2196e0;
}

.when__check svg {
	display: block;
	width: 16px;
	height: 12px;
}

/* --- Адаптив ------------------------------------------------------------- */
@media (max-width: 1199px) {
	.when__card {
		gap: 40px;
		padding: 45px 40px;
	}

	.when__left {
		-ms-flex: 0 1 42%;
		flex: 0 1 42%;
	}
}

@media (max-width: 991px) {
	.when__card {
		gap: 32px;
		padding: 40px 35px;
	}

	.when__left,
	.when__right {
		-ms-flex: 1 1 100%;
		flex: 1 1 100%;
	}
}

@media (max-width: 575px) {
	.when {
		padding: 30px 0;
	}

	.when__card {
		gap: 26px;
		padding: 28px 20px;
		border-radius: 16px;
	}

	.when__title {
		margin-bottom: 18px;
		font-size: 22px;
		line-height: 28px;
	}

	.when__subtitle {
		font-size: 16px;
		line-height: 22px;
	}

	.when__text {
		margin-bottom: 24px;
	}

	.when__content {
		font-size: 15px;
		line-height: 24px;
	}

	.when__content p {
		margin-bottom: 16px;
	}

	.when .when__list {
		-webkit-column-count: 1;
		-moz-column-count: 1;
		column-count: 1;
	}

	.when__btn {
		padding: 14px 22px;
	}
}
