:root {
  color-scheme: light;
  --page-width: min(100vw, 1672px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f0e7;
  display: flex;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.shell {
  width: var(--page-width);
  background: #fbf7ef;
  box-shadow: 0 24px 80px rgba(71, 61, 45, 0.12);
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: #f8f4ec;
}

.page-image,
.common-header,
.common-right-menu,
.common-footer {
  display: block;
  width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.page-image {
  position: absolute;
  left: 0;
  right: 0;
  top: 12.86%;
  z-index: 1;
  height: 87.14%;
  object-fit: cover;
  object-position: top center;
  transition:
    opacity 260ms var(--ease),
    transform 320ms var(--ease),
    filter 320ms var(--ease);
}

.stage.is-switching .page-image {
  opacity: 0;
  transform: scale(1.012);
  filter: blur(3px);
}

.hero-overlay {
  display: none;
  position: absolute;
  z-index: 4;
  left: 47.2%;
  top: 13.6%;
  width: 40.3%;
  height: 45.4%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(77, 84, 66, 0.14);
  border-radius: 8px;
  background: #f7f5ef;
  box-shadow: 0 20px 50px rgba(48, 39, 26, 0.12);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition:
    opacity 260ms var(--ease),
    transform 320ms var(--ease),
    filter 320ms var(--ease);
}

.stage::before {
  content: "";
  display: none;
  position: absolute;
  z-index: 3;
  left: 45.2%;
  top: 13.4%;
  width: 44.2%;
  height: 48%;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(247, 244, 237, 0.9), rgba(248, 245, 239, 0.96)),
    #f8f5ef;
  box-shadow: 0 22px 62px rgba(48, 39, 26, 0.08);
  pointer-events: none;
}

.stage[data-page="panic"] .hero-overlay,
.stage[data-page="anxiety"] .hero-overlay,
.stage[data-page="hwabyeong"] .hero-overlay,
.stage[data-page="anger"] .hero-overlay,
.stage[data-page="insomnia"] .hero-overlay,
.stage[data-page="menopause"] .hero-overlay {
  display: block;
}

.stage[data-page="panic"]::before,
.stage[data-page="anxiety"]::before,
.stage[data-page="hwabyeong"]::before,
.stage[data-page="anger"]::before,
.stage[data-page="insomnia"]::before,
.stage[data-page="menopause"]::before {
  display: block;
}

.stage.is-switching .hero-overlay {
  opacity: 0;
  transform: scale(1.012);
  filter: blur(3px);
}

.stage[data-page="spine"] .hero-overlay {
  object-position: center;
}

.stage[data-page="panic"] .hero-overlay,
.stage[data-page="anxiety"] .hero-overlay,
.stage[data-page="hwabyeong"] .hero-overlay,
.stage[data-page="anger"] .hero-overlay,
.stage[data-page="insomnia"] .hero-overlay {
  object-position: center;
}

.stage[data-page="menopause"] .hero-overlay {
  object-position: center;
}

.stage.is-bitmap-only::before,
.stage.is-bitmap-only .hero-overlay {
  display: none !important;
}

.common-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  height: 12.86%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.common-right-menu {
  position: absolute;
  z-index: 6;
  top: 13.82%;
  right: 2%;
  width: 7.54%;
  height: auto;
  object-fit: contain;
  border-radius: 999px;
  filter: drop-shadow(0 16px 30px rgba(65, 54, 38, 0.12));
  pointer-events: none;
}

.desktop-brand-cover {
  position: absolute;
  z-index: 7;
  left: 2.5%;
  top: 1.75%;
  display: flex;
  align-items: center;
  gap: clamp(10px, 0.85vw, 15px);
  width: 19.8%;
  height: 9.2%;
  padding: 0 clamp(8px, 0.9vw, 16px);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.99);
  pointer-events: none;
}

.desktop-brand-cover {
  display: none;
}

.brand-seal,
.footer-mark,
.mobile-brand-seal {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(92, 105, 73, 0.72);
  color: #5d6949;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-seal {
  width: clamp(42px, 3.3vw, 58px);
  height: clamp(42px, 3.3vw, 58px);
  border-radius: 999px;
  font-size: clamp(12px, 0.9vw, 16px);
}

.brand-copy strong {
  display: block;
  color: #171d18;
  font-size: clamp(21px, 1.75vw, 31px);
  font-weight: 950;
  line-height: 1.05;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: #49523c;
  font-size: clamp(10px, 0.78vw, 14px);
  font-weight: 800;
  line-height: 1.15;
}

.dynamic-stage {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  left: 0;
  top: 12.86%;
  width: 94.2%;
  height: 87.14%;
  padding: clamp(42px, 4.1vw, 78px) clamp(68px, 6.4vw, 112px) clamp(34px, 3.4vw, 62px);
  background:
    radial-gradient(circle at 11% 18%, rgba(118, 132, 96, 0.11), transparent 25%),
    linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0%, rgba(247, 243, 235, 0.98) 100%),
    #fbf7ef;
  overflow: hidden;
}

