.stages {
	padding-top: 80px;
	margin-bottom: 80px;
}

.stages__header-text {
	margin-bottom: 72px;
	padding: 0 48px;
	font-size: 60px;
	font-weight: 400;
	line-height: 80px;
	color: var(--text-secondary);
}

.stages__header-text > span {
	color: var(--text-main);
	transition: color .4s;
}

.stages__header-text > .breakpoint ~ span {
	color: var(--text-tetriary);
}

.stages__container {
	--image-height: 850px;

	position: relative;
	height: calc(100vh - 88px);
	min-height: 600px;
	max-height: var(--image-height);
	overflow: hidden;
	border-radius: var(--border-radius-l);
	background-color: #131313;
}

.stages__slider-controls {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.stages__slider-controls > * {
	z-index: 20;
}

.stages__slider-controls .swiper-button-disabled,
.stages__slider-controls .swiper-button-disabled:hover {
	color: var(--text-white);
	background: var(--color-dark);
}

.stages__stage {
	display: flex;
	position: relative;
	justify-content: center;
	background: #131313;
}

.stages__stage-background {
	position: relative;
	align-self: center;
	height: 100%;
	max-height: var(--image-height);
}

.stages__stage-background img {
	height: 100%;
	object-fit: cover;
}

.stages__container .stages__slider-pagination {
	position: absolute;
	width: auto;
	left: 24px;
	right: 24px;
	bottom: 24px;
	display: flex;
	gap: 8px;
	z-index: 10;
	cursor: pointer;
}

.stages__slider-pagination-elem {
	flex-grow: 1;
	height: 8px;
	border-radius: 4px;
	background-color: var(--brand-yellow);
	transition: background-color .4s;
}

.stages__slider-pagination-elem.active~.stages__slider-pagination-elem {
	background-color: var(--color-dark);
}

.stages__slider-pagination-elem:hover {
	background-color: var(--brand-yellow);
}

.stages__slider-counter {
	position: absolute;
	top: 40px;
	left: 40px;
	font-size: 56px;
	font-weight: 700;
	line-height: 64px;
	color: #F6F6FA4D;
	z-index: 10;
}

.stages__slider-counter .current {
	width: 72px;
	display: inline-block;
	text-align: right;
	color: var(--brand-yellow);
}

.stages__note-btn,
.stages__note-block {
	position: absolute;
}

.stages__note-block {
	max-width: 512px;
	padding: 20px 24px;
	margin-right: 16px;
	border-radius: var(--border-radius-m);
	background-color: #292a2e80;
	backdrop-filter: blur(6px);
	opacity: 1;
	transform: scale(1);
	transition: transform .3s ease-in-out, opacity .3s ease-out;
	visibility: visible;
	z-index: 10;
	pointer-events: none;
}

.stages__stage--multi-note .stages__note-block:not(.stages__note-block--description) {
	max-width: 400px;
}

.stages__note-block:not(.active) {
	transform: scale(1.1);
	transition: transform .3s ease-in-out, opacity .3s ease-out, visibility 0s .3s;
	opacity: 0;
	visibility: hidden;
}

.stages__note-block--description {
	min-width: 480px;
}

.stages__note-block.stages__note-block--description {
	bottom: 70px;
	left: 24px;
	visibility: visible;
	opacity: 1;
}

.stages__note-btn {
	z-index: 10;
}

.stages__note-title {
	margin-bottom: 12px;
	color: var(--ui-text-white);
	font-size: 30px;
	font-weight: 700;
	line-height: 40px;
}

.stages__note-text {
	margin-bottom: 0;
	color: var(--ui-text-tetriary);
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
}

.stages__stage--multi-note .stages__note-block:not(.active) {
	transform: none;
}

.stages__stage:last-child .stages__stage-background::before {
	content: '';
    position: absolute;
    left: -1px;
    right: -1px;
    top: -1px;
    bottom: -1px;
    box-shadow: inset 0 0 60px 80px #131313;
    z-index: 10;
}


@media (max-width: 1199px) {
	.stages__note-block--description {
		min-width: 320px;
		max-width: 420px;
	}

	.stages__slider-counter {
		top: 32px;
		left: 32px;
	}
}

@media (max-width: 991px) {

	.stages {
		margin-bottom: 60px;
	}

	.stages__slider-controls {
		height: 70%;
	}

	.stages__stage {
		flex-direction: column;
		height: auto;
	}

	.stages__stage-background img {
		width: 100%;
	}

	.stages__header-text {
		padding: 0;
		font-size: 40px;
		line-height: 54px;
	}

	.stages__container {
		display: flex;
		flex-direction: column;
		height: auto;
	}

	.stages__container .stages__slider-pagination {
		position: static;
		order: 1;
		margin: auto 24px 8px;
	}

	.stages__slider-pagination-elem {
		border-radius: 4px;
	}

	.stages__note-block.stages__note-block--description:not(.active) {
		visibility: visible;
		opacity: 1;
	}

	.stages__note-block.active ~ .stages__note-block--description {
		visibility: hidden;
		opacity: 0;
	}

	.stages__stage--multi-note .stages__note-block {
		top: inherit !important;
		bottom: inherit !important;
		left: 0 !important;
		right: 0 !important;
	}

	.stages__note-title,
	.stages__note-text {
		text-align: center;
	}

	.stages__note-btn {
		visibility: hidden;
	}

	.stages__notes-container {
		pointer-events: none;
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		flex-grow: 1;
		display: flex;
		align-items: center;
		z-index: 10;
	}

	.stages__notes-container,
	.stages__note-block--description {
		min-width: auto;
	}

	.stages__stage--multi-note .stages__notes-container {
		position: relative;
		margin-left: 0;
		margin-bottom: 0;
	}

	.stages__stage--multi-note .stages__note-block,
	.stages__stage--multi-note .stages__note-block:not(.active) {
		position: absolute;
		display: block;
		left: 0;
		right: 0;
	}

	.stages__stage--multi-note .stages__note-block:not(.stages__note-block--description) {
		white-space: initial;
		max-width: none;
	}

	.stages__stage--multi-note .stages__note-block.stages__note-block--description {
		bottom: 0;
	}

	.stages__stage--multi-note .stages__note-btn {
		visibility: visible;
	}

	.stages__note-block {
		flex-grow: 1;
		position: static;
		margin: auto 40px 0;
		max-width: none;
		transition: opacity 1s;
	}

	.stages__note-block:not(.active) {
		visibility: hidden;
		transform: none;
	}

	.stages__stage:not(.stages__stage--multi-note) .stages__note-block:not(.active) {
		visibility: visible;
		opacity: 1;
	}

	.stages__stage-background {
		margin-bottom: 64px;
	}

	.stages__slider-wrapper {
		margin-bottom: 20px;
		flex-grow: 1;
	}
}


@media (max-width: 767px) {
	.stages {
		padding-top: 56px;
	}

	.stages__stage-background {
		margin-bottom: 128px;
	}

	.stages__note-block {
		margin: auto 12px 0;
		padding: 20px 12px;
	}

	.stages__slider-counter {
		font-size: 22px;
		line-height: 32px;
	}

	.stages__slider-counter .current {
		width: 28px;
	}

	.stages__container .stages__slider-pagination {
		gap: 2px;
	}
}

@media (max-width: 575px) {
	.stages {
		margin-bottom: 32px;
	}

	.stages__slider-counter {
		top: 8px;
		left: 16px;
	}

	.stages__slider-controls {
		height: 55%;
	}

	.stages__header-text {
		margin-bottom: 40px;
		font-size: 24px;
		line-height: 40px;
		text-align: center;
	}

	.stages__stage-background {
		width: 165%;
	}

	.stages__stage--multi-note .stages__note-block {
		top: auto !important;
		bottom: 0;
	}

	.stages__note-title {
		font-size: 20px;
	}

	.stages__note-text {
		font-size: 12px;
		line-height: 20px;
	}
}