/* ============================================================
   본튼튼성모정형외과 — 메인 페이지
   ============================================================ */

/* ---------- 히어로 (인셋 라운드 카드 · 영상 비율 그대로, 오버레이 없음) ---------- */
.hero {
  margin: calc(var(--header-h) + 4px) var(--frame) 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(10, 41, 97, 0.16);
  /* 영상 실화면 비율: 1920x1080 소스에서 상하 레터박스(각 10%) 제외 → 1920x864 (20:9) */
  aspect-ratio: 1920 / 864;
  background: var(--navy-deep);
}
.hero__media,
.hero__media video {
  width: 100%;
  height: 100%;
}
.hero__media video {
  object-fit: cover; /* 카드 비율 = 콘텐츠 비율이라 레터박스만 정확히 크롭됨 */
  display: block;
  /* 비율이 정확히 일치하면 서브픽셀 반올림으로 레터박스 1px이 비칠 수 있어 2% 확대 마진 */
  transform: scale(1.02);
}

/* ---------- 히어로 인트로 (영상 아래 텍스트 블록) ---------- */
.hero-intro {
  background: linear-gradient(0deg, #e8ecfd, transparent);
  padding: clamp(40px, 5vh, 64px) 0 clamp(40px, 5vh, 56px);
  text-align: center;
}
.hero__eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.hero__pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero__title em {
  font-style: normal;
  color: var(--accent-strong);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* 히어로 아래 라이트 티커 스트립 — unit 2개 × -50% 이동으로 이음새 없는 무한 루프 */
.ticker {
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.ticker:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee-unit {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px; /* 루프 경계의 간격 = gap과 동일해야 이음새가 없음 */
  flex: 0 0 auto;
}
.marquee-unit span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--navy);
  /* opacity: 0.75; */
}
.marquee-unit i {
  color: var(--accent);
  font-style: normal;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 핵심 수치 (풀블리드 다크 섹션: 좌 타이틀 + 우 4수치) ---------- */
.stats {
  background:
    linear-gradient(
      115deg,
      rgba(8, 31, 74, 0.96) 0%,
      rgba(8, 31, 74, 0.88) 55%,
      rgba(13, 55, 92, 0.86) 100%
    ),
    url("/assets/img/legacy/view_13.jpg") center 60% / cover no-repeat;
  color: #fff;
  padding: clamp(64px, 7vw, 96px) 0;
}
.stats__band {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.stats__intro h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.4;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats__grid li {
  position: relative;
  text-align: center;
  padding: 10px 12px;
}
.stats__grid li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  height: 68px;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.stats__grid strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 3.6vw, 56px);
  line-height: 1.1;
  color: #fff;
}
.stats__grid strong em {
  font-style: normal;
  font-size: 0.5em;
  color: #7ccdf2;
  margin-left: 2px;
}
.stats__grid p {
  margin-top: 10px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

/* ---------- 부위별 통증클리닉 (센터 활성 캐러셀 — 레퍼런스 clinic_sect) ---------- */
.pain-nav {
  background: var(--paper);
  overflow: hidden;
  --pain-card-w: clamp(320px, 33vw, 500px);
  --pain-ease: cubic-bezier(0.45, 0, 0.15, 1);
  --pain-dur: 0.7s;
}
/* Swiper 트랙도 같은 곡선으로 — 카드 확장과 이동이 한 몸처럼 움직이게 */
.pain-nav__slider .swiper-wrapper {
  transition-timing-function: var(--pain-ease) !important;
}
.pain-nav .sec-head {
  margin-bottom: min(10vw, 72px);
}
.pain-nav__slider {
  /* 레퍼런스(clinic_sect .cont) 방식: 컨테이너 높이를 카드 폭(=100vw/slidesPerView)에
     연동해 활성 카드(140%)가 어느 폭에서도 정확히 들어맞도록 함 → 잘림 없음.
     --pv는 JS slidesPerView와 동일하게 브레이크포인트별로 지정 */
  --pv: 1.3;
  height: calc(100vw / var(--pv) * 1.4);
  cursor: grab;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}
.pain-nav__slider:active {
  cursor: grabbing;
}
/* slidesPerView(JS)와 동일한 브레이크포인트로 --pv 동기화 */
@media (min-width: 500px) {
  .pain-nav__slider {
    --pv: 1.8;
  }
}
@media (min-width: 768px) {
  .pain-nav__slider {
    --pv: 2.2;
  }
}
@media (min-width: 1000px) {
  .pain-nav__slider {
    --pv: 2.6;
  }
}
@media (min-width: 1240px) {
  .pain-nav__slider {
    --pv: 3;
  }
}
@media (min-width: 1600px) {
  .pain-nav__slider {
    --pv: 4;
  }
}
@media (min-width: 2000px) {
  .pain-nav__slider {
    --pv: 5;
  }
}
.pain-nav__slider .swiper-wrapper {
  align-items: flex-start;
}
.pain-nav__slider .swiper-slide.pain-card {
  /* 폭은 Swiper가 slidesPerView로 인라인 지정 (JS 미로드 시 폴백으로 var 사용) */
  width: var(--pain-card-w);
  height: auto;
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: none;
}
.pain-card a {
  display: block;
  position: relative;
}
.pain-card__img {
  display: block;
  position: relative;
  padding-top: 100%;
  transform-origin: center top;
  transition: padding-top var(--pain-dur) var(--pain-ease);
}
.pain-card__img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 41, 97, 0.14);
  transition: background var(--pain-dur) var(--pain-ease);
}
.pain-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.pain-card a:hover .pain-card__img img {
  transform: scale(1.05);
}
/* 하단 텍스트 오버레이 */
.pain-card__txt {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  padding: 72px 20px 30px;
  text-align: center;
  color: #fff;
  transition: padding-bottom var(--pain-dur) var(--pain-ease);
}
.pain-card__txt::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: 340px;
  transform: translateY(100%);
  background: linear-gradient(
    180deg,
    transparent 42%,
    rgba(10, 41, 97, 0.3) 68%,
    rgba(10, 41, 97, 0.72) 93%
  );
  transition: transform var(--pain-dur) var(--pain-ease);
}
.pain-card__txt .tit {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.2vw, 33px);
  line-height: 1.4;
  text-shadow: 0 1px 14px rgba(9, 20, 44, 0.5);
  transform: scale(0.76);
  transform-origin: center bottom;
  transition: transform var(--pain-dur) var(--pain-ease);
  will-change: transform;
}
.pain-card__txt .tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  opacity: 0;
  transition: opacity 0s;
}
.pain-card__txt .tags i {
  font-style: normal;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}