.dynamic-stage[hidden] {
  display: none;
}

.dynamic-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: clamp(34px, 4vw, 72px);
  flex: 1 1 auto;
  min-height: 0;
}

.dynamic-copy p {
  margin: 0;
}

.dynamic-copy p:first-child {
  color: #52633f;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 950;
  line-height: 1.35;
}

.dynamic-copy h1 {
  margin: clamp(18px, 1.8vw, 30px) 0 0;
  color: #07192e;
  max-width: 9.3em;
  font-size: clamp(42px, 4.15vw, 70px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.dynamic-copy p:nth-of-type(2) {
  margin-top: clamp(18px, 1.8vw, 28px);
  color: #425236;
  font-size: clamp(22px, 1.8vw, 31px);
  font-weight: 900;
  line-height: 1.35;
}

.dynamic-copy p:nth-of-type(3) {
  margin-top: clamp(16px, 1.45vw, 24px);
  max-width: 34em;
  color: #2e352d;
  font-size: clamp(16px, 1.15vw, 21px);
  font-weight: 750;
  line-height: 1.72;
}

.dynamic-visual {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 300px;
  height: min(38vw, 430px);
  border: 1px solid rgba(77, 84, 66, 0.14);
  border-radius: 8px;
  background: #f6f2ea;
  box-shadow: 0 24px 56px rgba(48, 39, 26, 0.13);
}

.dynamic-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stage[data-page="location"] .dynamic-visual {
  background:
    linear-gradient(28deg, transparent 47%, rgba(89, 107, 69, 0.28) 48%, rgba(89, 107, 69, 0.28) 51%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(120, 124, 111, 0.08) 0 10px, transparent 10px 54px),
    repeating-linear-gradient(90deg, rgba(120, 124, 111, 0.08) 0 10px, transparent 10px 64px),
    #f2eee6;
}

.stage[data-page="location"] .dynamic-visual img {
  display: none;
}

.stage[data-page="location"] .dynamic-visual::after {
  content: "신사한의원\a서울 은평구 은평터널로 128-2, 2층";
  white-space: pre;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  min-height: 92px;
  padding: 22px 24px 20px 94px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 45px 45px, #fff 0 13px, #53663f 14px 42px, transparent 43px),
    rgba(255, 253, 248, 0.94);
  color: #1b2119;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.62;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 38px rgba(50, 43, 31, 0.12);
}

.dynamic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 26px);
  flex: 0 0 auto;
  margin-top: clamp(18px, 2.2vw, 34px);
}

.stage[data-page="location"] .dynamic-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dynamic-card {
  display: grid;
  min-height: clamp(104px, 8.8vw, 148px);
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 2vw, 34px);
  border: 1px solid rgba(77, 84, 66, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 42px rgba(50, 43, 31, 0.1);
  color: #18202a;
  text-align: left;
}

