:root {
	--vacancy-primary-color: #21201f;
	--vacancy-accent-color: #fed42b;
	--section-spacing: 60px 0;
	--fz-title: 30px;
}

@media (max-width: 575.98px) {
	:root {
		--section-spacing: 40px 0;
		--fz-title: 24px;
	}
}

.btn-vacancy {
	background-color: var(--vacancy-accent-color);
	color: var(--vacancy-primary-color);
}

.btn-vacancy:hover {
	background-color: #fedc55;
}

/* ##### BENEFITS-YAM #####
.benefits-yam {
	padding: 100px 0;
	font-family: 'Yandex Sans Text', sans-serif;
	color: var(--vacancy-primary-color);
}

.benefits-yam__title {
	margin-bottom: 40px;
	font-size: 34px;
	font-weight: 500;
	letter-spacing: -1px;
	text-align: center;
}

.benefits-yam__par {
	margin-bottom: 40px;
	font-size: 20px;
	line-height: 1.8;
	letter-spacing: 0.48px;
}

.benefits-yam__list {
	display: grid;
	grid-template-areas:
		"item-1 item-2 item-3"
		"item-4 item-5 item-5"
		"item-4 item-6 item-6";
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: 230px 190px 190px;
	gap: 10px;
}

.benefits-yam__item {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px 48px;
	border-radius: 20px;
	background: #f1f0ec;
}

.benefits-yam__item--1 {
	grid-area: item-1;
}

.benefits-yam__item--2 {
	grid-area: item-2;
}

.benefits-yam__item--3 {
	grid-area: item-3;
}

.benefits-yam__item--4 {
	grid-area: item-4;
	justify-content: center;
}

.benefits-yam__item--5 {
	grid-area: item-5;
	justify-content: center;
}

.benefits-yam__item--6 {
	grid-area: item-6;
	justify-content: center;
}

.benefits-yam__item-icon {
	margin-bottom: 20px;
	display: block;
	width: 64px;
	height: 64px;
	;
}

.benefits-yam__item-desc {
	font-size: 16px;
	line-height: 1.56;
}

@media (max-width: 991px) {
	.benefits-yam {
		padding: var(--section-spacing);
	}

	.benefits-yam__title {
		font-size: var(--fz-title);
	}

	.benefits-yam__par {
		font-size: 18px;
		line-height: 1.8;
	}

	.benefits-yam__item {
		padding: 24px;
	}

	.benefits-yam__item-desc {
		font-size: 14px;
	}
}

@media (max-width: 767.98px) {
	.benefits-yam__list {
		grid-template-areas:
			"item-1 item-2 item-2"
			"item-1 item-3 item-3"
			"item-5 item-5 item-4"
			"item-6 item-6 item-4";
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: none;
	}

	.benefits-yam__item {
		min-height: 190px;
	}
}

@media (max-width: 575px) {
	.benefits-yam__par {
		font-size: 16px;
	}

	.benefits-yam__list {
		grid-template-areas: none;
		grid-template-columns: 100%;
	}

	.benefits-yam__item {
		grid-area: auto;
		padding: 20px;
		min-height: 170px;
	}

	.benefits-yam__item-icon {
		margin-bottom: 15px;
	}

	.benefits-yam__item-desc {
		max-width: 470px;
	}
} */
/* ##### OPP-YAM ##### */
.opp-yam {
	padding: 100px 0;
	font-family: 'Yandex Sans Text', sans-serif;
	color: var(--vacancy-primary-color);
	background-color: #f1f0ec;
}

.opp-yam__title {
	margin-bottom: 40px;
	font-size: 34px;
	font-weight: 500;
	letter-spacing: -1px;
	text-align: center;
}

