/**
 * Каталог /natural-stone/?devMode=1 — overrides после styles3 / main.min.
 * Scope: body.index.m_category .leftovers-page
 */
a.leftovers-pick__card {
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}

.leftovers-ajax-target {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.leftovers-stones__empty {
	font-family: "CeraPro-Regular", sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: #59687c;
}

.leftovers-loading {
	display: flex;
	justify-content: center;
	padding: 24px 0;
}

@media screen and (max-width: 950px) {
	.leftovers-ajax-target {
		gap: 40px;
	}
}

.leftovers-pick__fields {
	align-items: center;
}

.leftovers-pick__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 43px;
	padding: 0 20px;
	border-radius: 10px;
	border: 1px solid #9e8d67;
	background: transparent;
	font-family: "CeraPro-Regular", sans-serif;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.03em;
	color: #9e8d67;
	cursor: pointer;
	box-sizing: border-box;
	transition: 0.2s;
}

.leftovers-pick__reset:hover {
	background: #9e8d67;
	color: #fff;
}

.leftovers-pick__reset[hidden] {
	display: none !important;
}

.leftovers-pick__field {
	position: relative;
	z-index: 1;
}

.leftovers-pick__field:has(.ts-wrapper.is-open),
.leftovers-pick__field:has(.ts-wrapper.dropdown-active) {
	z-index: 40;
}

.leftovers-pick__field > .ts-dropdown,
.leftovers-pick__field .leftovers-pick__dropdown {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	margin-top: 4px !important;
	transform: none !important;
}

@media screen and (max-width: 950px) {
	.leftovers-pick__reset {
		width: 100%;
		margin-top: 6px;
	}
}

button.leftovers-stone-card__btn,
button.leftovers-popup__btn {
	appearance: none;
	font: inherit;
}

a.leftovers-stone__title-link {
	color: inherit;
	text-decoration: none;
	transition: 0.2s;
}

a.leftovers-stone__title-link:hover {
	color: #9e8d67;
}

.leftovers-stone__request {
	grid-area: nav;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 15px;
	padding-top: 10px;
	justify-self: end;
	text-align: right;
}

.leftovers-stone__request-price {
	font-family: "CeraPro-Regular", sans-serif;
	font-size: 16px;
	line-height: 1.3;
	color: #59687c;
}

.leftovers-stone__request-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 200px;
	height: 43px;
	padding: 0 16px;
	border-radius: 10px;
	border: 1px solid #9e8d67;
	background: #9e8d67;
	font-family: "CeraPro-Regular", sans-serif;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: 0.03em;
	color: #fff;
	cursor: pointer;
	box-sizing: border-box;
	transition: 0.2s;
}

.leftovers-stone__request-btn:hover {
	background: #fff;
	color: #9e8d67;
}

@media screen and (max-width: 950px) {
	.leftovers-stone__request {
		align-items: stretch;
		padding-top: 0;
		justify-self: stretch;
		text-align: left;
	}

	.leftovers-stone__request-btn {
		width: 100%;
		min-width: 0;
	}
}

/* Figma 517:4539 — mobile intro instead of leftovers-intro + leftovers-how */
.leftovers-mobile {
	display: none !important;
	padding: 20px 0 32px;
}

.leftovers-mobile__inner {
	width: 100%;
	max-width: calc(1161px + 30px * 2);
	margin: 0 auto;
	padding-left: 30px;
	padding-right: 30px;
	box-sizing: border-box;
}

.leftovers-mobile__title {
	margin: 0 0 12px;
	font-family: "Cormorant-Regular", "Cormorant", Georgia, serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #59687c;
}

.leftovers-mobile__line {
	display: block;
	width: 100%;
	height: 1px;
	margin: 0 0 20px;
	background: #59687c;
	border: 0;
}

.leftovers-mobile__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	width: 100%;
	max-width: 282px;
	height: 43px;
	margin-bottom: 24px;
	padding: 13px 16px;
	border-radius: 10px;
	border: 1px solid #9e8d67;
	background: transparent;
	box-sizing: border-box;
	font-family: "CeraPro-Regular", sans-serif;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: 0.03em;
	color: #9e8d67;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: 0.2s;
}

.leftovers-mobile__link-text {
	white-space: nowrap;
}

.leftovers-mobile__link .icon-svg {
	color: #9e8d67;
	flex-shrink: 0;
}

.leftovers-mobile__link:hover {
	background: #9e8d67;
	color: #fff;
}

.leftovers-mobile__link:hover .icon-svg {
	color: #fff;
}

.leftovers-mobile__text {
	margin: 0 0 24px;
	font-family: "CeraPro-Regular", sans-serif;
	font-size: 14px;
	line-height: 1.35;
	letter-spacing: 0.5px;
	color: #000;
}

.leftovers-mobile__text p {
	margin: 0 0 12px;
}

.leftovers-mobile__text p:last-child {
	margin-bottom: 0;
}

/* admin «Описание» / «Описание 2» may wrap old #geo-info — beat styles3 (bg image + columns) */
.leftovers-intro__text #geo-info,
.leftovers-mobile__text #geo-info,
.leftovers-seo__text #geo-info {
	min-height: 0;
	padding: 0;
	background: none;
}

.leftovers-intro__text #geo-info .left-part,
.leftovers-intro__text #geo-info .right-part,
.leftovers-intro__text #geo-info .info-text,
.leftovers-mobile__text #geo-info .left-part,
.leftovers-mobile__text #geo-info .right-part,
.leftovers-mobile__text #geo-info .info-text,
.leftovers-seo__text #geo-info .right-part,
.leftovers-seo__text #geo-info .info-text {
	display: block;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

/* SEO block already has leftovers-seo__title — drop old left title column */
.leftovers-seo__text #geo-info .left-part {
	display: none;
}

.leftovers-intro__text #geo-info::after,
.leftovers-intro__text .clearfix::after,
.leftovers-mobile__text #geo-info::after,
.leftovers-mobile__text .clearfix::after,
.leftovers-seo__text #geo-info::after,
.leftovers-seo__text .clearfix::after {
	display: none;
	content: none;
}

.leftovers-intro__text #geo-info .title,
.leftovers-mobile__text #geo-info .title {
	margin: 0 0 12px;
	font: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
}

.leftovers-mobile__img {
	border-radius: 10px;
	overflow: hidden;
}

.leftovers-mobile__img img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

@media screen and (max-width: 950px) {
	.leftovers-mobile {
		display: block !important;
	}

	.leftovers-mobile__inner {
		max-width: 100%;
		padding-left: 15px;
		padding-right: 15px;
	}
}