button.dynamic-card {
  cursor: pointer;
}

.dynamic-card strong {
  color: #101820;
  font-size: clamp(20px, 1.55vw, 28px);
  font-weight: 950;
  line-height: 1.22;
}

.dynamic-card span {
  color: #34402e;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 750;
  line-height: 1.62;
  word-break: keep-all;
  overflow-wrap: normal;
}

.desktop-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.28fr) minmax(0, 1fr) minmax(0, 0.88fr);
  gap: clamp(18px, 1.8vw, 30px);
  align-items: start;
  padding: clamp(42px, 4vw, 70px) clamp(38px, 4.2vw, 72px) clamp(70px, 5.7vw, 98px);
  border-top: 1px solid rgba(97, 91, 73, 0.14);
  background:
    radial-gradient(circle at 0% 100%, rgba(122, 134, 103, 0.14), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(122, 134, 103, 0.1), transparent 22%),
    linear-gradient(180deg, #fbf8f1 0%, #f4ede1 100%);
  color: #22291f;
}

.desktop-footer-brand,
.desktop-footer-contact div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-mark {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  font-size: 18px;
}

.desktop-footer-brand strong {
  display: block;
  color: #171d18;
  font-size: clamp(30px, 2.35vw, 42px);
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
}

.desktop-footer-brand small {
  display: block;
  margin-top: 9px;
  color: #4c563f;
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: 850;
}

.desktop-footer-contact,
.desktop-footer-parking {
  display: grid;
  gap: 16px;
}

.footer-icon {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(91, 101, 75, 0.12);
  color: #53633f;
  font-size: 22px;
  font-weight: 900;
}

.desktop-footer p {
  margin: 0;
  color: #2d352a;
  font-size: clamp(16px, 1.08vw, 19px);
  font-weight: 760;
  line-height: 1.58;
}

.desktop-footer-contact strong {
  color: #53633f;
  font-size: clamp(22px, 1.55vw, 28px);
  white-space: nowrap;
}

.desktop-footer-hours > strong,
.desktop-footer-parking > strong {
  display: block;
  margin-bottom: 12px;
  color: #53633f;
  font-size: clamp(20px, 1.3vw, 24px);
  font-weight: 950;
}

.hours-grid {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(145px, 1fr);
  column-gap: 18px;
  row-gap: 6px;
}

.hours-grid span {
  color: #2d352a;
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 780;
  line-height: 1.42;
}

.hours-grid span:nth-child(odd) {
  color: #53633f;
  font-weight: 950;
}