.opp-yam__list {
	margin-bottom: 50px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.opp-yam__item {
	position: relative;
	isolation: isolate;
	padding: 24px;
	min-height: 290px;
	border-radius: 20px;
	background-color: var(--vacancy-accent-color);
	overflow: hidden;
}

.opp-yam__item::after {
	--image-scale: 1;
	content: '';
	position: absolute;
	z-index: -1;
}

.opp-yam__item--1::after {
	right: 0;
	bottom: 0;
	width: calc(var(--image-scale) * 245px);
	height: calc(var(--image-scale) * 154px);
	background: url(../../img/vakansii/yandex-market/opp-image-1.png) center/contain no-repeat;
}

.opp-yam__item--2 {
	padding-right: 210px;
}

.opp-yam__item--2::after {
	top: 0;
	right: 0;
	width: calc(var(--image-scale) * 198px);
	height: calc(var(--image-scale) * 290px);
	background: url(../../img/vakansii/yandex-market/opp-image-2.png) center/contain no-repeat;
}

.opp-yam__item--3::after {
	right: 0;
	bottom: 0;
	width: calc(var(--image-scale) * 184px);
	height: calc(var(--image-scale) * 157px);
	background: url(../../img/vakansii/yandex-market/opp-image-3.png) center/contain no-repeat;
}

.opp-yam__item-title {
	margin-bottom: 20px;
	font-size: 22px;
	line-height: 1.14;
	font-weight: 500;
}

.opp-yam__item-desc {
	font-size: 16px;
	line-height: 1.56;
}

.opp-yam__item-desc {
	font-size: 16px;
	line-height: 1.56;
}

.opp-yam__item-desc--1 {
	padding-right: 120px;
}

.btn-vacancy--opp {
	margin: 0 auto;
}

@media (max-width: 1246px) {
	.opp-yam__item::after {
		opacity: 0.3;
	}

	.opp-yam__item--2 {
		padding-right: 24px;
	}

	.opp-yam__item-desc--1 {
		padding-right: 0;
	}
}

@media (max-width: 991px) {
	.opp-yam {
		padding: var(--section-spacing);
	}

	.opp-yam__title {
		font-size: var(--fz-title);
	}

	.opp-yam__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.opp-yam__item {
		min-height: 270px;
	}

	.opp-yam__item::after {
		--image-scale: 0.8;
		opacity: 1;
	}

	.opp-yam__item--2 {
		padding-right: 180px;
	}

	.opp-yam__item--2::after {
		--image-scale: 0.94;
	}

	.opp-yam__item-title {
		font-size: 20px;
	}

	.opp-yam__item-desc {
		font-size: 14px;
	}
}

@media (max-width: 767.98px) {
	.opp-yam__item::after {
		opacity: 0.3;
	}

	.opp-yam__item--2 {
		padding-right: 24px;
	}

	.opp-yam__item-desc--1 {
		padding-right: 0;
	}
}

@media (max-width: 575px) {
	.opp-yam__list {
		margin-bottom: 40px;
	}

	.opp-yam__item-title {
		margin-bottom: 15px;
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.opp-yam__list {
		grid-template-columns: 100%;
	}

	.opp-yam__item {
		padding-bottom: 40px;
		min-height: 200px;
	}

	.opp-yam__item--2::after {
		--image-scale: 0.75;
	}
}

/* ##### WORK-YAM ##### */
.work-yam {
	padding: 100px 0;
	font-family: 'Yandex Sans Text', sans-serif;
	color: var(--vacancy-primary-color);
}

.work-yam__title {
	margin-bottom: 40px;
	font-size: 36px;
	font-weight: 500;
	letter-spacing: -1px;
	text-align: center;
}

.work-yam__list {
	display: grid;
	gap: 40px;
}

.work-yam__item {
	min-height: 305px;
	border: 2px solid #f1f0ec;
	border-radius: 35px;
	overflow: hidden;
}

.work-yam__item-inner {
	display: flex;
	height: 100%;
}

.work-yam__item-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 20px 48px 48px;
}

.work-yam__item-title {
	margin-bottom: 20px;
	font-family: 'Montserrat';
	font-weight: 700;
	font-size: 22px;
}

.work-yam__item-desc {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.56;
}

.work-yam__item-image-wrap {
	flex: 0 0 305px;
	border-radius: 35px;
	overflow: hidden;
}

.work-yam__item-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 991px) {
	.work-yam {
		padding: var(--section-spacing);
	}

	.work-yam__title {
		font-size: var(--fz-title);
	}

	.work-yam__item {
		min-height: 250px;
		border-radius: 20px;
	}

	.work-yam__item-content {
		padding: 30px 20px 30px 30px;
	}

	.work-yam__item-title {
		font-size: 20px;
	}

	.work-yam__item-desc {
		font-size: 14px;
	}

	.work-yam__item-image-wrap {
		flex: 0 0 250px;
		border-radius: 20px;
	}
}

@media (max-width: 767.98px) {
	.work-yam__item-image-wrap {
		flex: 0 0 150px;
	}

	.work-yam__item-image--1 {
		object-position: right center;
	}

	.work-yam__item-image--2 {
		object-position: -60px center;
	}

	.work-yam__item-image--3 {
		object-position: -40px center;
	}
}

