/* Quick-view modal — Figma «карточка мастера» в категории */
body.sp-qv-open {
	overflow: hidden;
}

.sp-qv {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
}
.sp-qv[hidden],
.sp-qv [hidden] {
	display: none !important;
}
.sp-qv__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 14, 55, .45);
	backdrop-filter: blur(2px);
}
.sp-qv__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 720px;
	max-height: min(90vh, 860px);
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 64px rgba(0, 14, 55, .28);
	padding: 28px 28px 22px;
	box-sizing: border-box;
	outline: none;
}
.sp-qv__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
}
.sp-qv__close::before,
.sp-qv__close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 1.5px;
	background: #96A1BD;
	border-radius: 1px;
}
.sp-qv__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.sp-qv__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.sp-qv__close:hover::before,
.sp-qv__close:hover::after { background: #000E37; }

.sp-qv__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 160px;
	gap: 20px;
	align-items: start;
	margin-bottom: 18px;
	padding-right: 20px;
}
.sp-qv__kicker {
	color: #5B6D9C;
	font-size: 14px;
	line-height: 1.35;
	margin-bottom: 6px;
}
.sp-qv__title-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
}
.sp-qv__title {
	margin: 0;
	color: #0066B2;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.25;
	min-width: 0;
}
.sp-qv__city {
	color: #5B6D9C;
	font-size: 14px;
	line-height: 1.35;
	white-space: nowrap;
	flex-shrink: 0;
}
.sp-qv__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 12px;
	font-size: 14px;
}
.sp-qv__phone {
	color: #0066B2;
	text-decoration: none;
	font-weight: 500;
}
.sp-qv__copy {
	border: 0;
	background: none;
	color: #5B6D9C;
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}
.sp-qv__wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 18px;
	border-radius: 6px;
	background: linear-gradient(180deg, #2E437B 0%, #0066B2 100%);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 500;
	border: 1.3px solid #fff;
	box-shadow: 0 0 0 1.3px transparent;
}
.sp-qv__wa:hover {
	filter: brightness(1.05);
	color: #fff !important;
}
.sp-qv__photo-wrap {
	width: 148px;
	height: 148px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #fff;
	box-shadow: 0 0 0 3px #7fb3ff, 0 8px 24px rgba(0, 102, 178, .2);
	justify-self: end;
	background: #F1F5FA;
}
.sp-qv__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	transform: scale(1.12);
	display: block;
}

.sp-qv__body {
	border-top: 1px solid #E8EEF7;
	padding-top: 16px;
}
.sp-qv__discount {
	display: block;
	margin: 0 0 12px;
	padding: 6px 10px;
	background: #db0000;
	color: #fff;
	text-align: center;
	font-size: 14px;
	line-height: 1.35;
	border-radius: 4px;
}
.sp-qv__discount[hidden] {
	display: none !important;
}
.sp-qv__desc {
	color: #5B6D9C;
	font-size: 15px;
	line-height: 1.55;
}
/* Figma 769 card checklist: ✓ markers, no default bullets */
.sp-qv__desc ul,
.sp-qv__desc ol {
	list-style: none;
	margin: 10px 0;
	padding-left: 0;
}
.sp-qv__desc li {
	position: relative;
	margin: 4px 0;
	padding-left: 1.4em;
}
.sp-qv__desc li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #0066B2;
	font-weight: 600;
}
.sp-qv__desc p {
	margin: 0 0 10px;
}

.sp-qv__reviews-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 0;
	border: 0;
	background: none;
	color: #0066B2;
	font-size: 15px;
	font-family: inherit;
	cursor: pointer;
}
.sp-qv__chev {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-top: -4px;
	transition: transform .15s ease;
}
.sp-qv__reviews-toggle.is-open .sp-qv__chev {
	transform: rotate(-135deg);
	margin-top: 2px;
}
.sp-qv__reviews {
	margin-top: 14px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: 0;
	max-height: none;
	overflow: visible;
}
.sp-qv__reviews-loading,
.sp-qv__reviews-empty {
	margin: 0;
	padding: 14px 16px;
	border-radius: 10px;
	background: #F7F9FC;
	border: 1px solid #E8EEF7;
	color: #5B6D9C;
	font-size: 14px;
}

