/* 의료진 소개 — 머리 · 이름 칩 · 카드 격자 · 상담 띠 · 프로필 서랍 */

/* 피부과 틀은 본문 폭을 내용에 맞추므로, 본문이 내용 폭만큼 넓어지지 않게 막는다 */
.doctors-page { min-width: 0; max-width: 100%; color: #16181d; background: #fff; }
.doctors-page [hidden] { display: none !important; }

/* 머리 */
.doc-hero {
  max-width: 1200px;
  margin: 0 auto;
  /* 위 여백은 고정 머리줄 높이에 시안의 96px 를 더한 값이다 */
  padding: 168px 24px 56px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
}
.doc-hero__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 0; }
.doc-hero__eyebrow {
  margin-bottom: 20px;
  font-family: Inter, 'Noto Sans KR', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #6b5992;
}
.doc-hero__slogan,
.doc-hero__title {
  margin: 0;
  font-size: 44px;
  line-height: 1.32;
  letter-spacing: -1.4px;
  word-break: keep-all;
}
.doc-hero__slogan { font-weight: 300; }
.doc-hero__title { font-weight: 700; }
.doc-hero__lead { margin: 20px 0 0; font-size: 16px; line-height: 1.75; color: #555a64; }
.doc-hero__count { margin: 0; padding-bottom: 6px; display: flex; align-items: baseline; gap: 10px; }
.doc-hero__count strong {
  font-family: Inter, 'Noto Sans KR', sans-serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2px;
}
.doc-hero__count span { font-size: 15px; color: #555a64; }

/* 이름 칩 — 스크롤해도 위에 붙어 다닌다 */
.doc-chips {
  position: sticky;
  top: var(--doc-sticky-top, 0px);
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #eceef1;
  border-bottom: 1px solid #eceef1;
}
.doc-chips__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* PC 는 오른쪽 고정 퀵메뉴(폭 84, 러시아어 102) 앞에서 줄을 바꾼다. 퀵메뉴를 감추는 피부과는 그대로 */
@media (min-width: 769px) {
  .doc-chips__inner { padding-right: max(24px, calc(92px - max(0px, (100% - 1200px) / 2))); }
  html[lang="ru"] .doc-chips__inner { padding-right: max(24px, calc(110px - max(0px, (100% - 1200px) / 2))); }
  .derma-layout .doc-chips__inner { padding-right: 24px; }
}
.doc-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e1e4e8;
  background: #fff;
  font-size: 14px;
  color: #3a3d45;
  text-decoration: none;
  white-space: nowrap;
}
.doc-chip:hover { border-color: #8c79b3; color: #16181d; }

/* 카드 격자 */
.doc-list { max-width: 1200px; margin: 0 auto; padding: 56px 24px 96px; box-sizing: border-box; }
.doc-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 56px 24px;
}
.doc-card { display: flex; flex-direction: column; gap: 18px; min-width: 0; scroll-margin-top: 160px; }
.doc-card__photo {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #f1f2f4;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 750 / 776;
}
.doc-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.doc-card:hover .doc-card__photo img { transform: scale(1.03); }
.doc-card__noimg { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 56px; color: #c3c6cc; }
.doc-card__head { display: flex; flex-direction: column; gap: 6px; }
.doc-card .doctor-name { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 400; }
.doc-card .doctor-name strong { font-size: 22px; font-weight: 700; letter-spacing: -0.6px; }
.doc-card .doctor-name span { font-size: 15px; color: #555a64; }
.doc-card .doctor-name-en {
  margin: 0;
  font-family: Inter, 'Noto Sans KR', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  color: #6b707a;
}
.doc-card__hl {
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid #e6e8ec;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-card__hl li { font-size: 14px; line-height: 1.55; color: #3a3d45; overflow-wrap: anywhere; }
.doc-card__more {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #16181d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.doc-card:hover .doc-card__more { color: #6b5992; }
.doc-card__photo:focus-visible, .doc-card__more:focus-visible, .doc-chip:focus-visible {
  outline: 2px solid #6b5992;
  outline-offset: 2px;
}

/* 상담 띠 */
.doc-cta { background: #f6f6f8; }
.doc-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.doc-cta__text { display: flex; flex-direction: column; gap: 10px; }
.doc-cta__text h2 { margin: 0; font-size: 28px; font-weight: 300; letter-spacing: -0.8px; word-break: keep-all; }
.doc-cta__text h2 strong { font-weight: 700; }
.doc-cta__text p { margin: 0; font-size: 15px; color: #555a64; }
.doc-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-cta__btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid #16181d;
  border-radius: 2px;
  background: #16181d;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.doc-cta__btn.is-line { background: #fff; border-color: #c9ccd2; color: #16181d; }

/* 프로필 서랍 */
.doc-drawer { position: fixed; inset: 0; z-index: 1100; display: flex; justify-content: flex-end; }
.doc-drawer__scrim { position: absolute; inset: 0; border: none; background: rgba(22, 24, 29, 0.45); cursor: pointer; }
.doc-drawer__panel {
  position: relative;
  width: min(560px, 100%);
  height: 100%;
  background: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.doc-drawer__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 28px;
  background: #fff;
  border-bottom: 1px solid #eceef1;
}
.doc-drawer__pos { font-family: Inter, 'Noto Sans KR', sans-serif; font-size: 12px; letter-spacing: 1.5px; color: #6b707a; }
.doc-drawer__nav { display: flex; gap: 4px; }
.doc-drawer__nav button {
  width: 44px;
  height: 44px;
  border: 1px solid #e1e4e8;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  color: #16181d;
  cursor: pointer;
}
.doc-drawer__nav button.is-close { border: none; font-size: 18px; }
.doc-drawer__body { padding: 28px; display: flex; flex-direction: column; gap: 28px; }
.doc-drawer__head { display: flex; gap: 20px; align-items: flex-end; }
.doc-drawer__photo {
  width: 140px;
  flex: 0 0 140px;
  aspect-ratio: 750 / 776;
  border-radius: 4px;
  background: #f1f2f4;
  object-fit: cover;
}
.doc-drawer__name { display: flex; flex-direction: column; gap: 6px; }
.doc-drawer__name .doctor-name { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 400; }
.doc-drawer__name .doctor-name strong { font-size: 30px; letter-spacing: -0.8px; }
.doc-drawer__name .doctor-name span { font-size: 16px; color: #555a64; }
.doc-drawer__name .doctor-name-en { margin: 0; font-family: Inter, 'Noto Sans KR', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 1.6px; color: #6b707a; }
.doc-drawer__body section { display: flex; flex-direction: column; gap: 12px; }
.doc-drawer__body h3 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid #16181d; font-size: 14px; font-weight: 700; letter-spacing: -0.2px; }
.doc-drawer__body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.doc-drawer__body li { font-size: 15px; line-height: 1.6; color: #3a3d45; overflow-wrap: anywhere; }
.doc-drawer__reserve {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: none;
  border-radius: 2px;
  background: #16181d;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* 768 이하는 surgery/header.css 가 html · body 에 overflow-x: hidden 을 걸어 sticky 가 듣지 않는다 — 붙이지 않고 둔다 */
@media (max-width: 768px) {
  .doc-chips { position: static; }
}

@media (max-width: 767px) {
  .doc-hero { padding: 136px 16px 32px; gap: 20px; }
  .doc-hero__eyebrow { margin-bottom: 12px; font-size: 12px; }
  .doc-hero__slogan, .doc-hero__title { font-size: 28px; letter-spacing: -0.8px; }
  .doc-hero__lead { margin-top: 12px; font-size: 15px; }
  .doc-hero__count strong { font-size: 40px; }
  .doc-chips__inner { padding: 10px 16px; }
  .doc-chip { min-height: 36px; padding: 0 14px; font-size: 13px; }
  .doc-list { padding: 32px 16px 64px; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .doc-card { gap: 12px; }
  .doc-card .doctor-name strong { font-size: 18px; }
  .doc-card .doctor-name span { font-size: 13px; }
  .doc-card__hl { padding-top: 10px; }
  .doc-card__hl li { font-size: 13px; }
  .doc-cta__inner { padding: 48px 16px; }
  .doc-cta__text h2 { font-size: 22px; }
  .doc-cta__actions { width: 100%; }
  .doc-cta__btn { flex: 1 1 140px; justify-content: center; padding: 0 16px; }
  .doc-drawer__body { padding: 20px 16px; gap: 22px; }
  .doc-drawer__bar { padding: 8px 8px 8px 16px; }
  .doc-drawer__photo { width: 104px; flex-basis: 104px; }
  .doc-drawer__name .doctor-name strong { font-size: 24px; }
}
