/* Figma: Untitled Copy / «Разводящая взрослые» — doctor catalog 1:1 */

.doctor-catalog {
	--dc-green: #009b77;
	--dc-green-play: #009b77;
	--dc-child-bar: #ffdc66;
	--dc-bar: var(--dc-green);
	--dc-ink: #000000;
	--dc-muted: #505050;
	--dc-placeholder: #ababab;
	--dc-card-bg: #fff;
	--dc-photo-bg: #f5f5f5;
	--dc-border: #f0f0f0;
	--dc-tag-border: #ededed;
	--dc-pill-bg: #f8f8f8;
	--dc-content: 1440px;
	font-family: Gilroy, arial, sans-serif;
	padding: 48px 0 80px;
	color: var(--dc-ink);
	overflow: visible;
}

.doctor-catalog.is-child-mode {
	--dc-bar: var(--dc-child-bar);
}

.doctor-catalog,
.doctor-catalog * {
	box-sizing: border-box;
	letter-spacing: 0;
}

.doctor-catalog__container {
	width: 100%;
	max-width: calc(var(--dc-content) + 48px);
	margin: 0 auto;
	padding: 0 24px;
	overflow: visible;
}

/* Title — Figma 7:707, ~50px line */
.doctor-catalog__heading {
	margin: 0 0 16px;
}

.doctor-catalog__heading h1 {
	margin: 0;
	font-family: Gilroy, arial, sans-serif;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.14;
	color: var(--dc-ink);
}

/* Filter bar — Figma 7:885; взрослые #009b77, детские #FFDC66 */
.doctor-catalog__filters {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 85px;
	padding: 15px 18.5px;
	border-radius: 40px;
	background: var(--dc-bar);
	transition: background .25s ease;
}

.doctor-catalog__filters label {
	margin-bottom: 0;
}

.doctor-catalog__search {
	flex: 1 1 427px;
	min-width: 0;
	max-width: 427px;
}

.doctor-catalog__search input,
.doctor-catalog__dropdown-toggle {
	width: 100%;
	height: 55px;
	border: 0;
	border-radius: 25px;
	background: #fff;
	color: var(--dc-muted);
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	outline: 0;
}

.doctor-catalog__search input {
	padding: 10px 20px;
	color: var(--dc-ink);
}

.doctor-catalog__search input::placeholder {
	color: var(--dc-placeholder);
	font-weight: 500;
}

.doctor-catalog__search input:focus,
.doctor-catalog__dropdown-toggle:focus-visible,
.doctor-catalog__audience button:focus-visible {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
}

/* Audience pills — Figma 7:890, 354×55, inner pills 40h */
.doctor-catalog__audience {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	flex: 0 0 354px;
	width: 354px;
	height: 55px;
	padding: 0 9px;
	border-radius: 25px;
	background: #fff;
}

.doctor-catalog__audience button {
	height: 40px;
	padding: 9px 14px;
	border: 0;
	border-radius: 33px;
	background: var(--dc-pill-bg);
	color: var(--dc-muted);
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 19px;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.doctor-catalog__audience button[data-doctor-audience="all"] {
	min-width: 75px;
}

.doctor-catalog__audience button[data-doctor-audience="adult"] {
	min-width: 136px;
}

.doctor-catalog__audience button[data-doctor-audience="child"] {
	min-width: 115px;
}

.doctor-catalog__audience button.is-active {
	background: var(--dc-green);
	color: #fff;
}

/* На жёлтой плашке активная кнопка остаётся зелёной (как в макете) */
.doctor-catalog.is-child-mode .doctor-catalog__audience button.is-active {
	background: var(--dc-green);
	color: #fff;
}

/* Dropdowns — specialty 306, clinic 256 */
.doctor-catalog__dropdown {
	position: relative;
	flex: 0 0 306px;
	width: 306px;
	min-width: 0;
}

.doctor-catalog__dropdown--clinic {
	flex: 0 0 256px;
	width: 256px;
}

.doctor-catalog__dropdown-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 20px;
	cursor: pointer;
	text-align: left;
}

.doctor-catalog__dropdown-toggle > span:first-child {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--dc-muted);
}

