/**
 * LM VIP Masters homepage block (loaded only when [lm_vip_masters] renders).
 */

.lm-home-block--vip-mesteri {
	padding-top: 34px !important;
	padding-bottom: 48px !important;
}

.lm-vip-masters {
	box-sizing: border-box;
	width: min(100%, 1720px);
	margin: 0 auto;
	padding: 0 28px;
}

.lm-vip-masters .lm-home-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.lm-vip-masters .lm-home-section-title {
	margin: 0 0 10px;
	font-size: 42px;
	line-height: 1.08;
	font-weight: 900;
	color: #17283d;
	letter-spacing: -0.02em;
}

.lm-vip-masters .lm-home-section-subtitle {
	margin: 0;
	max-width: 820px;
	font-size: 16px;
	line-height: 1.7;
	color: #5b6877;
}

.lm-vip-masters .lm-home-section-link {
	flex: 0 0 auto;
	color: #1f4b8f;
	text-decoration: none;
	font-weight: 800;
	font-size: 16px;
	white-space: nowrap;
}

.lm-vip-masters .lm-home-section-link:hover {
	text-decoration: underline;
}

.lm-vip-masters__empty {
	margin: 0;
	padding: 24px 0 8px;
	color: #64748b;
	font-size: 16px;
}

.lm-vip-masters__wrap {
	position: relative;
	padding: 0 22px;
}

.lm-vip-masters__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	min-width: 44px;
	border: none;
	border-radius: 999px;
	background: #fff;
	color: #1f4b8f;
	font-size: 28px;
	line-height: 1;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
	transition: 0.18s ease;
}

.lm-vip-masters__arrow--prev {
	left: -12px;
}

.lm-vip-masters__arrow--next {
	right: -12px;
}

.lm-vip-masters__arrow:hover {
	background: #1f4b8f;
	color: #fff;
}

.lm-vip-masters__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(340px, 340px);
	gap: 18px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 6px 4px 14px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #b8c7dc #edf2f7;
}

@media (min-width: 1200px) {
	.lm-vip-masters__track {
		grid-auto-columns: calc((100% - 54px) / 4);
		overflow-x: hidden;
	}
}

.lm-vip-masters__track::-webkit-scrollbar {
	height: 10px;
}

.lm-vip-masters__track::-webkit-scrollbar-track {
	background: #edf2f7;
	border-radius: 999px;
}

.lm-vip-masters__track::-webkit-scrollbar-thumb {
	background: #b8c7dc;
	border-radius: 999px;
}

.lm-vip-master-card {
	scroll-snap-align: start;
	background: #f8fbff;
	border: 1px solid #dfe8f5;
	border-radius: 22px;
	padding: 18px;
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lm-vip-master-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.lm-vip-master-card.is-featured {
	border-color: #f0c64c;
}

.lm-vip-master-card__top {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 14px;
}

.lm-vip-master-card__avatar {
	position: relative;
	width: 110px;
	height: 110px;
	min-width: 110px;
	border-radius: 999px;
	overflow: hidden;
	background: #e8eef7;
	border: 2px solid #fff;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lm-vip-master-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.lm-vip-master-card__avatar.is-monogram {
	background: #0f274d;
}

.lm-vip-master-card__monogram {
	color: #fff;
	font-size: 38px;
	font-weight: 900;
	line-height: 1;
}

.lm-vip-master-card__badge {
	position: absolute;
	top: 4px;
	left: 4px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	background: #f0c64c;
	color: #0f172a;
	font-weight: 900;
	font-size: 11px;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.lm-vip-master-card__info h3 {
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 1.18;
	font-weight: 800;
	color: #17283d;
}

.lm-vip-master-card__info h3 a {
	color: #17283d;
	text-decoration: none;
}

.lm-vip-master-card__info h3 a:hover {
	color: #1f4b8f;
}

.lm-vip-master-card__service {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 700;
	color: #42546b;
}

.lm-vip-master-card__city {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: #667487;
	font-weight: 700;
}

.lm-vip-master-card__rating {
	margin: 8px 0 0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 15px;
	line-height: 1.3;
	color: #42546b;
	font-weight: 700;
}

.lm-vip-master-card__stars {
	color: #ffbf00;
	font-size: 18px;
	line-height: 1;
}

.lm-vip-master-card__rating span:last-child {
	color: #64748b;
	font-weight: 700;
}

.lm-vip-master-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	justify-content: center;
}

.lm-vip-master-card__badges span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #dbe5f1;
	color: #22324d;
	font-size: 11px;
	font-weight: 700;
}

.lm-vip-master-card__footer {
	margin-top: auto;
}

.lm-vip-master-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 800;
	font-size: 15px;
	background: #0f274d;
	color: #fff;
	border: 1px solid #0f274d;
	transition: 0.18s ease;
}

.lm-vip-master-card__button:hover {
	background: #183a6d;
	border-color: #183a6d;
	color: #fff;
}

@media (max-width: 1199px) {
	.lm-vip-masters .lm-home-section-title,
	.lm-vip-compact .lm-home-section-title {
		font-size: 34px;
	}

	.lm-vip-masters__track {
		grid-auto-columns: minmax(320px, 320px);
	}
}

@media (max-width: 767px) {
	.lm-vip-masters {
		padding: 0 14px;
	}

	.lm-vip-masters .lm-home-section-head {
		display: block;
	}

	.lm-vip-masters .lm-home-section-head__actions {
		margin-top: 12px;
	}

	.lm-vip-masters__wrap {
		padding: 0;
	}

	.lm-vip-masters__arrow {
		display: none;
	}

	.lm-vip-masters__track {
		grid-auto-columns: minmax(82vw, 82vw);
		padding-right: 16px;
	}

	.lm-vip-master-card__avatar {
		width: 92px;
		height: 92px;
		min-width: 92px;
	}

	.lm-vip-master-card__info h3 {
		font-size: 20px;
	}
}
