/* ===== Головна: слайдер "PRO-виконавці" ===== */

.pro-performers {
	/* body на сайті — flex: без width/min-width секція розтягується під ширину каруселі */
	width: 100%;
	min-width: 0;
	max-width: 1262px;
	/* Ритм головної: 90px між секціями (45px на телефоні).
	   Зверху: 30px дає padding блоку "Чому платформа" + 60px тут.
	   Знизу: -22px компенсують нижній відступ під тінь карток (.owl-stage-outer),
	   решту (90px) дає margin-top наступної секції "Нові виконавці". */
	margin: 60px auto -22px;
	padding: 0 15px;
	font-family: 'Roboto', sans-serif;
}

.pro-performers *,
.pro-performers *::before,
.pro-performers *::after {
	box-sizing: border-box;
}

.pro-performers__head {
	text-align: center;
	margin-bottom: 18px;
}

.pro-performers .pro-performers__title {
	margin: 0 0 8px;
}

.pro-performers__subtitle {
	margin: 0;
	color: #6b7280;
	font-size: 16px;
	line-height: 1.4;
}

.pro-performers__wrap {
	position: relative;
	padding: 0 44px;
}

/* Відступи всередині, щоб тінь і підйом картки при наведенні не обрізались */
#owl_pro_performers .owl-stage-outer {
	padding: 12px 0 22px;
}

/* Картки однакової висоти */
#owl_pro_performers .owl-stage {
	display: flex;
}

#owl_pro_performers .owl-item {
	display: flex;
	/* Запас з боків: ширини слайдів дробові, і без нього крайня рамка обрізається на 1px */
	padding: 0 3px;
}

.pro-card {
	position: relative;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 36px 18px 20px;
	border: 2px solid #f6db9e;
	border-radius: 10px;
	background: #fffbf2;
	box-shadow: 0 4px 12px rgba(246, 184, 41, .14);
	text-align: center;
	transition: box-shadow .2s, transform .2s;
}

.pro-card:hover {
	box-shadow: 0 8px 18px rgba(246, 184, 41, .26);
	transform: translateY(-2px);
}

.pro-card__badge {
	position: absolute;
	top: -2px;
	left: -2px;
	padding: 7px 14px 6px;
	border-radius: 10px 0 8px 0;
	background: #fbb829;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .5px;
}

.pro-card__avatar {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	margin-bottom: 14px;
}

#owl_pro_performers .pro-card__avatar img {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #fbb829;
	object-fit: cover;
}

/* Ім'я — завжди місце під 2 рядки, щоб місто й рейтинг стояли на одній лінії в усіх картках */
.pro-card__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
	margin-bottom: 4px;
	color: #404040;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	word-break: break-word;
}

.pro-card__name:hover,
.pro-card__name:focus {
	color: #219ae7;
	text-decoration: none;
}

.pro-card__city {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-bottom: 12px;
	color: #219ae7;
	font-size: 14px;
	font-weight: 600;
}

/* Іконка локації — як на сторінці виконавця (.profile-top__loc) */
.pro-card__city svg {
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	color: #219ae7;
	stroke: #219ae7;
	fill: none;
}

#owl_pro_performers .pro-card__city svg path,
#owl_pro_performers .pro-card__city svg circle {
	stroke: #219ae7;
	fill: none;
}

.pro-card__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 12px;
	min-height: 20px;
	margin-bottom: 14px;
	color: #6b7280;
	font-size: 14px;
}

.pro-card__stats .job_employer__rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.pro-card__stats .job_employer__star {
	color: #fbb829;
}

.pro-card__tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: flex-start;
	gap: 6px;
	flex-grow: 1;
	width: 100%;
	margin-bottom: 18px;
}

.pro-card__tag {
	max-width: 100%;
	padding: 4px 10px;
	border: 1px solid #f6db9e;
	border-radius: 14px;
	background: #fdecc5;
	color: #404040;
	font-size: 13px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.pro-card__btn {
	display: block;
	width: 100%;
	padding: 11px 12px;
	border-radius: 6px;
	background: #fbb829;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s;
}

.pro-card__btn:hover,
.pro-card__btn:focus {
	background: #f0a500;
	color: #fff;
	text-decoration: none;
}

/* Стрілки — як у слайдері "Останні додані завдання" (#slick_added_works) */
#owl_pro_performers .owl-nav {
	position: absolute;
	top: 50%;
	left: -44px;
	right: -44px;
	height: 1px;
	margin: 0;
	transform: translate(0, -50%);
	z-index: 1;
}

#owl_pro_performers .owl-nav button.owl-prev,
#owl_pro_performers .owl-nav button.owl-next {
	position: absolute;
	top: 50%;
	display: block;
	width: 28px !important;
	height: 44px !important;
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
	font-size: 0;
	line-height: 0;
	color: transparent;
	background: url(../img/ico/arrows2.png) no-repeat center !important;
	cursor: pointer;
}

#owl_pro_performers .owl-nav button.owl-prev {
	left: 0;
	transform: translate(0, -50%);
}

#owl_pro_performers .owl-nav button.owl-next {
	right: 0;
	left: auto;
	transform: translate(0, -50%) rotate(180deg);
}

@media (max-width: 767px) {
	.pro-performers {
		margin-top: 15px;
	}
}

@media (max-width: 575px) {
	/* Одна картка на екрані — вирівнювати імена між картками не потрібно */
	.pro-card__name {
		min-height: 0;
	}

	.pro-performers__wrap {
		padding: 0 30px;
	}

	/* Як у завдань: стрілки по краях екрана (30px wrap + 15px секції) */
	#owl_pro_performers .owl-nav {
		left: -45px;
		right: -45px;
	}

	.pro-performers__subtitle {
		font-size: 14px;
	}

	.pro-card {
		padding: 34px 16px 18px;
	}
}
