/* =============================================
   03_WIDGETS / w-howitworks
   Секция «Как это работает» (пронумерованные шаги).
   ============================================= */

.howitworks__how {
	background-color: var(--whiteColor);
	border-radius: 20px;
	display: inline-block;
	padding: 10px 20px;
	font-weight: 300;
	color: var(--greenColor4);
}
.howitworks__title {
	color: var(--whiteColor);
}
.howitworks__list {
	border-radius: 20px;
	background-color: var(--whiteColor);
	list-style-type: none;
	counter-reset: item;
}
.howitworks__item {
	position: relative;
}
.howitworks__item:not(:first-child) b {
	border-top: 1px solid #dde3db;
}
.howitworks__item::before {
	counter-increment: item;
	content: counter(item);
	position: absolute;
	left: 0;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-color: var(--greenColor4);
	color: var(--whiteColor);
	font-weight: 700;
	text-transform: uppercase;
}
.howitworks__item b {
	font-weight: 500;
	display: block;
}
.howitworks__item b:not(:last-child) {
	margin-bottom: 10px;
}
.howitworks__item span {
	color: var(--greenColor5);
	display: block;
}
.howitworks__text {
	color: var(--whiteColor);
	font-weight: 300;
}

/* ── Responsive ── */

@media (max-width: 74.99875em) {
	.howitworks__how {
		font-size: 12px;
		line-height: 125%;
	}
	.howitworks__text:not(:last-child) {
		margin-bottom: 20px;
	}
	.howitworks__link {
		width: 100%;
	}
}
@media (max-width: 63.99875em) {
	.howitworks {
		background: url("../../assets/img/howitworks-bg-small.jpg") 0 0/cover no-repeat;
		padding: 40px 0;
	}
	.howitworks__top:not(:last-child) {
		margin-bottom: 30px;
	}
	.howitworks__how:not(:last-child) {
		margin-bottom: 20px;
	}
	.howitworks__list {
		padding: 20px;
	}
	.howitworks__list:not(:last-child) {
		margin-bottom: 30px;
	}
	.howitworks__item {
		padding-left: 42px;
	}
	.howitworks__item:not(:last-child) {
		margin-bottom: 9px;
	}
	.howitworks__item:first-child::before {
		top: 0;
	}
	.howitworks__item:not(:first-child) b {
		padding-top: 10px;
	}
	.howitworks__item::before {
		font-size: 18px;
		line-height: 127.777778%;
		width: 32px;
		height: 32px;
		top: 10px;
	}
	.howitworks__item b {
		font-size: 18px;
		line-height: 127.777778%;
	}
	.howitworks__item span br {
		display: none;
	}
	.howitworks__text {
		font-size: 16px;
		line-height: 125%;
	}
}
@media (min-width: 63.99875em) {
	.howitworks {
		padding: 50px 0;
		background: url("../../assets/img/howitworks-bg-big.jpg") 0 0/cover no-repeat;
	}
	.howitworks__container {
		display: grid;
		column-gap: 104px;
		row-gap: 30px;
		grid-template-columns: 297px 1fr;
		grid-template-rows: 1fr auto;
	}
	.howitworks__how:not(:last-child) {
		margin-bottom: 10px;
	}
	.howitworks__list {
		padding: 24px;
		justify-self: end;
		width: 100%;
		grid-column: 2/3;
		grid-row: 1/3;
	}
	.howitworks__item {
		padding-left: 68px;
	}
	.howitworks__item:not(:last-child) {
		margin-bottom: 19px;
	}
	.howitworks__item:first-child::before {
		top: 0;
	}
	.howitworks__item:not(:first-child) b {
		padding-top: 20px;
	}
	.howitworks__item::before {
		width: 40px;
		height: 40px;
		font-size: 24px;
		line-height: 125%;
		top: 20px;
	}
	.howitworks__item b {
		font-size: 24px;
		line-height: 125%;
	}
	.howitworks__item span {
		max-width: 410px;
	}
	.howitworks__text {
		font-size: 14px;
		line-height: 128.571429%;
	}
}
@media (min-width: 74.99875em) {
	.howitworks {
		padding: 60px 0;
	}
	.howitworks__container {
		grid-template-columns: 364px 1fr;
	}
	.howitworks__how {
		font-size: 14px;
		line-height: 128.571429%;
	}
	.howitworks__how:not(:last-child) {
		margin-bottom: 20px;
	}
	.howitworks__list {
		padding: 40px;
	}
	.howitworks__text {
		font-size: 18px;
		line-height: 127.777778%;
	}
	.howitworks__text:not(:last-child) {
		margin-bottom: 32px;
	}
	.howitworks__link {
		width: auto;
	}
}
@media (min-width: 89.99875em) {
	.howitworks {
		padding: 60px 0 40px 0;
	}
	.howitworks__container {
		grid-template-columns: 519px 1fr;
	}
	.howitworks__list {
		max-width: 649px;
	}
	.howitworks__bottom {
		padding-bottom: 20px;
	}
}
