/* doctor-links 2026-11-29
 * «Подробнее» on homepage cinema, /vrachi/ cards and direction pages.
 * Do not merge into main.css. main.css is not edited (CORNER-SHAPED + doctors cinema stay).
 */

/* ---- Cards (archive /vrachi/, direction pages) ---- */
.doc.has-page::after {
	pointer-events: none;
}
a.doc-photo-link {
	position: absolute;
	inset: 0;
	z-index: 3;
}
.doc-b {
	position: relative;
	z-index: 4;
}
a.doc-name {
	color: inherit;
	text-decoration: none;
}
a.doc-name:hover,
a.doc-name:focus-visible {
	color: #74bfd6;
}

.doc-acts {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 8px;
	align-self: flex-start;
	margin-top: 8px;
	min-width: 0;
	max-width: 100%;
}
.doc-acts .btn {
	margin-top: 0;
	flex: 0 1 auto;
}

a.doc-more,
a.dgo-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 16px;
	border-radius: 999px;
	font: 500 12px/1 var(--font);
	letter-spacing: .02em;
	color: var(--text, #f0f0ed);
	text-decoration: none;
	background: linear-gradient(180deg, rgba(93, 153, 172, 0.32), rgba(93, 153, 172, 0.16));
	border: 1px solid rgba(93, 153, 172, 0.45);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: inset 0 1px 0 rgba(240, 240, 237, 0.1);
	transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
	white-space: nowrap;
	cursor: pointer;
}
a.doc-more:hover,
a.doc-more:focus-visible,
a.dgo-more:hover,
a.dgo-more:focus-visible {
	border-color: #5d99ac;
	background: linear-gradient(180deg, rgba(93, 153, 172, 0.45), rgba(93, 153, 172, 0.26));
	box-shadow: 0 8px 30px rgba(93, 153, 172, 0.28), inset 0 1px 0 rgba(240, 240, 237, 0.18);
}

/* Match compact card booking button size */
.doc-acts .doc-more {
	height: auto;
	padding: 7px 14px;
	font-size: 12px;
}

/* Desktop: reveal the pair on hover, same as the booking button in main.css */
@media (hover: hover) {
	.doc .doc-acts {
		opacity: 0;
		max-height: 0;
		margin-top: 0;
		overflow: hidden;
		transform: translateY(6px);
		transition: opacity .4s ease, max-height .45s ease, margin .45s ease, transform .45s ease;
	}
	.doc:hover .doc-acts,
	.doc:focus-within .doc-acts {
		opacity: 1;
		max-height: 130px;
		margin-top: 10px;
		overflow: hidden;
		transform: none;
	}
	.doc .doc-acts .btn {
		opacity: 1 !important;
		max-height: none !important;
		overflow: visible;
		margin-top: 0 !important;
		padding-top: 7px;
		padding-bottom: 7px;
		border-width: 1px;
		transform: none;
	}
}

/* ---- Homepage cinema: list row ---- */
.drow.open .dexp {
	max-height: 160px;
}
.dexp .dgo-more--row {
	display: inline-block;
	height: auto;
	margin: 4px 0 12px 16px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: none;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	font: 400 12px var(--font);
	color: var(--blue, #5d99ac);
	letter-spacing: 0;
}
.dexp .dgo-more--row:hover,
.dexp .dgo-more--row:focus-visible {
	background: none;
	box-shadow: none;
	border: none;
	color: #74bfd6;
}
@media (max-width: 900px) {
	.dexp .dgo-more--row {
		margin-left: 12px;
	}
}

/* ---- Homepage cinema: photo caption + clickable still ---- */
a.dscreen-link {
	position: absolute;
	inset: 0;
	z-index: 2;
}
a.dcap-name {
	color: inherit;
	text-decoration: none;
}
a.dcap-name:hover,
a.dcap-name:focus-visible {
	color: inherit;
	text-decoration: none;
}

@media (min-width: 901px) {
	.dcap:has(.dcap-acts) {
		padding-right: 340px;
	}
	.dcap-acts {
		position: absolute;
		right: 0;
		bottom: 0;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 8px;
		align-items: center;
		margin: 0;
		z-index: 4;
	}
	.dcap-acts .dgo2 {
		position: static;
		margin: 0;
	}
	.dcap-acts .dgo-more {
		height: auto;
		padding: 12px 28px;
		font: 400 14px var(--font);
	}
}

@media (max-width: 900px) {
	.dcap-acts {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		align-items: center;
		margin-top: 12px;
	}
	.dcap-acts .dgo2 {
		margin-top: 0;
	}
	.dcap-acts .dgo-more {
		height: auto;
		padding: 10px 24px;
		font: 400 12px var(--font);
	}
}
