/* ═══════════════════════════════════════════════════════════════
   신비안에스테틱 — styles.css
   색을 바꾸려면 :root 의 --sea / --gold 두 줄만 고치면 됩니다.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* 바탕 */
  --sand:       #F6F1E9;   /* 페이지 배경 (따뜻한 모래) */
  --paper:      #FFFDF9;   /* 카드 배경 */
  --mist:       #E6EDEB;   /* 연한 해무 */

  /* 글자 */
  --ink:        #17242B;   /* 본문 */
  --ink-soft:   #51616A;   /* 보조 */
  --ink-faint:  #8A979E;   /* 흐림 */

  /* 포인트 */
  --sea:        #0E5A63;   /* 메인 — 깊은 바다 */
  --sea-deep:   #073A41;
  --sea-light:  #2C8A91;
  --gold:       #B99150;   /* 악센트 */

  --line:       #E3DCD0;
  --shadow:     0 1px 2px rgba(23,36,43,.04), 0 8px 24px rgba(23,36,43,.06);
  --shadow-lg:  0 2px 4px rgba(23,36,43,.05), 0 20px 48px rgba(23,36,43,.10);

  --radius:     18px;
  --radius-sm:  12px;

  --wrap:       1120px;
  --topbar-h:   64px;

  --ease:       cubic-bezier(.22,.8,.3,1);

  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-bottom: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--sea);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ─── 공통 레이아웃 ─────────────────────────────────────────── */

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 40px, 760px); }

section { position: relative; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
}

.h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4.2vw, 36px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}

.sec-lead {
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: clamp(15px, 2.2vw, 17px);
}

.muted { color: var(--ink-faint); font-size: .93em; }

/* ─── 버튼 ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--ease), background .22s var(--ease),
              box-shadow .22s var(--ease), color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--sea);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14,90,99,.26);
}
.btn--primary:hover { background: var(--sea-deep); box-shadow: 0 10px 26px rgba(14,90,99,.32); }

.btn--ghost {
  background: transparent;
  color: var(--sea-deep);
  border-color: rgba(14,90,99,.3);
}
.btn--ghost:hover { background: rgba(14,90,99,.06); border-color: var(--sea); }

.btn--small { padding: 9px 16px; font-size: 13.5px; background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn--small:hover { border-color: var(--sea); color: var(--sea-deep); }

.btn--block { width: 100%; padding-block: 17px; font-size: 16px; }

/* ─── 상단바 ────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: clamp(16px, 4vw, 36px);
  background: rgba(246,241,233,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.topbar.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(246,241,233,.94);
}

.topbar__mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.topbar__glyph { color: var(--sea); display: inline-flex; }
.topbar__name { font-size: 17px; }
.topbar__name em {
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
}

.topbar__nav {
  display: flex;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 600;
}
.topbar__nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--sea);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s var(--ease);
}
.topbar__nav a:hover,
.topbar__nav a.is-active { color: var(--sea-deep); }
.topbar__nav a:hover::after,
.topbar__nav a.is-active::after { transform: scaleX(1); }

.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--sea);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s var(--ease);
}
.topbar__cta:hover { background: var(--sea-deep); }

/* ─── HERO ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 11vw, 120px) 0 clamp(72px, 12vw, 130px);
  background:
    radial-gradient(90% 120% at 82% 0%, rgba(44,138,145,.16), transparent 58%),
    radial-gradient(70% 100% at 10% 100%, rgba(185,145,80,.12), transparent 60%),
    var(--sand);
}

.hero__media {
  position: absolute;
  inset: auto 0 -10% 0;
  height: 56%;
  pointer-events: none;
  opacity: .5;
}
.hero__wave {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 160px;
  border-radius: 46%;
  background: radial-gradient(ellipse at center, rgba(14,90,99,.10), transparent 70%);
  animation: drift 18s ease-in-out infinite;
}
.hero__wave--1 { bottom: 10%;  animation-delay: 0s;   }
.hero__wave--2 { bottom: 26%;  animation-delay: -6s;  opacity: .7; }
.hero__wave--3 { bottom: 42%;  animation-delay: -12s; opacity: .45; }

@keyframes drift {
  0%, 100% { transform: translateX(-3%) scaleY(1);    }
  50%      { transform: translateX(3%)  scaleY(1.18); }
}

.hero__inner {
  position: relative;
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(255,253,249,.9);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sea-light);
  box-shadow: 0 0 0 0 rgba(44,138,145,.55);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(44,138,145,0); }
  100% { box-shadow: 0 0 0 0  rgba(44,138,145,0); }
}

.hero__title {
  margin: 0 0 26px;
  font-size: clamp(36px, 8.4vw, 76px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.045em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  /* 받침이 잘리지 않도록 마스크 아래쪽을 넓히고 레이아웃은 그대로 유지합니다 */
  padding-bottom: .16em;
  margin-bottom: -.16em;
}
.hero__title .line__in {
  display: block;
  transform: translateY(102%);
  animation: riseIn .9s var(--ease) forwards;
}
.hero__title .line:nth-child(1) .line__in { animation-delay: .06s; }
.hero__title .line:nth-child(2) .line__in { animation-delay: .16s; }
.hero__title .line:nth-child(3) .line__in { animation-delay: .26s; }
.hero__title em {
  font-style: normal;
  color: var(--sea);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .09em;
  height: .14em;
  background: rgba(185,145,80,.3);
  border-radius: 2px;
  z-index: -1;
}

