/* Персональные страницы врачей. Общая шапка, формы и подвал используют стили сайта. */
.doctor-page { background: #ebedfa; }
.doctor-profile {
	display: flow-root;
	--ink: #232323;
	--muted: #535668;
	--blue: #7786b8;
	--accent: #52649e;
	--gradient: linear-gradient(145deg, #a6afcf, #6375ab 85%);
	--space: clamp(64px, 7.25vw, 104px);
	width: min(1140px, calc(100% - 48px));
	margin-inline: auto;
	color: var(--ink);
	font: 400 24px/1.333 Inter, Arial, sans-serif;
	overflow-wrap: break-word;
}
.doctor-profile *, .doctor-profile *::before, .doctor-profile *::after { box-sizing: border-box; }
.doctor-profile h1, .doctor-profile h2, .doctor-profile h3, .doctor-profile h4,
.doctor-profile p, .doctor-profile dl, .doctor-profile dd, .doctor-profile blockquote, .doctor-profile figure { margin: 0; }
.doctor-profile h1, .doctor-profile h2, .doctor-profile h3, .doctor-profile h4 { color: inherit; font-family: inherit; font-weight: 500; }
.doctor-profile h1 { font-size: 44px; line-height: 1.09; }
.doctor-profile h2 { font-size: 42px; line-height: 1.19; text-align: center; }
.doctor-profile h3 { font-size: 30px; line-height: 1.2; }
.doctor-profile h4 { font-size: 24px; line-height: 1.25; }
.doctor-profile a { text-underline-offset: .15em; }
.doctor-profile :focus-visible { outline: 3px solid #2646a0; outline-offset: 3px; }
.doctor-profile .article_breadcrumbs ul { padding: 0; }
.doctor-profile img { display: block; max-width: 100%; }
.doctor-profile [id] { scroll-margin-top: 90px; }
.doctor-profile .profile-section { margin-block: var(--space); }
.profile-section > h2 { max-width: 950px; margin: 0 auto 64px; }
.profile-section > h2:has(+ .profile-lead) { margin-bottom: 24px; }
.doctor-profile .profile-lead { margin: 0 auto 64px; text-align: center; text-wrap: pretty; }
.profile-pair, .profile-asymmetric, .profile-grid, .profile-stack, .profile-case { display: grid; gap: 24px; }
.profile-pair, .profile-case { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-asymmetric { grid-template-columns: minmax(0, 655fr) minmax(0, 461fr); }
.profile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-card, .profile-method, .profile-paper, .profile-case, .profile-quote, .profile-form {
	border-radius: 24px;
	background-color: #fafafa;
}
.profile-stack { grid-template-columns: minmax(0, 1fr); }
.profile-card { padding: 40px; min-width: 0; }
.profile-card > h3 { margin-bottom: 24px; }
.profile-card ul { padding-left: 1.35em; margin: 0; }
.profile-card ul li { list-style: disc outside; }
.profile-card p, .profile-card li, .profile-method p, .profile-paper p { color: #585858; }
.profile-tumors > :first-child :is(p, li), .profile-memberships .profile-card li { color: inherit; }
.profile-card li + li { margin-top: .45em; }
.profile-gradient, .profile-tumors > :first-child { background: var(--gradient); color: white; }
.profile-hero {
	display: grid;
	grid-template-columns: minmax(0, 655fr) minmax(0, 461fr);
	gap: 24px;
	border-radius: 24px;
	overflow: hidden;
	background-color: #dce1f1;
	background-image: var(--hero-image, none);
	background-size: 100% 100%;
	background-position: center;
	background-repeat: no-repeat;
}
.profile-hero-copy { align-self: center; padding: 52px 0 52px 52px; min-width: 0; }
.profile-hero-copy > * + * { margin-top: 32px; }
.profile-hero-copy .profile-role { font-size: 18px; line-height: 24px; margin-top: 8px; max-width: 560px; }
.profile-hero-copy .profile-summary { color: var(--blue); font-weight: 500; line-height: 1.2; margin-top: 24px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin-bottom: 0; }
.profile-badges li { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 120px; border-radius: 12px; background: rgb(255 255 255 / 68%); padding: 12px; font-size: 18px; line-height: 24px; }
.profile-badges li:only-child { flex: 0 1 auto; min-width: 150px; }
.profile-badges strong { color: var(--blue); font-size: 42px; line-height: 50px; font-weight: 500; }
.profile-badges img { width: auto; height: 50px; object-fit: contain; object-position: left; align-self: start; }
.profile-button, .profile-fields button { display: inline-block; border: 0; border-radius: 12px; padding: 13px 20px; font: inherit; line-height: 32px; text-align: center; text-decoration: none; cursor: pointer; }
.doctor-profile .profile-button { background-color: var(--blue); color: white; }
.doctor-profile .profile-button:hover { background-color: var(--accent); color: white; }
.profile-hero .profile-button { width: 100%; }
.doctor-profile .profile-note { margin-top: 16px; font-size: 15px; line-height: 22px; color: var(--muted); }
.profile-portrait { align-self: stretch; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center bottom; }
.profile-portrait-photo { object-fit: cover; object-position: 50% 22%; }
.profile-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 clamp(24px, 4.7vw, 68px); padding: 20px 16px; margin: 32px 0 64px; background: white; border-radius: 12px; }
.profile-nav a { position: relative; color: var(--ink); font-size: 18px; line-height: 24px; font-weight: 500; text-decoration: none; }
.profile-nav a + a::before {
	content: "";
	position: absolute;
	inset-inline-start: calc(clamp(24px, 4.7vw, 68px) / -2);
	inset-block-start: 50%;
	width: 1px;
	height: 24px;
	transform: translate(-50%, -50%);
	background: #9c9c9c;
	pointer-events: none;
}
@media (max-width: 1050px) {
	.profile-nav a + a::before { display: none; }
}
.profile-nav a:hover, .profile-nav a:focus-visible { color: var(--accent); text-decoration: underline; }
.profile-about { align-items: stretch; }
.profile-prose p + p { margin-top: 1.15em; }
.profile-about-photo { width: 100%; height: 100%; max-height: 720px; object-fit: cover; border-radius: 24px; }
.profile-principles { align-items: start; }
.profile-quote { padding: 40px; }
.profile-quote blockquote { font-size: 42px; line-height: 1.19; font-weight: 500; }
.profile-quote blockquote::before {
	content: "";
	display: block;
	width: 52.32px;
	height: 40px;
	margin-bottom: 32px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52.32 40'%3E%3Cpath fill='%23fff' d='M0 40V28C0 17 5 7 13 0l8 5c-4.5 6.8-7 13.5-7 21v14zm30 0V28C30 17 35 7 43 0l8 5c-4.5 6.8-7 13.5-7 21v14z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.profile-quote figcaption { display: flex; gap: 24px; align-items: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgb(255 255 255 / 50%); }
.profile-quote figcaption img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; background: #e8eaf2; }
.profile-quote figcaption > div { min-width: 0; }
.profile-quote figcaption strong { display: block; font-weight: 500; }
.profile-quote figcaption small { display: block; margin-top: 8px; font-size: 18px; line-height: 24px; }
.profile-principle { min-height: 304px; }
.profile-principle > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.profile-principle h3 { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.profile-principle img { width: 72px; height: 72px; flex: none; }
.profile-stats { padding: 48px 56px; border-radius: 36px; }
.profile-stats > h2 { margin-bottom: 48px; }
.profile-stats dt { color: var(--blue); font-size: 44px; line-height: 1.1; font-weight: 500; }
.profile-stats dd { color: var(--ink); margin-top: 20px; border-top: 1px solid #a8a8a8; padding-top: 20px; }
.profile-tumors > :last-child:nth-child(odd), .profile-memberships > :only-child { grid-column: 1 / -1; }
.profile-tumors .profile-card:not(:first-child) h3 { color: var(--blue); }
.profile-method { display: flex; flex-direction: column; padding: 4px; min-width: 0; }
.profile-method > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.profile-method > div { flex: 1; display: flex; flex-direction: column; padding: 16px; gap: 12px; }
.profile-method h3 { font-size: 23px; line-height: 1.2; hyphens: auto; }
.profile-method p { font-size: 18px; line-height: 24px; }
.profile-method a { display: block; padding: 12px 6px; background: white; border-radius: 10px; text-align: center; text-decoration: none; color: var(--ink); font-size: 18px; margin-top: auto; }
.profile-method a:hover { color: var(--accent); text-decoration: underline; }
.profile-indications .profile-prose img { border-radius: 24px; width: 100%; margin-bottom: 32px; }
.profile-indications .profile-card { padding: 32px; }
.profile-indications .profile-card h3 { color: var(--blue); font-size: 24px; line-height: 32px; font-weight: 700; }
.profile-indications ul { list-style: none; padding-left: 0; font-size: 18px; line-height: 24px; }
.profile-indications .profile-card li { list-style: none; position: relative; padding-left: 32px; }
.profile-indications li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	width: 24px;
	height: 24px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 12.5 4.5 4 6.5-9m-4 7.5 2 1.5 7-9' fill='none' stroke='%237786b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.profile-indications li + li { margin-top: 12px; }
.profile-case-slider-body { position: relative; }
.profile-case-slider .swiper { border-radius: 24px; }
.profile-case-slider button.swiper-button-disabled { opacity: .35; cursor: default; }
.profile-case-slider .sw-button-prev, .profile-case-slider .sw-button-next { border: 0; }
.profile-case-slider .swiper-pagination {
	position: static;
	margin-top: 20px;
	--swiper-pagination-color: var(--blue);
}
.profile-case { padding: 56px; gap: 32px 24px; }
.profile-case-heading { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.profile-case-heading h3 { flex: 1; font-size: 36px; }
.profile-case-heading a { text-decoration: none; color: inherit; }
.profile-case-heading a:hover { text-decoration: underline; }
.profile-case-patient { font-weight: 700; }
.profile-case-diagnosis { color: var(--blue); font-size: 24px; line-height: 32px; }
.profile-case-diagnosis span { text-decoration: underline; }
.profile-case-photo { display: block; position: relative; align-self: start; overflow: hidden; border-radius: 20px; }
.profile-case-photo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.profile-case-photo .ivf_shell { aspect-ratio: 1.5; }
.profile-case-photo .ivf_shell img { object-fit: cover; }
.profile-case-photo .ivf_shell iframe { border: 0; }
.profile-case-photo .ivf_shell::before, .profile-case-photo .ivf_shell::after { pointer-events: none; }
.profile-video-play { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; }
.doctor-profile .profile-video-play:focus-visible { outline-offset: -4px; }
.profile-case-photo:not(.is-playing) iframe, .profile-case-photo.is-playing .profile-video-play { visibility: hidden; }
.profile-case-details { display: grid; gap: 16px; }
.profile-case-details > div, .profile-case-home { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px; color: white; border-radius: 16px; background: linear-gradient(125deg,#8271aa,#9d86b2); }
.profile-case-details > div + div { background: linear-gradient(125deg,#4f9290,#78a8a8); }
.profile-case-home { background: var(--gradient); }
.profile-case h4 { font-size: 30px; }
.profile-case-details p, .profile-case-home p { font-size: 24px; line-height: 1.35; }
.profile-action { text-align: center; margin-top: 48px; }
.profile-paper { padding: 32px 40px; display: flex; }
.profile-paper:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; grid-column: 1/-1; padding: 20px; }
.profile-paper img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.profile-paper > div { min-width: 0; display: flex; flex-direction: column; align-items: start; gap: 12px; }
.profile-paper h3 { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.profile-paper:not(:first-child) h3 { font-size: 24px; line-height: 28px; font-weight: 500; }
.profile-paper small { font-size: 18px; line-height: 24px; color: #9c9c9c; }
.profile-paper a { margin-top: auto; padding-top: 12px; }
.profile-paper a, .profile-practice a { text-decoration: underline; }
.profile-paper a { color: var(--blue); }
.profile-practice a { color: var(--accent); }
.profile-career { display: grid; padding: 0; margin: 0; list-style: none; }
.profile-career li { display: grid; grid-column: 1/-1; grid-template-columns: subgrid; }
.profile-career { grid-template-columns: fit-content(27%) minmax(0,1fr); }
.profile-career strong { padding: 0 24px 20px 0; color: var(--accent); font-weight: 500; text-align: right; }
.profile-career p { position: relative; border-left: 2px solid #b6bfdc; padding: 0 0 20px 24px; }
.profile-career p::before { position: absolute; top: .5em; left: -5px; content: ""; border-radius: 50%; width: 8px; height: 8px; background: var(--blue); }
.profile-career li:last-child > * { padding-bottom: 0; }
.profile-practice img { width: 100%; aspect-ratio: 267/182; object-fit: cover; margin-bottom: 20px; border-radius: 20px; }
.profile-memberships .profile-card { background: #816ba0 url('/assets/img/doctors/profiles/shared/membership-1.webp') center/cover; color: white; }
.profile-memberships .profile-card h3 { font-size: 30px; line-height: 36px; font-weight: 500; }
.profile-memberships li strong { font-weight: 700; }
.profile-memberships .profile-card:nth-child(even) { background: #488d89 url('/assets/img/doctors/profiles/shared/membership-2.webp') center/cover; }
.profile-form { padding: 56px; color: white; background: var(--blue); }
.profile-form h2 { margin-bottom: 24px; }
.profile-form form { margin-top: 48px; }
.profile-form small { display: block; margin: 12px auto 0; font-size: 16px; line-height: 24px; text-align: center; }
.profile-form small a { color: inherit; text-decoration: underline; }
.profile-form-inline { margin-top: 64px; }
.profile-form-inline h2 { text-align: left; max-width: 850px; }
.profile-fields { display: grid; gap: 24px; }
.profile-form-inline .profile-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
.profile-fields label { position: relative; }
.profile-fields input { display: block; width: 100%; border: 0; border-radius: 12px; padding: 16px; height: 58px; background: rgb(255 255 255 / 19%); color: white; font: inherit; font-size: 20px; }
.profile-fields input::placeholder { color: #fafafa; opacity: 1; }
.profile-fields button { color: var(--ink); background: white; }
.profile-fields button:hover { background: #edf0fb; }
.profile-fields .form_notice { padding: 6px; background: white; color: #a12f2f; border-radius: 6px; font-size: 14px; line-height: 1.3; }
.profile-form-final { padding-block: 120px; text-align: center; background: linear-gradient(rgb(0 0 0 / 60%),rgb(0 0 0 / 60%)), url('/assets/img/doctors/profiles/shared/appointment.webp') center/cover; }
.profile-form-final h2 { margin-bottom: 16px; }
.profile-form-final form { max-width: 558px; margin: 32px auto 0; }
.profile-form-final > p { max-width: 930px; margin-inline: auto; }
.doctor-profile > .doc_cards .container { max-width: none; width: auto; }
.profile-practice small { display: block; margin-top: 8px; font-size: 16px; line-height: 1.4; color: var(--muted); }
@media (min-width: 768px) {
	.profile-tumors:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6,minmax(0,1fr)); }
	.profile-tumors:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
	.profile-tumors:has(> :nth-child(5):last-child) > :nth-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 1050px) {
	.profile-hero-copy { padding: 32px 0 32px 32px; }
	.profile-badges, .profile-hero { gap: 12px; }
	.profile-badges li { font-size: 16px; line-height: 21px; }
	.profile-card, .profile-quote, .profile-case, .profile-form, .profile-stats { padding: 32px; }
	.profile-principle { min-height: auto; }
	.profile-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
	.profile-quote blockquote { font-size: 34px; }
	.profile-quote figcaption img { width: 84px; height: 84px; }
	.profile-case-heading h3 { font-size: 30px; }
}
@media (max-width: 767px) {
	.doctor-profile { width: calc(100% - 32px); font-size: 18px; line-height: 1.45; }
	.doctor-profile h1 { font-size: 34px; }
	.doctor-profile h2 { font-size: 30px; }
	.doctor-profile h3 { font-size: 23px; }
	.doctor-profile h4 { font-size: 20px; }
	.profile-section > h2, .doctor-profile .profile-lead { margin-bottom: 24px; }
	.profile-section > h2:has(+ .profile-lead) { margin-bottom: 16px; }
	.profile-pair, .profile-asymmetric, .profile-grid, .profile-stack, .profile-case { gap: 16px; }
	.profile-pair, .profile-asymmetric, .profile-case, .profile-paper:first-child { grid-template-columns: minmax(0,1fr); }
	.profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.profile-hero {
		display: flex;
		flex-direction: column-reverse;
		gap: 0;
		background-size: auto clamp(250px,65vw,370px);
		background-position: right top;
	}
	.profile-portrait { height: clamp(250px,65vw,370px); object-fit: contain; }
	.profile-portrait-photo { object-fit: cover; object-position: 50% 20%; }
	.profile-hero-copy { padding: 24px; width: 100%; background: rgb(244 246 252 / 55%); }
	.profile-hero-copy > * + *, .profile-hero-copy .profile-summary { margin-top: 16px; }
	.profile-badges { gap: 8px; }
	.profile-badges li { padding: 8px; min-height: 90px; font-size: 14px; line-height: 1.3; hyphens: auto; }
	.profile-badges strong { font-size: 30px; line-height: 1.2; }
	.profile-badges img { height: 36px; }
	.profile-nav { margin: 16px 0 32px; justify-content: flex-start; gap: 8px 16px; padding: 12px 16px; }
	.profile-nav a { font-size: 15px; line-height: 24px; padding: 0; }
	.profile-about-photo { height: auto; max-height: 440px; }
	.profile-card, .profile-quote, .profile-case, .profile-stats, .profile-form, .profile-indications .profile-card, .profile-paper { padding: 24px; border-radius: 18px; }
	.profile-principle img { width: 52px; height: 52px; }
	.profile-quote blockquote { font-size: 29px; }
	.profile-quote figcaption { margin-top: 24px; padding-top: 20px; gap: 16px; }
	.profile-quote figcaption small { font-size: 15px; line-height: 20px; }
	.profile-stats dt { font-size: 34px; }
	.profile-stats dd { margin-top: 12px; padding-top: 12px; }
	.profile-method > div { padding: 10px; }
	.profile-method h3 { font-size: 19px; }
	.profile-method p, .profile-method a { font-size: 16px; line-height: 1.35; }
	.profile-case-slider .sw-button-prev, .profile-case-slider .sw-button-next { width: 36px; height: 36px; margin-top: -18px; }
	.profile-case-slider .sw-button-prev { left: -10px; }
	.profile-case-slider .sw-button-next { right: -10px; }
	.profile-memberships .profile-card h3 { font-size: 23px; line-height: 28px; }
	.profile-case-heading { gap: 6px; }
	.profile-case-heading h3 { margin-bottom: 8px; }
	.profile-case-home, .profile-case-details > div { padding: 18px; gap: 8px; }
	.profile-case h4 { font-size: 20px; }
	.profile-case-details p, .profile-case-home p { font-size: 17px; }
	.profile-case-diagnosis { font-size: 20px; line-height: 28px; }
	.profile-career strong { padding-right: 12px; font-size: 15px; }
	.profile-career p { padding-left: 16px; }
	.profile-practice img { border-radius: 12px; margin-bottom: 10px; }
	.profile-form-inline { margin-top: 32px; }
	.profile-form-inline .profile-fields { grid-template-columns: minmax(0,1fr); }
	.profile-form form { margin-top: 24px; }
	.profile-fields { gap: 12px; }
	.profile-form small { font-size: 14px; line-height: 1.4; }
}
@media (max-width: 440px) {
	.profile-grid:not(.profile-practice) { grid-template-columns: minmax(0,1fr); }
	.profile-hero-copy { padding: 18px; }
	.profile-badges { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
	.profile-badges li:has(strong) { grid-column: 1/-1; flex-direction: row; align-items: center; justify-content: start; min-height: 0; }
	.profile-badges li { min-height: 92px; }
	.profile-principle > div { align-items: start; }
	.profile-principle img { width: 44px; height: 44px; }
}
