/* ── Layout ────────────────────────────────────────────────────────────────── */

.specialist-entry .entry-content-wrap {
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */

.specialist-card {
	position: relative;
	overflow: hidden;
	display: flex;
	gap: clamp(28px, 5vw, 52px);
	align-items: center;
	margin: 24px 0 44px;
	padding: clamp(24px, 4vw, 40px);
	background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,247,251,.96));
	border: 1px solid rgba(45, 35, 58, .09);
	border-radius: 24px;
	box-shadow: 0 18px 50px rgba(45, 35, 58, .10);
}

.specialist-card::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -110px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: var(--global-palette-highlight, #6b547c);
	opacity: .07;
	pointer-events: none;
}

/* ── Photo ─────────────────────────────────────────────────────────────────── */

.specialist-card__photo {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	width: clamp(200px, 27vw, 240px);
}

.specialist-card__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: top center;
	border-radius: 18px;
	box-shadow: 0 14px 32px rgba(45, 35, 58, .18);
}

.specialist-card__photo img.specialist-photo--placeholder {
	opacity: .55;
	object-position: center;
}

/* ── Info ──────────────────────────────────────────────────────────────────── */

.specialist-card__info {
	position: relative;
	z-index: 1;
	flex: 1;
	min-width: 0;
}

.specialist-card__name {
	max-width: 520px;
	margin: 0 0 20px;
	font-size: clamp(30px, 4vw, 42px);
	font-weight: 650;
	line-height: 1.08;
	letter-spacing: -.025em;
	color: var(--global-palette3, #2d233a);
}

/* ── Tags ──────────────────────────────────────────────────────────────────── */

.specialist-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-bottom: 28px;
}

.specialist-card__tag {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 14px;
	border: 1px solid rgba(107, 84, 124, .16);
	border-radius: 999px;
	background: rgba(107, 84, 124, .09);
	color: var(--global-palette-highlight, #6b547c);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	transition: color .2s, background .2s, border-color .2s, transform .2s;
}

.specialist-card__tag:hover {
	background: var(--global-palette-highlight, #6b547c);
	color: #fff;
	border-color: var(--global-palette-highlight, #6b547c);
	transform: translateY(-1px);
}

/* ── Details / Contacts ────────────────────────────────────────────────────── */

.specialist-card__details {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding-top: 22px;
	border-top: 1px solid rgba(45, 35, 58, .11);
}

.specialist-card__contacts {
	display: grid;
	gap: 10px;
}

.specialist-card__contact {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0;
	font-size: 16px;
}

.specialist-card__contact-icon {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(107, 84, 124, .09);
	color: var(--global-palette-highlight, #4a4a8a);
}

.specialist-card__contact-icon-link {
	border: 1px solid rgba(107, 84, 124, .16);
	text-decoration: none;
	transition: color .2s, background .2s, border-color .2s, transform .2s;
}

.specialist-card__contact-icon-link:hover {
	background: var(--global-palette-highlight, #6b547c);
	color: #fff;
	border-color: var(--global-palette-highlight, #6b547c);
	text-decoration: none;
	transform: translateY(-1px);
}

.specialist-card__contact a {
	color: var(--global-palette-highlight, #4a4a8a);
	font-weight: 600;
	text-decoration: none;
}

.specialist-card__contact a:hover {
	text-decoration: underline;
}

.specialist-card__contact .specialist-card__contact-icon-link:hover {
	text-decoration: none;
}

/* ── QR ────────────────────────────────────────────────────────────────────── */

.specialist-card__qr {
	flex-shrink: 0;
}

.specialist-card__qr img {
	display: block;
	width: 82px;
	height: 82px;
	padding: 5px;
	background: #fff;
	border: 1px solid rgba(45, 35, 58, .10);
	border-radius: 10px;
}

/* ── Consent / Content ─────────────────────────────────────────────────────── */

.specialist-consent-notice {
	margin: 20px 0;
	padding: 12px 16px;
	font-size: 14px;
	color: #666;
	background: #f8f9fb;
	border-radius: 8px;
	border-left: 3px solid #ccc;
}

.specialist-content {
	padding-top: 4px;
}

/* ── Unpaid notice ─────────────────────────────────────────────────────────── */

.specialist-unpaid-notice {
	margin: 28px 0;
	padding: 22px;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	background: #fff;
}

.specialist-unpaid-notice p {
	margin: 0 0 12px;
}

.specialist-unpaid-notice p:last-child {
	margin-bottom: 0;
}

/* ── Events (collapsible) ──────────────────────────────────────────────────── */

.specialist-events {
	position: relative;
	margin-bottom: 40px;
}

.specialist-events__list {
	overflow: hidden;
	transition: max-height .4s ease;
}

.specialist-events__overlay {
	display: none;
	position: absolute;
	bottom: 52px;
	left: 0;
	right: 0;
	height: 120px;
	background: linear-gradient(to bottom, transparent, var(--global-bg, #fff));
	pointer-events: none;
	z-index: 1;
}

.specialist-events--collapsed .specialist-events__overlay {
	display: block;
}

.specialist-events__toggle {
	display: none;
	margin: 16px auto 0;
	width: 80px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--global-palette-highlight, #6b547c);
	border-radius: 999px;
	background: transparent;
	color: var(--global-palette-highlight, #6b547c);
	cursor: pointer;
	justify-content: center;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.specialist-events--collapsed .specialist-events__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
}

.specialist-events__toggle:hover {
	background: var(--global-palette-highlight, #6b547c);
	color: #fff;
	transform: translateY(-1px);
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.specialist-entry .entry-content-wrap {
		max-width: 100vw;
	}

	.specialist-card {
		width: calc(100vw - 48px);
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 22px 20px 28px;
		border-radius: 20px;
	}

	.specialist-card__photo {
		width: min(100%, 240px);
	}

	.specialist-card__name {
		font-size: clamp(29px, 9vw, 36px);
	}

	.specialist-card__tags {
		justify-content: center;
	}

	.specialist-card__details {
		flex-direction: column;
		align-items: center;
	}

	.specialist-card__contacts {
		justify-items: center;
		margin: 0 auto;
	}
}
