.history {
	padding: 160px 0;
	background-color: #F2EFE9;
	border-radius: 30px;
}

.history__inner {
	display: flex;
	align-items: flex-start;
	gap: 64px;
}

.history-sidebar {
	display: flex;
	flex-direction: column;
	gap: 48px;
	flex: 0 1 680px;
}

.history-sidebar__header {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.history-sidebar__title p {
	margin-top: 24px;
	width: 100%;
	color: var(--color-grey-dark)
}

.history-sidebar__icon {
	width: 120px;
	height: 120px;
	border-radius: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-blue)
}

.history-sidebar__tabs {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	flex-wrap: wrap;

	li {
		flex: 0 1 calc((100% - 40px) / 3);
	}
}

.history-tabs__btn {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	width: 100%;
	padding: 3px 4px;
	border-radius: 30px;
	height: 58px;
	background: var(--color-white);
	cursor: pointer;
	overflow: hidden;
	transition: background-color 0.2s ease, transform 0.2s ease;
	will-change: transform;
}

.history-tabs__btn img {
	width: 0px;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 70px;
	overflow: hidden;
	flex-shrink: 0;
	flex: 0 0;
	transition: .5s ease;
}

.history-tabs__btn span {
	font-size: 17px;
	line-height: 140%;
	color: var(--color-black);
	text-align: center;
	width: 100%;
	flex: 1 1 45%;
	margin-left: -16px;
	transition: color .5s ease;
}

.history-tabs__btn:hover,
.history-tabs__btn._active {
	background: var(--color-blue);

	span {
		color: var(--color-white);
		margin-left: 0;
		transition: .5s ease;
	}

	img {
		flex: 0 0 100px;
	}
}

.history-tabs__btn._active {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.history-content {
	display: flex;
	flex-direction: column;
	gap: 33px;
	min-width: 0;
	flex: 1 1;
	padding: 48px;
	border-radius: 16px;
	background-color: var(--color-white);
	transition: .5s ease;
}

.history-content__slider.embla {
	flex: 1;
	min-width: 0;
}

.history-content__slider .embla__viewport {
	overflow: hidden;
}

.history-content__slide {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.history-content__img {
	overflow: hidden;
	border-radius: 16px;
	display: flex;
}

.history-content__img img {
	width: 100%;
	height: 430px;
	border-radius: 12px;
	overflow: hidden;
	object-fit: cover;
}

.history-content__desc {
	display: flex;
	flex-direction: column;
	gap: 33px;
	position: relative;

	&>&:not(.history-content__desc-year-img) {
		position: relative;
		z-index: 2;
	}
}

.history-content__desc-year {
	color: var(--color-blue);
	height: 58px;
	border-radius: 30px;
	background-color: var(--color-beige);
	padding: 17px 40px;
	max-width: fit-content;
}

.history-content__desc-year-img {
	position: absolute;
	right: 0;
	top: 0px;
	font-weight: 700;
	font-size: 75px;
	line-height: 120%;
	letter-spacing: 0%;
	color: #F2EFE9;
	white-space: nowrap;
}

.history-content__desc-text {
	color: var(--color-black);
	margin-top: -10px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-clamp: 6;
	-webkit-line-clamp: 6;

	br {
		display: none;
	}
}

.history-content__desc-footer {
	display: flex;
	justify-content: space-between;
	gap: 24px;

	&>span {
		flex: 1 1;
		border-bottom: 1px solid var(--color-grey);
		margin-bottom: 5px;
		display: block;
	}

	.button-primary {
		max-width: 320px;
		width: 100%;
	}
}



.block-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 33px;
	flex-wrap: wrap;
}

.pagination-wrapper {
	display: flex;
	align-items: flex-end;
	flex-direction: column;
	gap: 4px;
	color: var(--color-grey-dark);

	span {
		display: block;
		line-height: 100%;
	}
}

.pagination-wrapper .pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 24px;
	font-weight: 400;
	line-height: 140%;
	line-height: 1;
	color: var(--color-black)
}


.nav-btns {
	display: flex;
	gap: 8px;
}

.history-content .btn-arrow {
	background-color: rgba(10, 0, 117, .2);
	color: var(--color-blue);
}

.history-content .btn-arrow:hover:not(:disabled) {
	background-color: var(--color-blue);
	color: var(--color-white);
}

.popup-history [data-popup-container] {
	max-width: 1180px;
	width: calc(100vw - 48px);
	max-width: 870px;
	padding: 0;
	background-color: var(--color-white);
}