.doctor-catalog__chevron {
	position: relative;
	width: 18px;
	height: 16px;
	flex: 0 0 18px;
}

.doctor-catalog__chevron::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #505050;
	border-bottom: 2px solid #505050;
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.doctor-catalog__dropdown.is-open .doctor-catalog__chevron::before {
	top: 8px;
	transform: rotate(225deg);
}

.doctor-catalog__dropdown-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 30;
	display: none;
	width: max(100%, 280px);
	max-height: 340px;
	padding: 10px;
	overflow-y: auto;
	border: 1px solid #e0e8e5;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}

.doctor-catalog__dropdown.is-open .doctor-catalog__dropdown-menu {
	display: block;
}

.doctor-catalog__option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 8px;
	color: var(--dc-ink);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	cursor: pointer;
}

.doctor-catalog__option:hover {
	background: #f4f8f7;
}

.doctor-catalog__option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.doctor-catalog__checkbox {
	position: relative;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 1.5px solid #aeb8b4;
	border-radius: 4px;
}

.doctor-catalog__option input:checked + .doctor-catalog__checkbox {
	border-color: var(--dc-green);
	background: var(--dc-green);
}

.doctor-catalog__option input:checked + .doctor-catalog__checkbox::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 5px;
	width: 5px;
	height: 9px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}

.doctor-catalog__filter-footer {
	display: flex;
	justify-content: flex-end;
	min-height: 28px;
	padding: 8px 4px 0;
}

.doctor-catalog__reset {
	display: none;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border: 0;
	background: transparent;
	color: #e34258;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.doctor-catalog__reset.is-visible {
	display: flex;
}

/* Grid — 3×468, gap 18 (Figma x: 240 / 726 / 1212) */
.doctor-catalog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 54px;
}

/* Card — Figma 7:32, 468×310, radius 40, bg #fbfbfb, border #f0f0f0 */
.doctor-catalog-card {
	display: grid;
	grid-template-columns: 225px minmax(0, 1fr);
	width: 100%;
	min-width: 0;
	height: 310px;
	overflow: hidden;
	border: 1px solid var(--dc-border);
	border-radius: 40px;
	background: var(--dc-card-bg);
}

.doctor-catalog-card.b-doctor-card {
	background: #fff;
}

.doctor-catalog-card[hidden],
.doctor-catalog-card.is-page-hidden {
	display: none;
}

/* Photo column — 225×310, bg #f1f8f5 */
.doctor-catalog-card__media {
	position: relative;
	width: 225px;
	height: 310px;
	overflow: hidden;
	border-radius: 40px;
	background: var(--dc-photo-bg);
	border: 1px solid var(--dc-border);
}

.doctor-catalog-card__photo {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.doctor-catalog-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform .3s ease;
}

.doctor-catalog-card:hover .doctor-catalog-card__photo img {
	transform: scale(1.03);
}

.doctor-catalog-card__media-fade {
	display: none !important;
}

/* catalog video modal player (same look as detail #myVideo) */
#doctorCatalogVideoModal video#doctorCatalogVideo,
#doctorCatalogVideo {
	width: 100% !important;
	height: 100%;
	border-radius: 30px;
	object-fit: contain;
	object-position: center;
	max-height: 80dvh;
	background: #000;
}

/* Video pill — like detail: white bg + text, bottom left; opens modal */
.doctor-catalog-card__video {
	position: absolute;
	left: 10px;
	bottom: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	min-width: 0;
	max-width: calc(100% - 20px);
	height: 36px;
	margin: 0;
	padding: 0 10px 0 4px;
	border: 1px solid #fff;
	border-radius: 32px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
	color: #313131;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	box-sizing: border-box;
	pointer-events: auto;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.doctor-catalog-card__video:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
	transform: translateY(-1px);
}

.doctor-catalog-card__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	line-height: 0;
}

.doctor-catalog-card__play svg {
	display: block;
	width: 24px;
	height: 24px;
}

.doctor-catalog-card__video-text {
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 11px;
	line-height: 1;
	color: #313131;
}