/* 센터(활성) 카드: 세로 확장 + 스크림 상승 + 태그 등장 */
.pain-card.swiper-slide-active .pain-card__img,
.pain-card.swiper-slide-duplicate-active .pain-card__img {
  padding-top: 140%;
}
.pain-card.swiper-slide-active .pain-card__img::before,
.pain-card.swiper-slide-duplicate-active .pain-card__img::before {
  background: rgba(10, 41, 97, 0);
}
.pain-card.swiper-slide-active .pain-card__txt,
.pain-card.swiper-slide-duplicate-active .pain-card__txt {
  padding-bottom: 40px;
}
.pain-card.swiper-slide-active .pain-card__txt::before,
.pain-card.swiper-slide-duplicate-active .pain-card__txt::before {
  transform: none;
}
.pain-card.swiper-slide-active .pain-card__txt .tit,
.pain-card.swiper-slide-duplicate-active .pain-card__txt .tit {
  transform: scale(1);
}
.pain-card.swiper-slide-active .pain-card__txt .tags,
.pain-card.swiper-slide-duplicate-active .pain-card__txt .tags {
  opacity: 1;
  transition: opacity 0.45s ease-in 0.5s;
}
/* 프로그레스바 페이지네이션 */
.pain-nav__paging {
  position: relative;
  width: 180px;
  height: 6px;
  margin: 44px auto 0;
  background: #e4e9f2;
  border-radius: 999px;
  overflow: hidden;
}
.pain-nav__paging .swiper-pagination-progressbar {
  position: absolute;
  inset: 0;
  background: transparent;
}
.pain-nav__paging .swiper-pagination-progressbar-fill {
  background: linear-gradient(90deg, var(--accent), var(--navy));
  border-radius: 999px;
}
.pain-nav.section {
  padding-bottom: min(22vw, 96px);
}