@keyframes riseIn { to { transform: translateY(0); } }

.hero__lead {
  max-width: 44ch;
  margin: 0 0 24px;
  font-size: clamp(16px, 2.6vw, 19px);
  color: var(--ink-soft);
  line-height: 1.85;
}
.hero__lead strong { color: var(--sea-deep); font-weight: 700; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.hero__chips li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,253,249,.78);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero__note {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* ─── 핵심 요약 ─────────────────────────────────────────────── */

.summary {
  padding: clamp(48px, 7vw, 76px) 0;
  background: var(--sea-deep);
  color: #EFF4F3;
}
.summary__title {
  margin: 0 0 16px;
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}
.summary__lead {
  max-width: 68ch;
  margin: 0 0 34px;
  color: rgba(239,244,243,.82);
  font-size: clamp(15px, 2.2vw, 16.5px);
  line-height: 1.9;
}
.summary__lead strong { color: #fff; }

.factlist {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 40px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.factlist__row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.factlist dt {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -.01em;
}
.factlist dd {
  margin: 0;
  font-size: 15px;
  color: rgba(239,244,243,.95);
  line-height: 1.6;
}
.factlist dd a { color: #fff; text-underline-offset: 3px; }

/* ─── 기전 (관리 순서) ──────────────────────────────────────── */

.mech {
  padding: clamp(60px, 9vw, 100px) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mech__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.mech__step {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 단계 사이 화살표 — 세 칸이 한 줄에 들어가는 폭에서만 표시 */
@media (min-width: 900px) {
  .mech__step + .mech__step::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--sea-light);
    border-right: 2px solid var(--sea-light);
    transform: translateY(-50%) rotate(45deg);
  }
}

.mech__no {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--gold);
}
.mech__how {
  margin: 0 0 12px !important;
  padding: 5px 12px;
  display: inline-block;
  border-radius: 999px;
  background: var(--mist);
  font-size: 12.5px !important;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--sea-deep) !important;
}

.mech__step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.mech__step p {
  margin: 0;
  font-size: 14.6px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.mech__step p strong { color: var(--ink); font-weight: 700; }

/* ─── 고민 선택 ─────────────────────────────────────────────── */

.finder { padding: clamp(60px, 9vw, 96px) 0 0; }

.finder__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.chip:hover { border-color: var(--sea-light); color: var(--sea-deep); }
.chip.is-on {
  background: var(--sea);
  border-color: var(--sea);
  color: #fff;
  box-shadow: 0 6px 16px rgba(14,90,99,.22);
}

/* ─── 프로그램 카드 ─────────────────────────────────────────── */

.program { padding: 34px 0 clamp(60px, 9vw, 100px); }

.sr-anchor {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease), opacity .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14,90,99,.25);
}
.card.is-hidden { display: none; }
.card.is-dim { opacity: .34; }

.card--mark {
  position: relative;
  border-color: rgba(185,145,80,.42);
}
.card--mark::before {
  content: "수술 후 관리";
  position: absolute;
  top: -11px; left: 24px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card__no {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--sea-light);
}
.card__tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sea-deep);
}

.card__title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.card__sub {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}
.card__body {
  margin: 0 0 18px;
  font-size: 14.8px;
  line-height: 1.82;
  color: var(--ink-soft);
}
.card__body strong { color: var(--ink); font-weight: 700; }

.card__points {
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}
.card__points li {
  position: relative;
  padding-left: 18px;
  font-size: 13.8px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.card__points li + li { margin-top: 5px; }
.card__points li::before {
  content: "";
  position: absolute;
  left: 2px; top: .68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sea-light);
}

