.doctor-page { background: var(--color-background-light-grey); }
.doctor-profile { padding: 124px 0 48px; color: var(--color-text-deep-blue); background: radial-gradient(ellipse at 80% 0, #b5cff0 0, transparent 40%), radial-gradient(ellipse at 0 5%, #ece6e5 0, transparent 28%), var(--color-background-light-grey); font-size: 16px; line-height: 1.55; }
.doctor-profile .container { width: min(1200px, calc(100% - 64px)); }
.doctor-profile__container { display: flex; flex-direction: column; gap: 28px; }
.doctor-profile .breadcrumbs { align-self: flex-start; max-width: 100%; margin: 0; padding: 18px 24px; border-radius: 32px; background: #fff; }
.doctor-profile .breadcrumbs ol { flex-wrap: wrap; gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; white-space: normal; overflow: visible; }
.doctor-profile .breadcrumbs li, .doctor-profile .breadcrumbs a, .doctor-profile .breadcrumbs li[aria-current="page"] { color: var(--color-text-grey); }
.doctor-profile .breadcrumbs a { color: #394bbe; }
.doctor-profile .breadcrumbs li { overflow-wrap: anywhere; white-space: normal; }
.doctor-profile .breadcrumbs li:first-child::before { display: none; }
.doctor-profile .breadcrumbs li + li::before { color: var(--color-text-grey); }
.doctor-profile h1 { color: var(--color-text-deep-blue); font-size: clamp(40px, 3.35vw, 48px); line-height: 1.08; overflow-wrap: anywhere; }
.doctor-profile h2 { display: flex; align-items: flex-start; gap: 12px; font-size: 32px; line-height: 1.18; overflow-wrap: anywhere; }
.doctor-profile h2 img { flex: 0 0 24px; width: 24px; height: 28px; object-fit: contain; }
.doctor-profile h3 { font-size: 18px; line-height: 1.35; font-weight: 500; }
.doctor-profile__hero, .doctor-profile__panel { padding: 32px; border: 1px solid var(--color-stroke-blue, #bec9e3); border-radius: 24px; background: #fff; box-shadow: 0 8px 28px #000b330d; }
.doctor-profile__hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: 'identity portrait' 'specialty portrait' 'call portrait'; gap: 22px 40px; background: linear-gradient(120deg, #fff, #edf3ff 85%, #f3eeeb); }
.doctor-profile__identity { grid-area: identity; min-width: 0; }
.doctor-profile__position { margin: 16px 0 0; }
.doctor-profile__position dt, .doctor-profile__specialty > span, .doctor-profile__muted { color: var(--color-text-grey); }
.doctor-profile__position dd { margin: 4px 0 0; }
.doctor-profile__portrait { grid-area: portrait; align-self: center; margin: 0; border-radius: 18px; overflow: hidden; background: #f3f0ee; }
.doctor-profile__portrait img { display: block; width: 100%; height: 330px; object-fit: contain; object-position: center top; }
.doctor-profile__specialty { grid-area: specialty; min-width: 0; }
.doctor-profile__specialty strong { display: block; margin-top: 4px; font-weight: 600; }
.doctor-profile__call { grid-area: call; }
.doctor-profile__call-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.doctor-profile__phone { font-weight: 600; white-space: nowrap; }
.doctor-profile__call-button { gap: 10px; min-height: 48px; color: #fff; background: var(--color-background-red); font-size: 16px; }
.doctor-profile__call-button img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.doctor-profile__call .doctor-profile__muted { margin-top: 10px; }
.doctor-profile__nav { display: flex; gap: 8px; overflow-x: auto; padding: 6px 12px; border: 1px solid var(--color-stroke-blue, #bec9e3); border-radius: 16px; background: #ffffffd9; }
.doctor-profile__nav a { flex-shrink: 0; padding: 10px 12px; border-radius: 8px; color: #394bbe; }
.doctor-profile__nav a:hover { background: var(--color-background-light-blue); }
.doctor-profile__panel { scroll-margin-top: 110px; }
.doctor-profile__panel > h2 { margin-bottom: 28px; }
.doctor-profile__about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); gap: 32px; align-items: start; }
.doctor-profile__about-text > * + * { margin-top: 16px; }
.doctor-profile__directions { padding: 24px; border-radius: 16px; background: var(--color-background-light-blue); }
.doctor-profile__directions ul { margin: 14px 0 0; padding-left: 20px; list-style: disc; }
.doctor-profile__directions li + li { margin-top: 10px; }
.doctor-profile__panel--blue { background: #eaf1ff; }
.doctor-profile__qualification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.doctor-profile__qualification { padding: 24px; border-radius: 16px; background: #fff; min-width: 0; }
.doctor-profile__qualification h3 { margin-bottom: 18px; }
.doctor-profile__record { margin: 0; }
.doctor-profile__record + .doctor-profile__record { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--color-stroke-blue, #bec9e3); }
.doctor-profile__record > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.doctor-profile__record > div + div { margin-top: 14px; }
.doctor-profile__record dt { color: var(--color-text-grey); }
.doctor-profile__record dd { margin: 0; overflow-wrap: anywhere; }
.doctor-profile__courses { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--color-stroke-blue, #bec9e3); }
.doctor-profile__courses summary { cursor: pointer; padding: 8px 0; color: #394bbe; }
.doctor-profile__courses[open] summary { margin-bottom: 16px; }
.doctor-profile__panel--workplace { background: #f6fbff; }
.doctor-profile__workplace-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; }
.doctor-profile__work-group + .doctor-profile__work-group { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-stroke-blue, #bec9e3); }
.doctor-profile__work-group p, .doctor-profile__work-group .doctor-profile__record { margin: 10px 0; }
.doctor-profile__text-link { color: #394bbe; text-decoration: underline; text-underline-offset: 3px; }
.doctor-profile__schedule-button { margin-top: 18px; border: 1px solid #5b6de8; background: #fff; color: #394bbe; font-size: 16px; }
.doctor-profile__map { min-width: 0; }
.doctor-profile__map iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 16px; margin-bottom: 12px; }
.doctor-profile__section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.doctor-profile__colleagues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doctor-profile__colleague { min-height: 0; padding: 8px 8px 24px; border-radius: 12px; }
.doctor-profile__colleague img { height: 280px; object-fit: contain; object-position: center top; background: #f3f0ee; }
.doctor-profile__colleague h3 { margin: 16px 12px 0; font-size: 22px; }
.doctor-profile__colleague p { margin: 8px 12px 0; line-height: 1.45; }
.doctor-profile a:focus-visible, .doctor-profile summary:focus-visible { outline: 3px solid #394bbe; outline-offset: 3px; }
@media (max-width: 1024px) {
  .doctor-profile__hero { grid-template-columns: minmax(0, 1fr) 240px; gap: 20px 28px; }
  .doctor-profile__portrait img { height: 290px; }
  .doctor-profile__hero, .doctor-profile__panel { padding: 24px; }
  .doctor-profile__colleague img { height: 240px; }
}
@media (max-width: 720px) {
  .doctor-profile { padding: 104px 0 32px; }
  .doctor-profile .container { width: calc(100% - 32px); }
  .doctor-profile__container { gap: 20px; }
  .doctor-profile .breadcrumbs { padding: 14px 16px; }
  .doctor-profile h1 { font-size: 30px; line-height: 1.12; }
  .doctor-profile h2 { font-size: 26px; gap: 10px; }
  .doctor-profile__hero, .doctor-profile__panel { padding: 20px 16px; border-radius: 18px; }
  .doctor-profile__hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'identity' 'portrait' 'specialty' 'call'; gap: 16px; }
  .doctor-profile__portrait { width: 144px; justify-self: center; }
  .doctor-profile__portrait img { height: 160px; }
  .doctor-profile__position { margin-top: 12px; }
  .doctor-profile__call-actions { flex-direction: column; gap: 12px; align-items: stretch; }
  .doctor-profile__phone { text-align: center; }
  .doctor-profile__call-button { width: 100%; padding-inline: 10px; }
  .doctor-profile__nav { gap: 0; padding: 4px; }
  .doctor-profile__nav a { padding: 10px; }
  .doctor-profile__about-grid, .doctor-profile__qualification-grid, .doctor-profile__workplace-grid, .doctor-profile__colleagues { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .doctor-profile__panel > h2 { margin-bottom: 22px; }
  .doctor-profile__directions, .doctor-profile__qualification { padding: 18px 16px; }
  .doctor-profile__record > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .doctor-profile__map iframe { height: 240px; }
  .doctor-profile__colleague img { height: 300px; }
  .doctor-profile__schedule-button { width: 100%; padding-inline: 8px; }
}

.doctor-profile__topics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; padding: 0; }
.doctor-profile__topics li { min-width: 0; padding: 20px; border-radius: 16px; background: #fff; overflow-wrap: anywhere; }
@media(max-width:720px) { .doctor-profile__topics { grid-template-columns: minmax(0,1fr); } }