/* ---------- 일상회복 4단계 (에디토리얼 리스트 · 웨이브 텍스처) ---------- */
.process {
  position: relative;
  background: #fff;
}
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/ext/wave-cool.svg") center / cover no-repeat;
  opacity: 0.8;
  pointer-events: none;
}
.process .inner {
  position: relative;
  z-index: 1;
}
.process__wrap {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: clamp(48px, 6vw, 110px);
  align-items: start;
}
.process__head {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.process__head .btn {
  margin-top: 28px;
}
.process__list li {
  display: grid;
  grid-template-columns: 90px 1fr 170px;
  align-items: center;
  gap: clamp(20px, 2.5vw, 44px);
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.process__list li:last-child {
  border-bottom: 1px solid var(--line);
}
.process__list .pnum {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 4.4vw, 80px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(10, 41, 97, 0.28);
  transition:
    color 0.35s,
    -webkit-text-stroke-color 0.35s;
}
.process__list li:hover .pnum {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}
.process__list h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 1.8vw, 32px);
  font-weight: 800;
  color: var(--ink);
}
.process__list .ptxt p {
  font-size: min(4.5vw, 20px);
  color: var(--text-sub);
  line-height: 1.7;
}
.process__list figure {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.process__list figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.process__list li:hover figure img {
  transform: scale(1.05);
}

/* ---------- 진단 시스템 (탭 + 슬라이더) ---------- */
.diag {
  background: var(--paper);
  overflow: hidden;
}
.diag .sec-head h2 .point {
  color: var(--blue);
}
/* 탭 */
.diag__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(16, 27, 51, 0.16);
  /* 탭이 컨테이너를 넘칠 땐(태블릿 등) 페이지 오버플로 대신 가로 스크롤 (활성탭 센터링 JS 있음) */
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  /* 가로 스와이프 시 세로 스크롤 잠금(대각선 흔들림 방지) */
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.diag__tabs::-webkit-scrollbar {
  display: none;
}
.diag__tabs button {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 18px 26px;
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-faint);
  transition: color 0.25s;
}
.diag__tabs button em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--text-faint);
  transition: color 0.25s;
}
.diag__tabs button::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -1px;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}
.diag__tabs button.is-active {
  color: var(--ink);
}
.diag__tabs button.is-active em {
  color: var(--accent-strong);
}
.diag__tabs button.is-active::after {
  transform: scaleX(1);
}
/* 슬라이드 아이템 (Swiper 번들 CSS display:block보다 특이도 높게) */
.diag__slider .swiper-slide.diag__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 60px);
  align-items: center;
  height: auto;
}
.diag__media {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.diag__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.diag__body {
  position: relative;
}
.diag__ghost {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 8vw, 120px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(10, 41, 97, 0.18);
  margin-bottom: 18px;
}
.diag__num {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
}
.diag__body h3 {
  margin-top: 12px;
  font-size: clamp(26px, 2.4vw, 42px);
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-display);
}
.diag__body h3 small {
  display: inline-block;
  margin-left: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-faint);
}
.diag__slogan {
  margin-top: 16px;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 700;
  color: var(--accent-strong);
}
.diag__body > p:not(.diag__slogan) {
  margin-top: 12px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.85;
  color: var(--text-sub);
  font-weight: 500;
  max-width: 600px;
}
.diag__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.diag__more:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---------- 비수술치료 (딥네이비 벤토 그리드) ---------- */
.clinic {
  background: var(--navy-deep);
  color: #fff;
}
.clinic__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.clinic__head h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.3;
}
.clinic__head p {
  margin-top: 18px;
  font-size: clamp(17px, 1.3vw, 20px);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}