@media (max-width: 575px) {
	.work-yam__item-title {
		font-size: 18px;
	}

	.work-yam__item-desc {
		font-weight: 400;
	}
}

@media (max-width: 480px) {
	.work-yam__item {
		position: relative;
		border-radius: 10px;
	}

	.work-yam__item-image-wrap {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 150px;
		height: 100%;
		border-radius: 10px;
		opacity: 0.3;
	}
}

/* ##### STEPS-YAM ##### */
.steps-yam {
	padding: 100px 0;
	font-family: 'Yandex Sans Text';
	color: var(--vacancy-primary-color);
}

.steps-yam__title {
	margin-bottom: 40px;
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -1px;
	text-align: center;
}

.steps-yam__list {
	display: grid;
	/* grid-template-columns: repeat(auto-fit, minmax(290px, max-content)); */
	grid-template-columns: repeat(4, 1fr);
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 45px;
	counter-reset: section;
}

.steps-yam__item {
	position: relative;
	display: flex;
	flex-direction: column;
	max-width: 290px;
}

.steps-yam__item::before {
	counter-increment: section;
	content: counter(section);
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
	width: 48px;
	height: 48px;
	font-weight: 600;
	font-size: 32px;
	color: #000;
	border-radius: 50%;
	background: linear-gradient(146.56deg, #FFF9CC -11.92%, #FED42B 128.62%);
}

.steps-yam__item-inner {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 24px 24px 0;
	min-height: 250px;
	background-color: var(--vacancy-accent-color);
	border-radius: 20px;
}

.steps-yam__item-title {
	flex: 1 1 auto;
	font-size: 16px;
	line-height: 1.56;
}

.steps-yam__item-image--1 {
	width: 104px;
	height: 174px;
}

.steps-yam__item-image--2 {
	width: 171px;
	height: 149px;
}

.steps-yam__item-image--3 {
	width: 159px;
	height: 174px;
}

.steps-yam__item-image--4 {
	width: 142px;
	height: 174px;
}

.btn-vacancy--steps {
	margin: 0 auto;
}

@media (max-width: 1199.98px) {
	/* .steps-yam__list {
		grid-template-columns: repeat(3, minmax(200px, max-content));
		justify-content: center;
	}

	.steps-yam__item::before {
		margin-bottom: 15px;
	}

	.steps-yam__item-inner {
		min-height: 235px;
	} */
}

@media (max-width: 991px) {
	.steps-yam {
		padding: var(--section-spacing);
	}

	.steps-yam__title {
		font-size: var(--fz-title);
	}

	/* .steps-yam__list {
		grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
		gap: 30px 25px;
	}

	.steps-yam__item::before {
		width: 45px;
		height: 45px;
		margin-bottom: 10px;
		font-size: 28px;
	} */
	.steps-yam__item::before {
		content: none;
	}

	.steps-yam__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
		margin-left: auto;
		margin-right: auto;
		width: min-content;
	}

	.steps-yam__item {
		max-width: none;
		min-width: 290px;
	}

	.steps-yam__item-inner {
		padding: 20px 20px 0 20px;
		min-height: 220px;
	}

	.steps-yam__item-inner::before {
		counter-increment: section;
		content: counter(section);
		display: flex;
		justify-content: center;
		align-items: center;
		margin-right: auto;
		margin-bottom: 5px;
		width: 35px;
		height: 35px;
		font-weight: 600;
		font-size: 25px;
		color: #000;
		border-radius: 50%;
		background: linear-gradient(146.56deg, #fff9cc -11.92%, #fce000 128.62%);
	}
}

@media (max-width: 767.98px) {
	.steps-yam__list {
		gap: 20px;
		width: auto;
	}

	.steps-yam__item {
		min-width: auto;
	}
}

@media (max-width: 480px) {
	.steps-yam__list {
		grid-template-columns: none;
		gap: 10px;
		margin-bottom: 30px;
		width: min-content;
	}

	.steps-yam__item {
		/* max-width: none; */
		width: 290px;
	}

	.steps-yam__item-inner {
		min-height: auto;
		padding: 15px 15px 0 15px;
		font-size: 14px;
	}

	.steps-yam__item-inner::before {
		align-self: flex-start;
		width: 30px;
		height: 30px;
		font-size: 20px;
	}
}