/* Body — content from x≈254 → ~29px left padding from photo edge */
.doctor-catalog-card__body {
	display: flex;
	min-width: 0;
	height: 100%;
	padding: 20px;
	flex-direction: column;
}

.doctor-catalog-card__name {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
}

.doctor-catalog-card__name a {
	color: var(--dc-ink);
	text-decoration: none;
}

.doctor-catalog-card__name a:hover {
	color: var(--dc-green);
}

/* Tags — pills (as on detail page), no empty stretch */
.doctor-catalog-card__tags {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 5px;
	margin: 0 0 18px;
}

.doctor-catalog-card__tags span {
	display: inline-flex;
	align-items: center;
	width: auto;
	max-width: 100%;
	flex: 0 1 auto;
	min-height: 20px;
	padding: 4px 8px;
	border: 1px solid var(--dc-tag-border);
	border-radius: 16px;
	background: #fff;
	color: #000;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.2;
	box-sizing: border-box;
}

.doctor-catalog-card__tags span::after {
	content: none;
	display: none;
}

/* Meta — labels #009b77 Bold 12, values black Regular */
.doctor-catalog-card__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
	margin-bottom: 16px;
}

.doctor-catalog-card__meta-row {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.doctor-catalog-card__meta-item {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 5px;
}

.doctor-catalog-card__meta-item--full {
	width: 100%;
}

.doctor-catalog-card__meta-item span {
	color: var(--dc-green);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
}

.doctor-catalog-card__meta-item strong {
	color: #000;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.doctor-catalog-card__meta-item--full strong {
	white-space: normal;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* Footer: button 120×40 + rating */
.doctor-catalog-card__footer {
	display: flex;
	align-items: center;
	gap: 8px;
}

.doctor-catalog-card__footer--mobile {
	display: none;
}

.doctor-catalog-card__more {
	display: inline-flex;
	width: auto;
	padding: 0 14px;
	text-align: center;
	height: 40px;
	align-items: center;
	justify-content: center;
	border-radius: 33px;
	background: var(--dc-green);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 19px;
	text-decoration: none;
	transition: background .2s ease, opacity .2s ease;
}

.doctor-catalog-card__more:hover {
	background: #0f966b;
	color: #fff;
}

.doctor-catalog-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #000;
	font-size: 11px;
	font-weight: 400;
	line-height: 1;
}

.doctor-catalog-card__rating img {
	display: block;
	width: 21px;
	height: 20px;
}

.doctor-catalog__empty {
	padding: 54px 0;
	color: var(--dc-muted);
	font-size: 18px;
	text-align: center;
}

/* Show more — Figma 7:708, 192×50 */
button.doctor-catalog__more {
	display: flex;
	width: 192px;
	height: 50px;
	align-items: center;
	justify-content: center;
	margin: 36px auto 0;
	padding: 0 24px;
	border: 2px solid var(--dc-green);
	border-radius: 25px;
	background: #fff;
	color: var(--dc-green);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

button.doctor-catalog__more[hidden],
.doctor-catalog__empty[hidden] {
	display: none !important;
}

button.doctor-catalog__more:hover {
	background: var(--dc-green);
	color: #fff;
}

.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
	.doctor-catalog__filters {
		flex-wrap: wrap;
		height: auto;
		border-radius: 32px;
	}

	.doctor-catalog__search {
		flex: 1 1 280px;
		max-width: none;
	}

	.doctor-catalog__audience {
		flex: 1 1 320px;
		width: auto;
	}

	.doctor-catalog__dropdown,
	.doctor-catalog__dropdown--clinic {
		flex: 1 1 220px;
		width: auto;
	}
}

@media (max-width: 1100px) {
	.doctor-catalog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.doctor-catalog {
		padding-bottom: 56px;
	}

	.doctor-catalog__heading h1 {
		font-size: 32px;
	}

	.doctor-catalog__filters {
		gap: 10px;
		padding: 12px;
		border-radius: 28px;
	}

	.doctor-catalog__search,
	.doctor-catalog__audience,
	.doctor-catalog__dropdown,
	.doctor-catalog__dropdown--clinic {
		flex: 1 1 100%;
		max-width: none;
		width: 100%;
	}

	.doctor-catalog__audience {
		justify-content: stretch;
		padding: 6px;
	}

	.doctor-catalog__audience button {
		flex: 1 1 0;
		min-width: 0 !important;
		padding: 0 8px;
		font-size: 15px;
	}

	.doctor-catalog__search input,
	.doctor-catalog__dropdown-toggle {
		font-size: 16px;
	}

	.doctor-catalog__grid {
		grid-template-columns: 1fr;
		margin-top: 28px;
	}

	.doctor-catalog-card {
		height: auto;
		min-height: 0;
		grid-template-columns: minmax(132px, 36%) minmax(0, 1fr);
		border-radius: 28px;
		align-items: stretch;
	}

	/* photo column full height — green bg full; image anchored to bottom */
	.doctor-catalog-card__media {
		width: 100%;
		height: 100%;
		min-height: 100%;
		align-self: stretch;
		margin-top: 0;
		border-radius: 28px 0 0 28px;
		background: var(--dc-photo-bg);
	}

	.doctor-catalog-card__photo {
		display: flex;
		align-items: flex-end;
		justify-content: center;
		height: 100%;
		min-height: 100%;
	}

	.doctor-catalog-card__photo img {
		width: 100%;
		height: 100%;
		min-height: 100%;
		max-height: none;
		object-fit: cover;
		object-position: center bottom;
	}

	.doctor-catalog-card__video {
		left: 6px;
		bottom: 8px;
		height: 28px;
		padding: 0 8px 0 3px;
		max-width: calc(100% - 12px);
	}

	.doctor-catalog-card__play {
		width: 18px;
		height: 18px;
		flex-basis: 18px;
	}

	.doctor-catalog-card__play svg {
		width: 18px;
		height: 18px;
	}

	.doctor-catalog-card__video-text {
		display: inline;
		font-size: 9px;
	}

	.doctor-catalog-card__body {
		padding: 12px 12px 12px 14px;
	}

	.doctor-catalog-card__name {
		font-size: 15px;
		margin-bottom: 8px;
		line-height: 1.2;
	}

	.doctor-catalog-card__tags {
		margin-bottom: 10px;
		gap: 4px;
	}

	.doctor-catalog-card__tags span {
		font-size: 10px;
		padding: 3px 7px;
		min-height: 0;
	}

	.doctor-catalog-card__meta {
		margin-bottom: 10px;
		gap: 6px;
	}

	.doctor-catalog-card__meta-item span,
	.doctor-catalog-card__meta-item strong {
		font-size: 11px;
	}
}

@media (max-width: 520px) {
	.doctor-catalog__heading h1 {
		font-size: 22px;
	}

	.doctor-catalog-card {
		grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
		min-height: 0;
		border-radius: 22px;
		align-items: stretch;
	}

	.doctor-catalog-card__media {
		width: 100%;
		height: 100%;
		min-height: 100%;
		align-self: stretch;
		margin-top: 0;
		border-radius: 22px 0 0 22px;
		background: var(--dc-photo-bg);
	}

	.doctor-catalog-card__photo {
		display: flex;
		align-items: flex-end;
		justify-content: center;
		height: 100%;
		min-height: 100%;
	}

	.doctor-catalog-card__photo img {
		height: 100%;
		min-height: 100%;
		object-position: center bottom;
	}

	/* keep video text on narrow; badge top-left so no collision */
	.doctor-catalog-card__video-text {
		display: inline;
		font-size: 9px;
	}

	.doctor-catalog-card__video {
		height: 26px;
		padding: 0 6px 0 2px;
	}

	.doctor-catalog-card__name {
		font-size: 15px;
	}

	.doctor-catalog-card__tags span:nth-child(n+4) {
		display: none;
	}

	.doctor-catalog-card__meta-row {
		flex-direction: column;
		gap: 6px;
	}

	.doctor-catalog-card__more {
		width: 100px;
		height: 36px;
		font-size: 12px;
	}

	/* mobile type scale for list page */
	.doctor-catalog__heading h1 {
		font-size: 22px;
	}

	.doctor-ratings__head h2,
	.doctor-tour__head h2 {
		font-size: 22px;
	}

	.doctor-ratings__head p,
	.doctor-tour__head p {
		font-size: 15px;
	}
}

/* ========== Decor: docs.png / docs2.png — как на скриншотах ========== */
.doctor-catalog__top {
	position: relative;
	padding-top: 0;
	overflow: visible;
}

/*
 * Взрослые: цветок справа, над правым краем зелёной плашки,
 * нижняя часть слегка заходит на бар (бар сверху по z-index).
 * Детские: широкая полоска иконок над жёлтой плашкой, по центру-справа.
 */
.doctor-catalog__decor {
	position: absolute;
	top: -82px;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	width: 230px;
	height: 190px;
	pointer-events: none;
	user-select: none;
	overflow: visible;
}

.doctor-catalog__decor-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: right bottom;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .06));
}