.card__caution {
  margin: 16px 0 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(185,145,80,.09);
  font-size: 12.8px;
  line-height: 1.65;
  color: #7A5F2B;
}

.program__note {
  margin: 30px 0 0;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--mist);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.program__note a { color: var(--sea-deep); font-weight: 700; text-underline-offset: 3px; }

/* ─── 신비안의 기준 ─────────────────────────────────────────── */

.why {
  padding: clamp(60px, 9vw, 100px) 0;
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px 40px;
  margin-top: 40px;
}
.why__item { position: relative; }
.why__num {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--gold);
}
.why__item h3 {
  margin: 0 0 10px;
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.why__item p {
  margin: 0;
  font-size: 14.8px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ─── 관리 흐름 ─────────────────────────────────────────────── */

.flow { padding: clamp(60px, 9vw, 100px) 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__no {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sea);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.step p {
  margin: 0;
  font-size: 14.3px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ─── FAQ ───────────────────────────────────────────────────── */

.faq {
  padding: clamp(60px, 9vw, 100px) 0;
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.faq__list { margin-top: 36px; }

.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 {
  margin: 0;
  font-size: clamp(15.5px, 2.4vw, 17px);
  font-weight: 700;
  letter-spacing: -.025em;
  flex: 1;
}
.qa summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px; height: 11px;
  border-right: 2px solid var(--sea);
  border-bottom: 2px solid var(--sea);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease);
}
.qa[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.qa summary:hover h3 { color: var(--sea-deep); }

.qa__a {
  padding: 0 0 24px;
  max-width: 68ch;
}
.qa__a p {
  margin: 0;
  font-size: 15px;
  line-height: 1.88;
  color: var(--ink-soft);
}
.qa__a strong { color: var(--ink); font-weight: 700; }
.qa__a p + p { margin-top: 12px; }

.qa__list {
  margin: 14px 0;
  padding: 16px 18px;
  list-style: none;
  border-radius: var(--radius-sm);
  background: rgba(185,145,80,.07);
}
.qa__list li {
  position: relative;
  padding-left: 17px;
  font-size: 14.3px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.qa__list li + li { margin-top: 6px; }
.qa__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ─── 오시는 길 ─────────────────────────────────────────────── */

.location { padding: clamp(60px, 9vw, 100px) 0; }

.location__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  margin-top: 38px;
  align-items: start;
}

/* 그리드 칸은 기본 min-width:auto 라 긴 주소에서 넘칠 수 있습니다 */
.location__map,
.location__info { min-width: 0; }

.mapframe {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
  box-shadow: var(--shadow);
}
.mapframe iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
.mapframe__cap {
  margin: 0;
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.mapframe__cap strong { color: var(--ink); font-weight: 700; }

.location__maplinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.infolist {
  margin: 0;
  padding: 26px 26px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.infolist > div {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.infolist > div:last-child { border-bottom: 0; }
.infolist dt {
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--gold);
}
.infolist dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.infolist dd a { color: var(--sea-deep); font-weight: 700; }

.location__far {
  margin: 16px 0 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--mist);
  font-size: 14.2px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.location__far strong { color: var(--sea-deep); font-weight: 700; }

/* ─── 예약 폼 ───────────────────────────────────────────────── */

.reserve {
  padding: clamp(60px, 9vw, 100px) 0;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(44,138,145,.10), transparent 60%),
    var(--paper);
  border-top: 1px solid var(--line);
}

.form {
  margin-top: 30px;
  padding: 30px 28px 32px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.req { color: #C0563C; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(14,90,99,.12);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.form__consent { margin: 4px 0 20px; }
.form__consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  cursor: pointer;
}
.form__consent input {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--sea);
  flex-shrink: 0;
}

.form__status {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  min-height: 1.2em;
}
.form__status.is-err { color: #C0563C; }
.form__status.is-ok  { color: var(--sea-deep); font-weight: 600; }

.form__alt {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.form__alt a { color: var(--sea-deep); font-weight: 700; }

/* ─── 푸터 ──────────────────────────────────────────────────── */

.footer {
  padding: clamp(48px, 7vw, 72px) 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--sea-deep);
  color: rgba(239,244,243,.72);
  font-size: 13.8px;
}
.footer a { color: rgba(239,244,243,.92); }

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 50px;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
  color: #fff;
  letter-spacing: -.02em;
}
.footer__brand p { margin: 0 0 4px; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-content: flex-start;
}
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 인용 표기 */
.cite {
  display: block;
  margin-top: 4px;
  font-size: .92em;
  color: var(--ink-faint);
  font-style: normal;
}
.qa__a .cite { margin-top: 10px; font-size: 13px; }

/* 푸터 참고 자료 */
.footer__refs {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer__refs h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--gold);
}
.footer__refs > p {
  margin: 0 0 12px;
  font-size: 12.8px;
  color: rgba(239,244,243,.55);
}
.footer__refs ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.footer__refs li {
  position: relative;
  padding-left: 14px;
  font-size: 12.8px;
  line-height: 1.75;
  color: rgba(239,244,243,.72);
}
.footer__refs li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(185,145,80,.7);
}
.footer__refs li strong { color: rgba(239,244,243,.95); font-weight: 700; }
.footer__refs a { text-underline-offset: 3px; }
.footer__refs-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,.1);
  font-size: 12.2px;
  line-height: 1.75;
  color: rgba(239,244,243,.5);
}

.footer__legal {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.16);
  font-size: 12.6px;
  line-height: 1.8;
  color: rgba(239,244,243,.6);
}
.footer__biz { margin: 16px 0 0; font-size: 12.6px; color: rgba(239,244,243,.55); }
.footer__copy { margin: 10px 0 0; font-size: 12.4px; color: rgba(239,244,243,.45); }