.desktop-footer-note {
  justify-self: end;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.desktop-footer-note span {
  color: #71805f;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.desktop-detail {
  padding: clamp(42px, 4.4vw, 74px) clamp(52px, 6vw, 100px) clamp(48px, 4.6vw, 78px);
  background:
    linear-gradient(180deg, #fffdf8 0%, #f7f0e6 100%),
    #fbf7ef;
  color: #18202a;
  border-top: 1px solid rgba(77, 84, 66, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(30px, 4vw, 64px);
  max-width: 1420px;
  margin: 0 auto;
}

.detail-visual {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(50, 63, 80, 0.1);
  border-radius: 8px;
  background: #f6f3ee;
  box-shadow: 0 20px 52px rgba(50, 44, 32, 0.12);
}

.detail-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-kicker {
  margin: 0 0 14px;
  color: #52633f;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 900;
  line-height: 1.35;
}

.detail-copy h2 {
  margin: 0;
  color: #07192e;
  font-size: clamp(44px, 4.4vw, 72px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.detail-copy p:not(.detail-kicker) {
  margin: 22px 0 0;
  color: #30392d;
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 700;
  line-height: 1.75;
}

.detail-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.4vw, 24px);
  max-width: 1420px;
  margin: clamp(32px, 3.8vw, 60px) auto 0;
}

.detail-section-card {
  min-height: 218px;
  padding: clamp(24px, 2.1vw, 34px);
  border: 1px solid rgba(77, 84, 66, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(54, 45, 31, 0.08);
}

.detail-section-card h3 {
  margin: 0;
  color: #11191f;
  font-size: clamp(22px, 1.7vw, 30px);
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: 0;
}

.detail-section-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.detail-section-card li {
  position: relative;
  padding-left: 18px;
  color: #333b31;
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 700;
  line-height: 1.65;
}

.detail-section-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #52633f;
}

.detail-diagram-card {
  display: grid;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.92);
}

.detail-diagram-card img {
  display: block;
  width: min(100%, 360px);
  max-height: 520px;
  object-fit: contain;
}

.detail-flow {
  max-width: 1420px;
  margin: clamp(18px, 2vw, 30px) auto 0;
  padding: clamp(22px, 2vw, 30px);
  border: 1px solid rgba(19, 43, 70, 0.12);
  border-radius: 8px;
  background: rgba(229, 237, 244, 0.58);
}

.detail-flow strong {
  display: block;
  margin-bottom: 16px;
  color: #10243a;
  font-size: clamp(20px, 1.4vw, 26px);
  font-weight: 950;
}

.detail-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-step {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fffdf8;
  color: #18202a;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(19, 43, 70, 0.08);
}

.mobile-app {
  display: none;
}

.hotspot {
  position: absolute;
  z-index: 8;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
}

.hotspot:focus-visible {
  outline: 0;
}

.logo:focus-visible,
.card:focus-visible,
.related:focus-visible {
  outline: 2px solid rgba(95, 116, 74, 0.48);
  outline-offset: -4px;
}

.logo {
  left: 2.6%;
  top: 2%;
  width: 17%;
  height: 9.5%;
}

.nav {
  top: 1.6%;
  height: 10.4%;
  border-radius: 0;
}

.nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: var(--underline-width, 64%);
  height: 2px;
  background: #7d8862;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 180ms var(--ease);
}

.nav:hover::after,
.nav:focus-visible::after,
.nav[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-spine {
  left: 38.7%;
  width: 14.2%;
  --underline-width: 68%;
}

.nav-panic {
  left: 59.2%;
  width: 7%;
  --underline-width: 52%;
}

.nav-menopause {
  left: 78.7%;
  width: 6.4%;
  --underline-width: 52%;
}

.nav-insomnia {
  left: 70.2%;
  width: 5.2%;
  --underline-width: 54%;
}

.nav-location {
  left: 88.5%;
  width: 7.2%;
  --underline-width: 62%;
}

.panic-submenu {
  position: absolute;
  z-index: 12;
  left: 58.2%;
  top: 12.86%;
  width: 11.2%;
  padding: clamp(5px, 0.55vw, 9px);
  border: 1px solid rgba(125, 136, 98, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 26px rgba(61, 54, 39, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition:
    opacity 180ms var(--ease),
    transform 180ms var(--ease);
}

.nav-panic:hover ~ .panic-submenu,
.nav-panic:focus-visible ~ .panic-submenu,
.panic-submenu:hover,
.panic-submenu:focus-within,
.panic-submenu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.panic-submenu.is-force-closed {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-5px) !important;
}

.panic-subitem {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3f4432;
  cursor: pointer;
  font: 600 clamp(10px, 0.82vw, 14px) / 1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  padding: clamp(5px, 0.5vw, 8px) clamp(6px, 0.55vw, 9px);
  text-align: left;
}

.panic-subitem:hover,
.panic-subitem:focus-visible,
.panic-subitem[aria-current="page"] {
  background: rgba(118, 129, 91, 0.1);
  outline: 0;
}

.rail {
  right: calc(2% + ((7.54% - 3.05%) / 2));
  width: 3.05%;
  height: 5.42%;
  border-radius: 999px;
}

.rail::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(118, 129, 91, 0);
  transform: scale(0.86);
  transition:
    background 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.rail:hover::after,
.rail:focus-visible::after,
.rail[aria-current="page"]::after {
  background: rgba(118, 129, 91, 0.11);
  box-shadow: inset 0 0 0 1px rgba(118, 129, 91, 0.2);
  transform: scale(1);
}

.rail-spine {
  top: 18.65%;
}

.rail-panic {
  top: 30.45%;
}

.rail-menopause {
  top: 54.15%;
}

.rail-insomnia {
  top: 42.35%;
}

.rail-location {
  top: 65.95%;
}

.card {
  top: 45.8%;
  height: 51.6%;
  pointer-events: none;
}

.stage[data-page="main"] .card {
  pointer-events: auto;
}

.card-spine {
  left: 3.2%;
  width: 18.7%;
}

.card-panic {
  left: 23.1%;
  width: 17.7%;
}

.card-insomnia {
  left: 41.9%;
  width: 17.8%;
}

.card-menopause {
  left: 60.8%;
  width: 18%;
}

.related {
  top: 72.4%;
  height: 23.4%;
  pointer-events: none;
}

.stage[data-page="panic"] .related {
  pointer-events: auto;
}

.related-anxiety {
  left: 8.6%;
  width: 25.6%;
}

.related-hwabyeong {
  left: 34.8%;
  width: 26.4%;
}

.related-anger {
  left: 61.8%;
  width: 24.7%;
}

@media (max-width: 860px) {
  :root {
    --page-width: 100vw;
  }

  body {
    display: block;
    background: #f5efe5;
  }

  .shell {
    width: 100vw;
    min-height: 100vh;
    background: #f5efe5;
    box-shadow: none;
  }

  .stage,
  .desktop-detail,
  .common-footer,
  .desktop-footer {
    display: none;
  }

  .mobile-app {
    display: block;
    min-height: 100vh;
    padding-bottom: 88px;
    color: #1f251d;
    background:
      radial-gradient(circle at 10% 24%, rgba(123, 139, 103, 0.1), transparent 27%),
      linear-gradient(180deg, #fffaf2 0%, #f7f0e5 48%, #efe5d7 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    word-break: keep-all;
    overflow-wrap: anywhere;
    overflow-x: hidden;
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 76px;
    padding: 13px 17px;
    border-bottom: 1px solid rgba(75, 82, 63, 0.12);
    background: rgba(255, 252, 246, 0.96);
    box-shadow: 0 10px 28px rgba(55, 47, 32, 0.06);
    backdrop-filter: blur(18px);
  }

  .mobile-brand,
  .mobile-footer-logo {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    color: #22261d;
  }

  .mobile-brand {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
  }

  .mobile-brand-logo {
    display: block;
    width: min(212px, 58vw);
    height: auto;
    mix-blend-mode: multiply;
    user-select: none;
    -webkit-user-drag: none;
  }

  .mobile-brand-seal {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.88);
    font-size: 12px;
  }

  .mobile-brand-mark {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid #71805f;
    border-radius: 12px;
    color: transparent;
    position: relative;
  }

  .mobile-brand-mark::before {
    content: "";
    width: 20px;
    height: 28px;
    border: 2px solid #71805f;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    transform: rotate(45deg);
  }

  .mobile-brand strong,
  .mobile-footer-logo strong {
    display: block;
    color: #1d2119;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: 0;
  }

  .mobile-brand small,
  .mobile-footer-logo small {
    display: block;
    margin-top: 4px;
    color: #59614c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
  }

  .mobile-menu-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    gap: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(96, 108, 77, 0.1);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #51613f;
  }

  .mobile-primary {
    position: sticky;
    top: 76px;
    z-index: 25;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(75, 82, 63, 0.1);
    background: rgba(249, 243, 234, 0.95);
    scrollbar-width: none;
  }

  .mobile-primary::-webkit-scrollbar {
    display: none;
  }

  .mobile-primary button,
  .mobile-menu button {
    border: 1px solid rgba(91, 101, 75, 0.18);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.88);
    color: #38402f;
    cursor: pointer;
    font: 800 13px / 1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .mobile-primary button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
  }

  .mobile-menu button {
    min-height: 42px;
    padding: 0 12px;
  }

  .mobile-primary button[aria-current="page"],
  .mobile-menu button[aria-current="page"] {
    border-color: rgba(28, 50, 73, 0.34);
    color: #10243a;
    background: rgba(220, 232, 240, 0.92);
    box-shadow: inset 0 0 0 1px rgba(28, 50, 73, 0.08);
  }

  .mobile-menu {
    position: sticky;
    top: 128px;
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px 14px;
    border-bottom: 1px solid rgba(75, 82, 63, 0.1);
    background: rgba(255, 252, 246, 0.98);
    box-shadow: 0 16px 24px rgba(55, 47, 32, 0.08);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-page {
    padding: 16px 14px 26px;
  }

  .mobile-hero {
    overflow: hidden;
    border: 1px solid rgba(91, 101, 75, 0.14);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(247, 240, 229, 0.9)),
      #fbf7ef;
    box-shadow: 0 18px 42px rgba(66, 55, 37, 0.12);
  }

  .mobile-copy {
    padding: 27px 22px 16px;
  }

  .mobile-kicker {
    margin: 0 0 10px;
    color: #3e6649;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .mobile-copy h1 {
    margin: 0;
    max-width: 100%;
    color: #07192e;
    font-size: clamp(28px, 7.2vw, 32px);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .mobile-subtitle {
    margin: 16px 0 0;
    color: #435b36;
    font-size: clamp(19px, 5vw, 26px);
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .mobile-description {
    margin: 17px 0 0;
    max-width: 21em;
    color: #30382d;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.8;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .mobile-hero-art {
    min-height: 240px;
    border-top: 1px solid rgba(91, 101, 75, 0.1);
    background-repeat: no-repeat;
    background-size: auto 128%;
    background-color: #eee5d8;
    position: relative;
  }

  .mobile-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(255, 250, 242, 0.04), rgba(245, 239, 229, 0.22)),
      linear-gradient(90deg, rgba(255, 250, 242, 0.2), transparent 44%);
    pointer-events: none;
  }

  .mobile-hero-art[data-page="location"] {
    min-height: 228px;
    background:
      linear-gradient(26deg, transparent 47%, rgba(89, 107, 69, 0.26) 48%, rgba(89, 107, 69, 0.26) 51%, transparent 52%),
      repeating-linear-gradient(0deg, rgba(120, 124, 111, 0.08) 0 8px, transparent 8px 40px),
      repeating-linear-gradient(90deg, rgba(120, 124, 111, 0.08) 0 8px, transparent 8px 44px),
      #f2eee6;
  }

  .mobile-hero-art[data-page="location"]::before {
    content: "신사한의원\a서울 은평구 은평터널로 128-2, 2층";
    white-space: pre;
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(78vw, 300px);
    min-height: 80px;
    padding: 18px 18px 16px 74px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 36px 38px, #fff 0 11px, #53663f 12px 35px, transparent 36px),
      rgba(255, 253, 248, 0.94);
    color: #1b2119;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.58;
    transform: translate(-50%, -50%);
    box-shadow: 0 14px 28px rgba(50, 43, 31, 0.12);
  }

  .mobile-card-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
  }

  .mobile-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 106px;
    padding: 16px;
    border: 1px solid rgba(91, 101, 75, 0.12);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 14px 34px rgba(66, 55, 37, 0.09);
    color: #1e251b;
    text-align: left;
  }

  button.mobile-card {
    cursor: pointer;
  }

  button.mobile-card:active {
    transform: translateY(1px);
  }

  .mobile-card-index {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    color: #10243a;
    background: rgba(220, 232, 240, 0.9);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-card-text {
    display: block;
    min-width: 0;
  }

  .mobile-card strong {
    display: block;
    color: #11191f;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .mobile-card small {
    display: block;
    margin-top: 7px;
    color: #4a5141;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
    letter-spacing: 0;
  }

  .mobile-card-arrow {
    color: #53633f;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
  }

  .mobile-info {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(91, 101, 75, 0.12);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.82);
  }

  .mobile-info-row {
    display: grid;
    gap: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(91, 101, 75, 0.1);
  }

  .mobile-info-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .mobile-info-row strong {
    color: #34452b;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
  }

  .mobile-info-row span {
    color: #24291f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.62;
  }

  .mobile-detail-content {
    display: grid;
    gap: 12px;
    margin-top: 14px;
  }

  .mobile-detail-block {
    padding: 18px;
    border: 1px solid rgba(91, 101, 75, 0.12);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 14px 34px rgba(66, 55, 37, 0.08);
  }

  .mobile-detail-block h2,
  .mobile-detail-block h3 {
    margin: 0;
    color: #11191f;
    font-size: 21px;
    font-weight: 950;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .mobile-detail-block p,
  .mobile-detail-block li {
    color: #31382e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.68;
  }

  .mobile-detail-block p {
    margin: 10px 0 0;
  }

  .mobile-detail-block ul {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
  }

  .mobile-detail-block li {
    position: relative;
    padding-left: 16px;
  }

  .mobile-detail-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.73em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #52633f;
  }

  .mobile-detail-image-block {
    display: grid;
    place-items: center;
    padding: 14px;
    overflow: hidden;
  }

  .mobile-detail-image-block img {
    display: block;
    width: min(100%, 280px);
    max-height: 430px;
    object-fit: contain;
  }

  .mobile-detail-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
  }

  .mobile-detail-steps span {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(220, 232, 240, 0.72);
    color: #10243a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 40;
    left: 50%;
    right: auto;
    bottom: 12px;
    width: min(352px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 6px;
    border: 1px solid rgba(28, 50, 73, 0.14);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.95);
    box-shadow: 0 18px 42px rgba(35, 28, 18, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-action-bar button,
  .mobile-action-bar a {
    display: grid;
    min-width: 0;
    min-height: 46px;
    place-items: center;
    padding: 0 4px;
    border: 0;
    border-radius: 16px;
    color: #fffdf8;
    cursor: pointer;
    font: 950 12px / 1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
  }

  .mobile-action-bar button:first-child {
    background: #b68c6f;
  }

  .mobile-action-bar a {
    background: #a97273;
  }

  .mobile-action-bar button:last-child {
    background: #173553;
  }

  .mobile-footer {
    margin: 0 14px 18px;
    padding: 18px;
    border: 1px solid rgba(91, 101, 75, 0.16);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(237, 229, 215, 0.94)),
      #fbf7ef;
    box-shadow: 0 16px 36px rgba(66, 55, 37, 0.09);
  }

  .mobile-footer-logo strong {
    font-size: 26px;
  }

  .mobile-footer-logo .mobile-brand-logo {
    width: min(240px, 70vw);
  }

  .mobile-footer-contact {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(91, 101, 75, 0.12);
  }

  .mobile-footer-contact p {
    margin: 0;
    color: #2a3025;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  .mobile-brand strong {
    font-size: 22px;
  }

  .mobile-primary {
    top: 74px;
  }

  .mobile-copy {
    padding: 24px 18px 14px;
  }

  .mobile-hero-art {
    min-height: 222px;
    background-size: auto 122%;
  }

  .mobile-card {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px;
  }

  .mobile-card-index {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-image,
  .stage.is-switching .page-image,
  .nav::after,
  .rail::after,
  .panic-submenu {
    transition: none;
    transform: none;
    filter: none;
  }
}