/* Детский декор — широкая полоска над плашкой */
.doctor-catalog.is-child-mode .doctor-catalog__decor {
	top: -64px;
	right: 12px;
	left: auto;
	width: min(760px, 64%);
	height: 190px;
}

.doctor-catalog__decor-img.is-child,
.doctor-catalog.is-child-mode .doctor-catalog__decor-img {
	width: 100%;
	height: 100%;
	object-position: right bottom;
}

.doctor-catalog__top .doctor-catalog__heading {
	position: relative;
	z-index: 1;
	max-width: calc(100% - 250px);
	margin-bottom: 18px;
	padding-right: 12px;
}

/* Плашка поверх нижней части декора */
.doctor-catalog__top .doctor-catalog__filters {
	position: relative;
	z-index: 3;
}

/* ========== Virtual tour (Figma 7:710) ========== */
.doctor-tour {
	padding: 72px 0 40px;
	font-family: Gilroy, arial, sans-serif;
}

.doctor-tour__head {
	max-width: 1060px;
	margin: 0 auto 42px;
	text-align: center;
}

.doctor-tour__head h2 {
	margin: 0 0 15px;
	font-size: 50px;
	font-weight: 700;
	line-height: 1.1;
	color: #000;
}

.doctor-tour__head p {
	margin: 0;
	color: #505050;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.35;
}