.clinic__bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 18px;
}
.bento {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  border-radius: var(--radius-m);
  overflow: hidden;
  padding: 28px 30px;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s;
}
.bento::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg) center / cover no-repeat;
  transition: transform 0.6s var(--ease-out);
}
.bento:hover::after {
  transform: scale(1.06);
}
.bento::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(9, 20, 44, 0.78),
    rgba(9, 20, 44, 0.16) 55%
  );
  transition: background 0.35s;
}
.bento {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.bento:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    var(--shadow-l);
}
.bento__tags i {
  transition: transform 0.35s var(--ease-out);
}
.bento:hover .bento__tags i {
  transform: translateY(-3px);
}
.bento--tall {
  grid-row: span 2;
}
.bento--wide {
  grid-column: 1 / -1;
}
.bento__tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.bento__tags i {
  font-style: normal;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
}
.bento strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 32px);
  font-weight: 800;
}

/* ---------- 진료 철학 (센터 스테이트먼트 · 라이트 그라데이션) ---------- */
.philosophy {
  position: relative;
  background: linear-gradient(to bottom, #fff 0%, #e9eff9 100%);
}
.philosophy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/ext/wave-cool.svg") center / cover no-repeat;
  pointer-events: none;
}
.philosophy .inner {
  position: relative;
  z-index: 1;
}
.statement {
  position: relative;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 44px;
  padding-top: 34px;
}
.statement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--navy));
}
.statement em {
  font-style: normal;
  color: var(--navy);
}
/* 가치 키워드 칩 (스테이트먼트 보조 한 줄) */
/* 링크 없는 꾸밈 요소 — 알약(버튼) 대신 배경 없는 키워드 라인 + 액센트 다이아몬드 구분자 */
.values__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 0;
  row-gap: 16px;
  margin-top: 40px;
}
.values__chips li {
  display: inline-flex;
  align-items: center;
  gap: clamp(26px, 3vw, 40px);
  padding-left: clamp(26px, 3vw, 40px);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 23px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-sub);
}
.values__chips li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 1px;
  flex: 0 0 auto;
}
.values__chips li:first-child {
  padding-left: 0;
}
.values__chips li:first-child::before {
  display: none;
}

/* ---------- 의료진 (아바타 탭 + 센터 피크 슬라이더 · 인원수 무관) ---------- */
.doctors {
  background: #fff;
  overflow: hidden;
}
.doctors__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
/* 아바타 탭 */
.doctors__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.doctors__tabs button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 22px 9px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s var(--ease-out);
}
.doctors__tabs button:hover {
  transform: translateY(-2px);
  border-color: #b9cdea;
}
.doctors__tabs .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(175deg, #d9ecfb, #eef4fb);
  flex: 0 0 auto;
}
.doctors__tabs .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.doctors__tabs .nm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-sub);
  transition: color 0.3s;
}
.doctors__tabs button.is-active {
  border-color: var(--navy);
  background: var(--navy);
}
.doctors__tabs button.is-active .nm {
  color: #fff;
}
.doctors__tabs button.is-active .avatar {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}
/* 슬라이드 패널 (센터 활성 + 양옆 피크) */
.doctors__slider {
  overflow: visible;
  cursor: grab;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}