/* ─── 모바일 하단 고정 액션바 ───────────────────────────────── */

.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform .34s var(--ease);
}
.actionbar.is-on { transform: translateY(0); }

.actionbar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 15px 4px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.actionbar__btn--primary { background: var(--sea); color: #fff; }

/* ─── 스크롤 리빌 ───────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ─── 반응형 ────────────────────────────────────────────────── */

@media (max-width: 1040px) {
  .topbar__nav { display: none; }
}

@media (max-width: 860px) {
  .location__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  .actionbar { display: flex; }
  .topbar__cta { padding: 8px 14px; font-size: 13px; }
  .factlist__row { grid-template-columns: 92px 1fr; gap: 10px; }
  .form { padding: 24px 20px 26px; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* 좁은 화면에서는 버튼 글자가 두 줄로 깨지지 않도록 가로 꽉 채워 쌓음 */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .location__maplinks .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .topbar__cta span { display: none; }
  .actionbar__btn { font-size: 13px; gap: 4px; }
  .btn { padding-inline: 20px; }
}

/* ─── 모션 최소화 설정 존중 ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__title .line__in { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ─── 인쇄 ──────────────────────────────────────────────────── */

@media print {
  .topbar, .actionbar, .hero__media, .finder__tabs { display: none !important; }
  body { background: #fff; padding: 0; }
  .card, .step, .infolist { break-inside: avoid; }
}

/* ── 매장 사진 ─────────────────────────────────────────────── */
.place {
  padding: clamp(60px, 9vw, 100px) 0;
  background: var(--mist);
  border-block: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 18px;
  margin: 36px 0 0;
}
@media (min-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  /* 10칸 격자: 세로 사진은 2칸, 가로 사진은 3칸 — 한 줄 높이가 비슷해집니다.
     순서가 아니라 클래스로 정해지므로 사진을 바꿔 끼워도 안전합니다. */
  .gallery { grid-template-columns: repeat(10, 1fr); }
  .gallery__item { grid-column: span 3; }
  .gallery__item--tall { grid-column: span 2; }
}
.gallery__item { margin: 0; }
.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  /* 사진은 원래 비율 그대로 — 잘라내지 않습니다 */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--paper);
}
.gallery__item figcaption {
  margin-top: 11px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ── 찾아오는 길 사진 ──────────────────────────────────────── */
.waypath {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0 0;
}
.waypath__step { margin: 0; }
.waypath__step img {
  display: block;
  width: 100%;
  height: auto;
  /* 사진은 원래 비율 그대로 — 간판이 잘리지 않게 */
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}
.waypath__step figcaption {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.waypath__step figcaption strong { color: var(--sea-deep); font-weight: 700; }
.waypath__no {
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.waypath__title {
  margin: 44px 0 6px;
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.waypath__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(14px, 2.1vw, 15.5px);
  line-height: 1.75;
}
.waypath__lead strong { color: var(--sea-deep); font-weight: 700; }
.waypath { margin-top: 20px; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.footer__links a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(239, 244, 243, .22);
  color: rgba(239, 244, 243, .88);
  font-size: 13px;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.footer__links a:hover {
  background: rgba(239, 244, 243, .1);
  border-color: rgba(239, 244, 243, .45);
}