.doctor-tour__media {
	position: relative;
	width: 100%;
	height: 550px;
	overflow: hidden;
	border: 1px solid #f0f0f0;
	border-radius: 80px;
	background: #fbfbfb;
}

.doctor-tour__bg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.doctor-tour__vr {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: min(372px, 42%);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.doctor-tour__vr img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .18));
}

/* ========== Ratings — review aggregators (WP design) + clinic switch ========== */
.doctor-ratings {
	padding: 56px 0 40px;
	font-family: Gilroy, arial, sans-serif;
}

.doctor-ratings__head {
	max-width: 830px;
	margin: 0 auto 28px;
	text-align: center;
}

.doctor-ratings__head h2 {
	margin: 0 0 15px;
	font-size: 50px;
	font-weight: 700;
	line-height: 1.1;
	color: #000;
}

.doctor-ratings__head p {
	margin: 0;
	color: #505050;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.35;
}

.doctor-ratings__clinics {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 auto 20px;
	max-width: 960px;
}

.doctor-ratings__clinic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid #e4e4e4;
	border-radius: 999px;
	background: #fff;
	color: #313131;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.doctor-ratings__clinic:hover {
	border-color: #009b77;
	color: #009b77;
}

.doctor-ratings__clinic.is-active {
	border-color: #009b77;
	background: #009b77;
	color: #fff;
	font-weight: 700;
}

.doctor-ratings .review-aggregators {
	display: none;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 8px;
	border-radius: 16px;
	background: #f7f7f7;
}

.doctor-ratings .review-aggregators.is-active {
	display: grid;
}