.doctors__slider:active {
  cursor: grabbing;
}
.doctors__slider .swiper-slide.doc-slide {
  position: relative;
  width: min(1160px, 78vw);
  height: clamp(460px, 40vw, 560px);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #eef5fc;
  border: 1px solid #e4edf8;
  transform: scale(0.94);
  opacity: 0.5;
  filter: saturate(0.7);
  transition:
    transform 0.7s cubic-bezier(0.45, 0, 0.15, 1),
    opacity 0.7s,
    filter 0.7s;
}
.doctors__slider .swiper-slide-active.doc-slide,
.doctors__slider .swiper-slide-duplicate-active.doc-slide {
  transform: scale(1);
  opacity: 1;
  filter: none;
}
/* 사이드 카드에선 정보 숨김 (사진·아치만 피크) */
.doc-slide .doc-slide__info {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.45, 0, 0.15, 1) 0.15s,
    transform 0.6s cubic-bezier(0.45, 0, 0.15, 1) 0.15s;
}
.doctors__slider .swiper-slide-active .doc-slide__info,
.doctors__slider .swiper-slide-duplicate-active .doc-slide__info {
  opacity: 1;
  transform: none;
}
.doc-slide__arch {
  position: absolute;
  bottom: 0;
  right: clamp(24px, 6vw, 110px);
  width: min(380px, 40%);
  height: 84%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(
    180deg,
    #cde4f9 0%,
    rgba(205, 228, 249, 0.05) 96%
  );
}
.doc-slide__photo {
  position: absolute;
  bottom: 0;
  right: clamp(8px, 4vw, 80px);
  height: 94%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 18px 28px rgba(10, 41, 97, 0.16));
  z-index: 1;
}
.doc-slide__info {
  position: absolute;
  left: clamp(28px, 4vw, 64px);
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: min(460px, 52%);
}
.doc-slide__info .role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}
.doc-slide__info .role::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}
.doc-slide__info h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 3.4vw, 54px);
  color: var(--ink);
  line-height: 1.1;
}
.doc-slide__info .slogan {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 41, 97, 0.14);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16.5px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--text-sub);
}
.doc-slide__info .slogan em {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
}
.doc-slide__info ul {
  margin-top: 16px;
}
.doc-slide__info li {
  position: relative;
  padding: 7px 0 7px 15px;
  font-size: 16.5px;
  color: var(--text-sub);
}
.doc-slide__info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 자주 묻는 질문 (좌 상담카드 + 열린 항목만 카드) ---------- */
.faq-sect {
  background: var(--paper);
}
.faq-wrap {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(48px, 6vw, 110px);
  align-items: start;
}
.faq-side {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
/* 좌측 네이비 상담 카드 */
.faq-contact {
  margin-top: 30px;
  background:
    linear-gradient(
      150deg,
      rgba(10, 41, 97, 0.97) 30%,
      rgba(13, 55, 92, 0.94) 100%
    ),
    url("/assets/img/ext/wave-cool.svg") center / cover no-repeat;
  border-radius: var(--radius-m);
  padding: 30px 32px;
  color: #fff;
}
.faq-contact .label {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}
.faq-contact .tel {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(27px, 2.2vw, 33px);
  color: #7ccdf2;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.faq-contact .tel:hover {
  color: #fff;
}
.faq-contact .kakao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 15.5px;
  font-weight: 700;
  transition:
    background 0.3s,
    color 0.3s;
}
.faq-contact .kakao:hover {
  background: #fff;
  color: var(--navy);
}
.faq-contact .kakao i {
  font-style: normal;
}
.faq-contact p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
/* 우측: 헤어라인 리스트, 열린 항목만 카드로 */
.faq--bare {
  max-width: none;
}
.faq--bare .faq__item {
  border-top: 1px solid rgba(16, 27, 51, 0.14);
  border-bottom: 0;
}
.faq--bare .faq__item:last-child {
  border-bottom: 1px solid rgba(16, 27, 51, 0.14);
}
.faq--bare .faq__q {
  padding: 24px 14px;
  font-size: 22px;
  font-family: var(--font-display);
  gap: 18px;
  border-radius: 12px;
  transition:
    color 0.3s,
    background 0.3s;
}
.faq--bare .faq__q:hover {
  background: linear-gradient(90deg, rgba(71, 175, 223, 0.08), transparent 70%);
}
.faq--bare .faq__item.is-open .faq__q {
  color: var(--navy);
}
.faq--bare .faq__q::before {
  display: none;
}
.faq--bare .faq__q em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  color: var(--accent-strong);
  flex: 0 0 48px;
}
/* 부드러운 펼침 (grid rows 트릭) */
.faq--bare .faq__a {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0;
  margin: 0;
  border: 0;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.faq--bare .faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}
