/* Mobile reading, touch controls and form layout. Desktop and print keep their layouts. */
@media screen and (max-width: 1179px) {
  html { scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 80px; }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }
  .cta-bar { background: linear-gradient(to right, var(--green-900) 50%, var(--gold-600) 50%); }
  body.is-form-editing .cta-bar { display: none; }
  main :where(input, textarea, select) { scroll-margin-block: calc(var(--header-h) + 20px) 100px; }
  .q-field input, .q-field textarea, .q-field select,
  .input, .textarea, .select, .notice-search input { font-size: 16px; }
  .footer-legal { gap: 10px; }
  .footer-legal dl { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px 12px; align-items: start; }
  .footer-legal dt { grid-column: 1; }
  .footer-legal dd { grid-column: 2; min-width: 0; margin: 0; }
  .footer-legal dt, .footer-legal dd { overflow-wrap: anywhere; word-break: normal; }
  .footer-legal .footer-address:lang(ko) { white-space: pre-line; word-break: keep-all; }
  .footer-nav { grid-template-columns: minmax(0, .95fr) minmax(0, .95fr) minmax(0, 1.2fr); gap: 0; }
  .footer-nav > div { min-width: 0; padding-inline: 10px; }
  .footer-nav > div:first-child { padding-left: 0; }
  .footer-nav > div:last-child { padding-right: 0; }
  .footer-nav > div + div { border-left: 1px solid rgba(255, 255, 255, .13); }
  .footer-nav__label { margin-bottom: 12px; letter-spacing: .03em; overflow-wrap: anywhere; }
  .footer-nav__list { gap: 2px; }
  .footer-nav__list a { display: flex; align-items: center; min-height: 36px; font-size: clamp(10px, 2.9vw, 13px); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
  .drawer { padding-top: 16px; }
  .drawer__group { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-0); }
  .drawer__group + .drawer__group { margin-top: 14px; padding-top: 16px; }
  .drawer__label { margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; letter-spacing: .02em; }
  .drawer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .drawer__links .drawer__link { min-width: 0; min-height: 46px; gap: 6px; font-size: 14px; line-height: 1.6; border-bottom-color: rgba(141, 112, 70, .12); }
  .drawer__links .drawer__link::after { content: none; }
  .drawer__links .drawer__link[aria-current="page"] { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
  .drawer__cta { margin-top: 18px; }
}

@media screen and (max-width: 699px) {
  .site-header .nav-toggle { width: 44px; height: 44px; }
  /* 좁은 화면에서는 로고를 줄이고 영문 설명은 감춥니다. */
  .brand__logo { width: 150px; height: 24px; }
  .site-header .brand__en { padding-left: 28px; }
  .site-header .brand__en { display: none; }
  .site-search-button { width: 44px; min-height: 44px; }
  .language-picker summary { min-height: 44px; }

  .hero__slide { padding: 28px 20px 80px; gap: 20px; }
  .hero__slide .hero__title { font-size: clamp(1.6rem, 6.8vw, 1.95rem); line-height: 1.38; text-wrap: balance; }
  .hero__slide .hero__sub { margin-top: 16px; font-size: .96rem; line-height: 1.8; text-wrap: pretty; }
  .hero__slide .hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 340px; margin: 22px auto 0; gap: 8px; }
  .hero__slide .hero__actions .btn { width: 100%; min-height: 46px; padding: 10px 14px; }
  .hero__slide .hero__facts { margin-top: 18px; gap: 8px 14px; font-size: .8rem; }
  .hero__slide .hero__facts:lang(ko) { flex-wrap: nowrap; gap: clamp(4px, 1.5vw, 8px); font-size: clamp(10px, 2.75vw, 12px); }
  .hero__facts:lang(ko) .hero__fact { flex: 0 0 auto; gap: 3px; white-space: nowrap; }
  .hero__facts:lang(ko) .hero__fact svg { width: 11px; height: 11px; }
  .hero__media picture, .hero__media--doctor picture { height: 270px; }
  .hero__caption { margin-top: 8px; line-height: 1.7; }
  .hero__arrow { top: auto; bottom: 18px; }
  .hero__arrow--prev { left: 16px; }
  .hero__arrow--next { right: 16px; }

  .page-hero__inner { padding-block: 30px; }
  .page-hero__lead, .section-head__lead { font-size: 1rem; line-height: 1.85; text-wrap: pretty; }
  main p { text-wrap: pretty; }
  [data-mobile-sentences]:lang(ko) { white-space: pre-line; }
  .faq__body:lang(ko) { word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; padding-left: 20px; }
  .q-field > span:lang(ko) { text-wrap: balance; }
  .stat--feature .stat__value:lang(ko) { font-size: clamp(16px, 4.8vw, 24px); white-space: nowrap; }
  .cta-band__lead:lang(ko) { white-space: pre-line; }
  .consult-channels > .section-head__lead:lang(ko) { white-space: pre-line; }
  .channel[href^="tel:"] .channel__desc:lang(ko) { width: 100%; white-space: nowrap; }
  .channel__desc--kakao:lang(ko) { width: 100%; white-space: nowrap; }
  .location-card > p:lang(ko) { width: 100%; white-space: nowrap; }
  .greeting__photo, .doctor-card__photo { width: min(100%, 260px); margin-inline: auto; }
  .greeting, .doctor-card, .split { gap: 24px; }
  .greeting__body { line-height: 1.85; gap: 20px; }
  .greeting__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .greeting__actions .btn { padding-inline: 6px; font-size: .86rem; white-space: normal; text-align: center; }
  .clinic-gallery, .facility-gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stat__label { text-wrap: balance; }
  .notice-list-heading { display: grid; gap: 6px; }
  .review-filter button { min-height: 44px; }

  .q-sidebar li { font-size: 12px; line-height: 1.6; }
  .q-intro { padding: 20px; }
  .q-intro > strong:lang(ko) { display: block; font-size: clamp(10.5px, 3.4vw, 14px); letter-spacing: -.025em; white-space: nowrap; }
  .q-step h2 { font-size: 1.3rem; }
  .wizard__nav { flex-wrap: wrap; }
  .wizard__nav > .btn, .q-result-actions > .btn { flex: 1 1 130px; white-space: normal; text-align: center; }
}

@media screen and (max-width: 359px) {
  .hero__slide { padding-bottom: 128px; }
  .hero__arrow { bottom: 68px; }
}