.doctor-ratings .review-agg {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.doctor-ratings a.review-agg:hover {
	box-shadow: 0 2px 12px rgba(20, 20, 30, 0.06);
}

.doctor-ratings .review-agg__logo {
	display: inline-flex;
	align-items: center;
	height: 28px;
}

.doctor-ratings .review-agg__logo img {
	max-height: 28px;
	width: auto;
	max-width: 120px;
	display: block;
	object-fit: contain;
}

.doctor-ratings .review-agg__wordmark {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	font-size: 18px;
	line-height: 1;
	font-weight: 700;
	color: #15161a;
}

.doctor-ratings .review-agg__wordmark--yandex::first-letter {
	color: #fc3f1d;
}

.doctor-ratings .review-agg__wordmark--prodoctorov {
	color: #16afc6;
}

.doctor-ratings .review-agg__wordmark--doctu {
	color: #246bfd;
}

.doctor-ratings .review-agg__wordmark--sber {
	color: #21a038;
}

.doctor-ratings .review-agg__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.doctor-ratings .review-agg__rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	color: #15161a;
	font-size: 15px;
}

.doctor-ratings .review-agg__rating svg {
	flex-shrink: 0;
}

.doctor-ratings .review-agg__count {
	font-size: 14px;
	color: #595353;
	text-decoration: underline;
	text-decoration-color: rgba(89, 83, 83, 0.3);
	text-underline-offset: 3px;
}

/* legacy (unused) */
.doctor-ratings__bar,
.doctor-ratings__item,
.doctor-ratings__star {
	display: none;
}

/* ========== CTA cards (Figma 7:908) 1:1 ========== */
.doctor-cta {
	padding: 56px 0 96px;
	font-family: Gilroy, arial, sans-serif;
	background: #fff;
	overflow: visible;
}

.doctor-cta__grid {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	width: 100%;
	max-width: 1186px;
	margin: 0 auto;
}

.doctor-cta__card {
	position: relative;
	flex: 0 0 auto;
	width: 353px;
	height: 455px;
	overflow: hidden;
	border-radius: 32px;
	text-align: center;
}

/* Центральная выше: 416×544 */
.doctor-cta__card--appoint {
	width: 416px;
	height: 544px;
}

.doctor-cta__card--callback {
	background: #66e58e;
}

.doctor-cta__card--appoint {
	background: #009b77;
}

.doctor-cta__card--online {
	background: #fdc85f;
}

/* Нижнее свечение как ellipse в Figma */
.doctor-cta__glow {
	position: absolute;
	left: 50%;
	bottom: -40%;
	z-index: 0;
	width: 180%;
	height: 90%;
	border-radius: 50%;
	transform: translateX(-50%);
	pointer-events: none;
}

.doctor-cta__card--callback .doctor-cta__glow {
	background: radial-gradient(ellipse at center, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 68%);
}

.doctor-cta__card--appoint .doctor-cta__glow {
	background: radial-gradient(ellipse at center, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 68%);
}

.doctor-cta__card--online .doctor-cta__glow {
	background: radial-gradient(ellipse at center, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, 0) 68%);
}

