.men-lot-page {
	--men-lot-beige: #ebe4de;
}

.men-lot-plan {
	display: flex;
	flex-direction: column;
	background: var(--men-bg);
	min-height: 100vh;
}

.men-lot-plan__body {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--men-lot-beige);
	padding: 15px;
	min-height: 0;
}

.men-lot-plan__body picture {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
}

.men-lot-plan__body img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	margin: 0 auto;
	object-fit: contain;
	object-position: center;
}

.men-lot-info {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--men-bg);
	min-height: 100vh;
	padding: 100px 15px 50px;
}

.men-lot-info__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: 345px;
	text-align: center;
}

.men-lot-info__label {
	margin: 0;
	width: 100%;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--men-muted);
}

.men-lot-info__spark {
	width: 37px;
	height: 36px;
	flex-shrink: 0;
}

.men-lot-info__spark svg {
	display: block;
	width: 100%;
	height: 100%;
}

.men-lot-info__specs {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}

.men-lot-info__specs p {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.18;
	color: var(--men-text);
}

.men-lot-info__price {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.men-lot-info__amount {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.18;
	color: var(--men-text);
}

.men-lot-info__finish {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--men-muted);
}

.men-lot-photos {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	background: var(--men-bg);
	padding: 50px 0;
}

.men-lot-photos__track {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	height: 460px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-left: max(15px, calc((100vw - 345px) / 2));
	padding-right: max(15px, calc((100vw - 345px) / 2));
	scroll-padding-inline: max(15px, calc((100vw - 345px) / 2));
	box-sizing: border-box;
}

.men-lot-photos__track::-webkit-scrollbar {
	display: none;
}

.men-lot-photos__item {
	margin: 0;
	flex: 0 0 300px;
	width: 300px;
	height: 400px;
	align-self: flex-start;
	scroll-snap-align: center;
	overflow: hidden;
	transition: width 0.35s ease, height 0.35s ease, flex-basis 0.35s ease;
}

.men-lot-photos__item.is-active {
	flex-basis: 345px;
	width: 345px;
	height: 460px;
}

.men-lot-photos__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.men-lot-photos__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	width: 76px;
	min-height: 18px;
}

.men-lot-photos__dot {
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	background: #bcbdbc;
	transform: rotate(45deg);
	transition: background-color 0.25s ease;
}

.men-lot-photos__dot.is-active {
	background: var(--men-accent);
}

@media (min-width: 1024px) {
	.men-lot-plan {
		min-height: 0;
		height: 100%;
		padding-top: var(--men-header-h);
	}

	.men-lot-plan__body {
		padding: calc(20 * var(--men-gu)) calc(40 * var(--men-u));
	}

	.men-lot-plan__body picture {
		width: auto;
		height: 100%;
	}

	.men-lot-plan__body img {
		width: auto;
		max-width: 100%;
		height: auto;
		max-height: min(100%, calc(965 * var(--men-gu)));
		aspect-ratio: 1689 / 965;
	}

	.men-lot-info {
		min-height: 0;
		height: 100%;
		padding: calc(28 * var(--men-gu)) calc(40 * var(--men-u));
	}

	.men-lot-info__inner {
		max-width: none;
		width: auto;
		gap: calc(40 * var(--men-gu));
	}

	.men-lot-info__label {
		width: auto;
		font-size: calc(22 * var(--men-s));
		line-height: 1.6;
	}

	.men-lot-info__spark {
		width: calc(37 * var(--men-s));
		height: calc(36 * var(--men-s));
	}

	.men-lot-info__specs p,
	.men-lot-info__amount {
		font-size: calc(28 * var(--men-s));
		line-height: 1.18;
		white-space: nowrap;
	}

	.men-lot-info__finish {
		font-size: calc(20 * var(--men-s));
		line-height: 1.2;
	}

	.men-lot-photos {
		flex: 0 0 auto;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: stretch;
		gap: 0;
		height: 100%;
		padding: 0;
		width: max-content;
	}

	.men-lot-photos__track {
		flex: 1 1 auto;
		display: flex;
		align-items: stretch;
		gap: calc(40 * var(--men-gu));
		width: auto;
		height: 100%;
		overflow: visible;
		scroll-snap-type: none;
		padding: 0 calc(40 * var(--men-u));
		scroll-padding-inline: 0;
	}

	.men-lot-photos__item,
	.men-lot-photos__item.is-active {
		flex: 0 0 calc(1840 * var(--men-gu));
		width: calc(1840 * var(--men-gu));
		height: 100%;
		align-self: stretch;
		transition: none;
	}

	.men-lot-photos__dots {
		display: none;
	}
}

@media (max-width: 1023px) {
	.men-lot-page .men-header {
		background: var(--men-bg);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.men-lot-plan {
		min-height: 0;
		height: auto;
		padding-top: var(--men-header-h);
	}

	.men-lot-plan__body {
		min-height: 524px;
		height: 600px;
		max-height: none;
	}

	.men-lot-plan__body img {
		width: auto;
		max-width: min(345px, 100%);
		height: auto;
		max-height: 100%;
		aspect-ratio: 345 / 334;
		object-fit: contain;
	}

	.men-lot-info {
		min-height: 0;
		height: auto;
	}
}