.faq--bare .faq__a .in {
  position: relative;
  overflow: hidden;
  min-height: 0;
  margin: 0 14px 0 76px;
  font-size: 20px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(
      140deg,
      rgba(16, 52, 122, 0.97) 0%,
      rgba(10, 41, 97, 0.96) 60%,
      rgba(13, 55, 92, 0.95) 100%
    ),
    url("/assets/img/ext/wave-cool.svg") center / cover no-repeat;
  border-radius: 18px;
  padding: 0 28px 0 76px;
  transition:
    padding 0.45s var(--ease-out),
    margin 0.45s var(--ease-out),
    box-shadow 0.45s;
}
.faq--bare .faq__a .in::before {
  content: "A.";
  position: absolute;
  left: 26px;
  top: 25px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  line-height: 1;
  color: #7ccdf2;
  opacity: 0;
  transition: opacity 0.3s 0.2s;
}
.faq--bare .faq__item.is-open .faq__a .in {
  padding: 24px 28px 24px 76px;
  margin-bottom: 26px;
  box-shadow: 0 16px 36px rgba(10, 41, 97, 0.22);
}
.faq--bare .faq__item.is-open .faq__a .in::before {
  opacity: 1;
}
/* 셰브런 원형 */
.faq--bare .faq__q .chev {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  rotate: 0deg;
  position: relative;
  transition:
    background 0.3s,
    border-color 0.3s,
    rotate 0.3s;
}
.faq--bare .faq__q .chev::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  translate: -50% -70%;
  rotate: 45deg;
  transition: border-color 0.3s;
}
.faq--bare .faq__item.is-open .faq__q .chev {
  rotate: 180deg;
  background: linear-gradient(135deg, var(--accent), #1d92cc);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(71, 175, 223, 0.4);
}
.faq--bare .faq__item.is-open .faq__q .chev::before {
  border-color: #fff;
}

/* ---------- 진료시간 · 오시는 길 ---------- */
.visit {
  position: relative;
  background:
    linear-gradient(
      115deg,
      rgb(20 29 45 / 96%) 30%,
      rgba(8, 31, 74, 0.86) 65%,
      rgba(13, 55, 92, 0.85) 100%
    ),
    url("/assets/img/legacy/view_01.jpg") center 40% / cover no-repeat;
  color: #fff;
}
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.visit__info h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(7vw, 38px);
  font-weight: 800;
}
.visit__tel {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 48px);
  color: var(--accent);
  letter-spacing: 0.02em;
}
.visit__schedule {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.visit__schedule li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.visit__schedule span {
  flex: 0 0 128px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
}
.visit__schedule em {
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
}
.visit__schedule i {
  font-style: normal;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.visit__notes {
  margin-top: 20px;
}
.visit__notes li {
  position: relative;
  padding-left: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}
.visit__notes li::before {
  content: "·";
  position: absolute;
  left: 0;
}
.visit__map-thm {
  position: relative;
  display: block;
  border-radius: var(--radius-l);
  overflow: hidden;
}
.visit__map-thm img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.visit__map-thm:hover img {
  transform: scale(1.04);
}
.visit__map-thm span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-m);
  font-family: var(--font-display);
}
.visit__addr {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-m);
  padding: 24px 28px;
}
.visit__addr p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
}
.visit__addr b {
  display: inline-block;
  width: 48px;
  color: var(--accent);
  font-weight: 700;
}