/* ── Reviews block (parsed from review.tpl → compact cards) ── */
.sp-qv-rev {
	margin: 0;
	padding: 18px 16px 16px;
	border-radius: 12px;
	background: #FFFFFF;
	border: 1px solid #E8EEF7;
	box-shadow: 0 4px 18px rgba(0, 14, 55, .06);
}
.sp-qv-rev__title {
	margin: 0 0 14px;
	padding: 0;
	color: #0066B2;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
}
.sp-qv-rev__stats {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0 0 16px;
	padding: 0 0 14px;
	border-bottom: 1px solid #E8EEF7;
	color: #5B6D9C;
	font-size: 14px;
}
.sp-qv-rev__stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.sp-qv-rev__sep {
	width: 1px;
	height: 16px;
	background: #C5D0E0;
	flex: 0 0 auto;
}
.sp-qv-rev__stat-ic {
	display: inline-block;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	background: no-repeat center / contain;
	opacity: .85;
}
.sp-qv-rev__stat-ic--msg {
	/* speech bubble */
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235B6D9C' stroke-width='1.4'><path d='M3 3.5h10a1.5 1.5 0 0 1 1.5 1.5v5A1.5 1.5 0 0 1 13 11.5H7l-3 2.2V11.5H3A1.5 1.5 0 0 1 1.5 10V5A1.5 1.5 0 0 1 3 3.5z'/></svg>");
}
.sp-qv-rev__stat-ic--heart {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 13.2S2.5 9.6 2.5 5.9A2.9 2.9 0 0 1 8 4.2a2.9 2.9 0 0 1 5.5 1.7C13.5 9.6 8 13.2 8 13.2z' fill='none' stroke='%235B6D9C' stroke-width='1.4'/></svg>");
}
.sp-qv-rev__stat--rating {
	gap: 8px;
}
.sp-qv-rev__rating-num {
	color: #5B6D9C;
	font-size: 14px;
	white-space: nowrap;
}

.sp-qv-rev__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: none;
	overflow: visible;
}
.sp-qv-rev__card {
	padding: 16px 16px 14px;
	border-radius: 12px;
	background: #F7F9FC;
	border: 1px solid #E8EEF7;
	box-sizing: border-box;
}
.sp-qv-rev__card-top {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 12px;
}
.sp-qv-rev__avatar {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px #7fb3ff;
	background: #E8EEF7;
}
.sp-qv-rev__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sp-qv-rev__avatar-ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #D6E4F5, #EAF2FB);
}
.sp-qv-rev__who {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 4px;
}
/* Имя с декоративными линиями как в макете */
.sp-qv-rev__author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
}
.sp-qv-rev__author::before,
.sp-qv-rev__author::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #4CA8ED;
	min-width: 12px;
	opacity: .7;
}
.sp-qv-rev__author span {
	flex: 0 1 auto;
	color: #0066B2;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.sp-qv-rev__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
}
.sp-qv-rev__date {
	color: #5B6D9C;
	font-size: 13px;
	line-height: 1.2;
}
.sp-qv-rev__stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}
.sp-qv-rev__star {
	display: inline-block;
	width: 14px;
	height: 14px;
	background: no-repeat center / contain;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 1.6l1.8 3.7 4.1.6-3 2.9.7 4.1L8 11 4.4 12.9l.7-4.1-3-2.9 4.1-.6z' fill='%23C5D0E0'/></svg>");
}
.sp-qv-rev__star.is-on {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 1.6l1.8 3.7 4.1.6-3 2.9.7 4.1L8 11 4.4 12.9l.7-4.1-3-2.9 4.1-.6z' fill='%23F5B400'/></svg>");
}
.sp-qv-rev__stars--sm .sp-qv-rev__star {
	width: 12px;
	height: 12px;
}
.sp-qv-rev__text {
	color: #5B6D9C;
	font-size: 14px;
	line-height: 1.55;
	word-break: break-word;
}
.sp-qv-rev__text p {
	margin: 0 0 8px;
}
.sp-qv-rev__text p:last-child {
	margin-bottom: 0;
}

/* kill raw review.tpl chrome if fallback path is used */
.sp-qv-rev--raw .line_left,
.sp-qv-rev--raw .line_right,
.sp-qv-rev--raw .stars,
.sp-qv-rev--raw .pagination_wrap {
	display: none !important;
}
.sp-qv-rev--raw .item {
	border: 1px solid #E8EEF7 !important;
	border-radius: 12px !important;
	padding: 14px !important;
	margin: 0 0 10px !important;
	background: #F7F9FC !important;
}
.sp-qv-rev--raw .item .container {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
.sp-qv-rev--raw .item .img .bg {
	display: none !important;
}

.sp-qv__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #E8EEF7;
}
.sp-qv__foot .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 6px;
	font-size: 15px;
	text-decoration: none !important;
	box-sizing: border-box;
}
.sp-qv__site.btn--site {
	background: linear-gradient(180deg, #2E437B 0%, #0066B2 100%);
	color: #fff !important;
	border: 1.3px solid #fff;
}
.sp-qv__page.btn--outline {
	background: #fff;
	color: #0066B2 !important;
	border: 1.3px solid #0066B2;
}

/* listing: secondary «Подробнее» next to site CTA */
.offers_list .contacts_wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.offers_list .btn--ghost-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 6px;
	border: 1px solid #D7E3F5;
	background: #fff;
	color: #5B6D9C;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
}
.offers_list .btn--ghost-more:hover {
	border-color: #0066B2;
	color: #0066B2;
}
/* clamp short card text so grid never blows up */
.offers_list .sp-card .text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

@media (max-width: 640px) {
	.sp-qv__head {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}
	.sp-qv__photo-wrap {
		justify-self: center;
		order: -1;
		width: 120px;
		height: 120px;
	}
	.sp-qv__title-row {
		justify-content: center;
		flex-wrap: wrap;
	}
	.sp-qv__meta,
	.sp-qv__contacts {
		justify-content: center;
	}
	.sp-qv__foot {
		flex-direction: column;
	}
	.sp-qv__foot .btn {
		width: 100%;
	}
}