/* Кнопка: top 35.5 / 38, h 50, border 2 white, radius 100 */
.doctor-cta__btn {
	position: absolute;
	top: 35.5px;
	left: 50%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 214px;
	height: 50px;
	margin: 0;
	padding: 0 20px;
	border: 2px solid #fff;
	border-radius: 100px;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transform: translateX(-50%);
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.doctor-cta__card--appoint .doctor-cta__btn {
	top: 38px;
}

.doctor-cta__btn:hover {
	background: #fff;
	color: #009b77;
}

.doctor-cta__card--callback .doctor-cta__btn:hover {
	color: #3ecf72;
}

.doctor-cta__card--online .doctor-cta__btn:hover {
	color: #e0a42e;
}

/* Текст: top ~105–108, gap 8, title 28 bold, sub 20 regular */
.doctor-cta__text {
	position: absolute;
	top: 105.5px;
	left: 50%;
	z-index: 4;
	width: 238px;
	margin: 0;
	padding: 0;
	color: #fff;
	transform: translateX(-50%);
}

.doctor-cta__card--appoint .doctor-cta__text {
	top: 108px;
	width: 297px;
}

.doctor-cta__card--online .doctor-cta__text {
	top: 106px;
	width: 330px;
}

.doctor-cta__text h3 {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}

.doctor-cta__text p {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
}

/* Визуалы */
.doctor-cta__visual {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

/* Телефон — bottom half, ~255×258, centered */
.doctor-cta__visual--phone img {
	position: absolute;
	left: 50%;
	bottom: 10px;
	width: 255px;
	max-width: none;
	height: auto;
	transform: translateX(-50%);
	object-fit: contain;
	object-position: bottom center;
}

/* Календарь — повёрнут ~12°, крупный */
.doctor-cta__visual--calendar img {
	position: absolute;
	top: 159px;
	left: -69px;
	width: 508px;
	max-width: none;
	height: auto;
	transform: rotate(12.38deg);
	transform-origin: center;
	object-fit: contain;
	object-position: center bottom;
}

/* Онлайн: ноутбук + аватар + трубки */
.doctor-cta__visual--online {
	overflow: hidden;
}

.doctor-cta__online-laptop {
	position: absolute;
	left: calc(50% + 73px);
	top: 179px;
	width: 486px;
	max-width: none;
	height: auto;
	transform: translateX(-50%);
	object-fit: contain;
	object-position: center top;
}

.doctor-cta__online-screen {
	position: absolute;
	top: 241px;
	left: 50%;
	z-index: 2;
	display: block;
	width: 108px;
	height: 108px;
	overflow: hidden;
	border-radius: 50%;
	transform: translateX(-50%);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
	background: #f3f6f8;
}

.doctor-cta__online-avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transform: scaleX(-1);
}

.doctor-cta__online-phone {
	position: absolute;
	top: 373px;
	left: 171px;
	z-index: 3;
	width: 66px;
	height: auto;
	object-fit: contain;
}

.doctor-cta__online-decline {
	position: absolute;
	top: 386px;
	left: 113px;
	z-index: 3;
	width: 48px;
	height: auto;
	object-fit: contain;
}
.doctor-catalog__grid .b-doctor-card {
	gap: 0;
}

@media (max-width: 1240px) {
	.doctor-cta__grid {
		gap: 16px;
		max-width: 100%;
	}

	.doctor-cta__card {
		width: 300px;
		height: 400px;
	}

	.doctor-cta__card--appoint {
		width: 352px;
		height: 476px;
	}

	.doctor-cta__text h3 {
		font-size: 24px;
	}

	.doctor-cta__text p {
		font-size: 17px;
	}

	.doctor-tour__head h2,
	.doctor-ratings__head h2 {
		font-size: 36px;
	}

	.doctor-tour__media {
		height: 420px;
		border-radius: 48px;
	}
}

@media (max-width: 980px) {
	.doctor-catalog {
		padding-top: 20px;
	}

	.doctor-catalog__decor {
		top: -28px;
		right: 0;
		width: 160px;
		height: 136px;
	}

	.doctor-catalog.is-child-mode .doctor-catalog__decor {
		top: -40px;
		right: 0;
		width: min(480px, 68%);
		height: 136px;
	}

	.doctor-catalog__top .doctor-catalog__heading {
		max-width: calc(100% - 170px);
	}

	.doctor-cta__grid {
		flex-direction: column;
		align-items: stretch;
		max-width: 416px;
		margin: 0 auto;
		gap: 20px;
	}

	.doctor-cta__card,
	.doctor-cta__card--appoint {
		width: 100%;
		height: 455px;
	}

	.doctor-cta__card--appoint {
		height: 500px;
	}

	.doctor-tour__head p,
	.doctor-ratings__head p {
		font-size: 16px;
	}

	.doctor-tour__media {
		height: 300px;
		border-radius: 32px;
	}

	.doctor-ratings .review-aggregators {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.doctor-ratings__clinic {
		min-height: 38px;
		padding: 8px 14px;
		font-size: 13px;
	}
}

@media (max-width: 640px) {
	.doctor-catalog__grid .doctor-catalog-card.b-doctor-card {
		grid-template-columns: 100px minmax(0, 1fr);
		grid-template-areas:
			"media body"
			"footer footer";
		column-gap: 14px;
		row-gap: 12px;
		height: auto;
		min-height: 0;
		padding: 12px;
		align-items: start;
		border-radius: 20px;
		background: #fff;
		overflow: hidden;
	}

	.doctor-catalog-card__media {
		grid-area: media;
		width: 100px;
		height: 130px;
		min-height: 0;
		margin: 0;
		align-self: start;
		border-radius: 14px;
		background: #f5f5f5;
	}

	.doctor-catalog-card__photo {
		display: block;
		width: 100px;
		height: 130px;
		min-height: 0;
	}

	.doctor-catalog-card__photo img {
		width: 100px;
		height: 130px;
		min-height: 0;
		max-height: 130px;
		object-fit: cover;
		object-position: center top;
	}

	.doctor-catalog-card__body {
		grid-area: body;
		height: auto;
		min-height: 130px;
		padding: 2px 0 0;
	}

	.doctor-catalog-card__name {
		margin-bottom: 8px;
		font-size: 17px;
		line-height: 1.2;
	}

	.doctor-catalog-card__tags {
		margin-bottom: 10px;
	}

	.doctor-catalog-card__meta-row {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px 14px;
	}

	.doctor-catalog-card__meta-item--full {
		width: 100%;
	}

	.doctor-catalog-card__meta {
		margin-top: 0;
		margin-bottom: 0;
	}

	.doctor-catalog-card__footer--desktop {
		display: none;
	}

	.doctor-catalog-card__footer--mobile {
		grid-area: footer;
		display: flex;
		width: 100%;
		gap: 10px;
		align-items: center;
	}

	.doctor-catalog-card__book {
		display: inline-flex;
		min-width: 0;
		max-width: 180px;
		height: 40px;
		padding: 0 14px;
		flex: 1 1 150px;
		align-items: center;
		justify-content: center;
		border: 0;
		border-radius: 24px;
		background: var(--dc-green);
		color: #fff;
		font-family: inherit;
		font-size: 13px;
		font-weight: 700;
		line-height: 1;
		text-align: center;
		text-decoration: none;
		cursor: pointer;
	}

	.doctor-catalog-card__book:hover {
		color: #fff;
	}

	.doctor-catalog-card__footer--mobile .doctor-catalog-card__rating {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.doctor-catalog-card__video {
		left: 6px;
		bottom: 6px;
		width: 36px;
		height: 36px;
		padding: 0;
		justify-content: center;
		gap: 0;
	}

	.doctor-catalog-card__video .doctor-catalog-card__play {
		position: static;
		transform: none;
		margin: 0;
		width: 24px;
		height: 24px;
		flex: 0 0 24px;
	}

	.doctor-catalog-card__video .doctor-catalog-card__play svg {
		width: 24px;
		height: 24px;
	}

	.doctor-catalog-card__video-text {
		display: none;
	}

	.doctor-catalog__decor {
		top: -36px;
		width: 110px;
		height: 100px;
	}

	.doctor-catalog.is-child-mode .doctor-catalog__decor {
		top: -28px;
		width: min(300px, 76%);
		height: 100px;
	}

	.doctor-catalog__top .doctor-catalog__heading {
		max-width: calc(100% - 116px);
		margin-bottom: 12px;
	}

	.doctor-catalog.is-child-mode .doctor-catalog__top .doctor-catalog__heading {
		max-width: 100%;
		margin-bottom: 0;
		padding-right: 0;
	}

	.doctor-catalog.is-child-mode .doctor-catalog__decor {
		position: relative;
		top: auto;
		right: auto;
		left: auto;
		width: 100%;
		height: 76px;
		margin: 0 0 8px;
		justify-content: center;
	}

	.doctor-catalog.is-child-mode .doctor-catalog__decor-img {
		object-position: center;
	}

	.doctor-tour,
	.doctor-ratings {
		padding-top: 40px;
	}

	.doctor-cta {
		padding-bottom: 56px;
	}

	.doctor-tour__head h2,
	.doctor-ratings__head h2 {
		font-size: 28px;
	}

	.doctor-cta__text h3 {
		font-size: 24px;
	}

	.doctor-cta__text p {
		font-size: 16px;
	}

	.doctor-ratings .review-aggregators {
		grid-template-columns: 1fr;
	}

	.doctor-ratings__clinics {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
		margin-left: -12px;
		margin-right: -12px;
		padding-left: 12px;
		padding-right: 12px;
	}

	.doctor-ratings__clinic {
		flex: 0 0 auto;
	}
}