.popup-history__layout {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.popup-history__tabs.embla {
	max-height: 220px;
	padding: 24px 24px 0;
	background: var(--color-beige);
}

.popup-history__tabs .embla__viewport {
	overflow: hidden;
	max-height: 220px;
}

.popup-history__tabs .embla__container {
	flex-direction: column;
	gap: 8px;
}

.popup-history__tabs .embla__slide {
	flex: 0 0 auto;
	min-height: 0;
}

.popup-history__tabs .history-tabs__btn {
	background: rgba(10, 0, 117, 0.06);
	color: var(--color-black);
}

.popup-history__tabs .history-tabs__btn:hover,
.popup-history__tabs .history-tabs__btn._active {
	background: rgba(10, 0, 117, 0.12);
}

.popup-history__tabs .history-tabs__btn._active {
	box-shadow: inset 0 0 0 1px rgba(10, 0, 117, 0.18);
}

.popup-history__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 60px 48px 48px;
}

.popup-history__year {
	font-weight: 600;
	font-size: 96px;
	line-height: 110.00000000000001%;
	color: var(--color-white);
	position: absolute;
	left: 20px;
	bottom: 20px;
	z-index: 2;
}

.popup-history__content .h2 {
	margin-top: 28px;
}

.popup-history__image {
	position: relative;
}

.popup-history__image img {
	width: 100%;
	height: 430px;
	border-radius: 16px;
	overflow: hidden;
	object-fit: cover;
}

.popup-history__text {
	color: var(--color-black);
	line-height: 140%;

}

.popup-history__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 28px;
}

.popup-history__nav .btn-arrow {
	background-color: var(--color-beige);
	color: var(--color-blue);
}

.popup-history__nav .btn-arrow:hover:not(:disabled) {
	background-color: var(--color-blue);
	color: var(--color-white);
}

.popup-history {}

.popup-history__wrapper {
	padding: 20px 0;
	background-color: #fff;
}

@media(max-width: 1600px) {
	.history-content__desc-footer {
		.button-primary {
			max-width: 280px;
			width: 100%;
		}

		.nav-btns {
			display: none;
		}
	}

	.history-content__img img {
		height: 320px;
	}

	.history-content__desc-year-img {
		font-size: 65px;
	}
}


@media(max-width: 1439.5px) {
	.history {
		overflow: hidden;
		padding: 140px 0;
	}

	.history__inner {
		flex-direction: column;
		gap: 20px;


	}

	.history-content__desc {
		position: static;
	}

	.history-content__desc-year-img {
		top: 470px;
		right: 48px;
	}

	.history-sidebar {
		flex: 1 1 100%;
		max-width: 100%;

	}

	.history-content {
		position: relative;

		.nav-btns {
			position: absolute;
			top: -73px;
			left: 0;
			right: 0;
			width: 100%;
			justify-content: space-between;
			z-index: 0;
			display: flex;
		}
	}

	.history-sidebar__tabs {
		flex-wrap: nowrap;
		max-width: 87%;
		margin: 0 auto;
		overflow: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		position: relative;
		z-index: 2;
		gap: 8px;
	}

	.history-sidebar__tabs::-webkit-scrollbar {
		display: none;
	}

	.history-tabs__btn {
		white-space: nowrap;
		padding: 17px 32px;

		img {
			display: none !important;
		}

		span {
			margin-left: 0;
		}
	}


	.history-content__desc-footer {
		.button-primary {
			max-width: 540px;
			width: 100%;
		}
	}

	.history-content__img img {
		height: 400px;
	}

	.history-sidebar__header {
		flex-direction: row;
		gap: 40px;
	}

	.history-sidebar__icon {
		width: 80px;
		height: 80px;

		svg {
			width: 39px;
			height: 39px;
		}
	}

	.history-sidebar__title p {
		margin-top: 16px;
	}
}

@media(max-width: 1023.5px) {
	.history-sidebar__tabs {
		max-width: 84%;
	}

	.history-content__desc {
		gap: 24px;
	}

	.history-content__desc-footer {
		margin-top: 16px;

		.button-primary {
			max-width: 370px;
			width: 100%;
		}
	}

	.history-content__desc-year-img {
		top: 480px;
		right: 48px;
	}
}

@media(max-width: 767.5px) {
	.history-content__desc-year-img {
		display: none;
	}

	.history {
		padding: 100px 0;
	}

	.history-sidebar__header {
		flex-direction: column;
	}

	.history-sidebar {
		gap: 40px;
	}

	.nav-btns {
		display: none;
	}

	.history-sidebar__tabs {
		max-width: fit-content;
		margin: 0 -24px;
		padding: 0 24px;
	}

	.history-content {
		padding: 24px;
	}

	.history-content__img img {
		height: auto;
		aspect-ratio: 264/176;
	}

	.history-content {
		width: 100%;
		max-width: 100%;
	}

	.history-content__desc-footer {

		.separator,
		.block-nav {
			display: none;
		}
	}

	.history-content__desc-year {
		display: none;
	}

	.popup-history__year {
		font-size: 40px;
	}

	.popup-history__image img {
		height: auto;
		aspect-ratio: 263/176;
	}

	.popup-history__content {
		padding: 80px 24px 24px;
	}
}