/* ==========================================================================
   BODA Eye Clinic — site styles (보다 안과)
   Clear · Precise · Light · Modern · Accessible
   흰 면 · 흑연색 글자 · 정밀한 헤어라인 · 코발트 한 가지(초점 · 현재 위치 · 숫자 · 가는 선)
   관리자가 바꾸지 않는 디자인 시스템 (폰트 · 색 · 간격 · 폭). 페이지 전용은 public/css/pages/*.css
   ========================================================================== */

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/plex-mono/IBMPlexMono-Regular-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/plex-mono/IBMPlexMono-Medium-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens */
:root {
    --bg: #FFFFFF;
    --bg-2: #F4F6F8;                  /* 아주 옅은 냉회색 면 */
    --bg-3: #E8ECF0;                  /* 이미지 자리 */
    --ink: #111417;                   /* 흑연 */
    --ink-2: #3D454D;                 /* 본문 보조 — 흰 면 10:1 */
    --ink-3: #5B646D;                 /* 라벨 · 캡션 — 흰 면 6:1, 회색 면 5.5:1 */
    --line: #DADFE4;                  /* 헤어라인 */
    --line-2: #C3CAD1;                /* 한 단계 진한 헤어라인 */
    --field: #7C8791;                 /* 입력 밑줄 — 3:1 이상 */
    --accent: #2346E8;                /* 코발트 — 흰 면 6.7:1 */
    --accent-2: #1A36C4;              /* 코발트 누름 · 진한 글자 */
    --accent-wash: #EEF2FE;           /* 고른 칸의 옅은 바탕 */
    --error: #B42318;

    --dark: #111417;
    --dark-ink: #F4F6F8;
    --dark-ink-2: #AEB6BE;
    --dark-line: #2E353C;
    --dark-accent: #8FA4FF;           /* 어두운 면 위 코발트 글자 — 7:1 */

    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --fs-body: 17px;
    --gutter: clamp(20px, 4vw, 56px);
    --col-gap: clamp(16px, 2vw, 32px);
    --maxw: 1440px;
    --header-h: 72px;
    --section-y: clamp(88px, 10vw, 160px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1099px) {
    :root { --header-h: 62px; }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
    font-feature-settings: "tnum" 1;      /* 숫자는 모두 같은 폭 — 시간 · 번호가 줄을 맞춘다 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: inherit; }
table { border-collapse: collapse; border-spacing: 0; }
strong { font-weight: 600; }

/* 포커스 — 코발트 2px, 어디서나 분명하게 */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

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

.skip-link {
    position: absolute; left: -9999px; top: 12px; z-index: 100;
    background: var(--accent); color: #fff; padding: 12px 16px; font-size: 15px; font-weight: 600;
}
.skip-link:focus { left: 12px; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
}

.mono { font-family: var(--mono); font-feature-settings: normal; letter-spacing: .02em; }

/* ---------------------------------------------------------------- type */
/* eyebrow — 영문은 고정폭 대문자(코발트), 한글은 짧은 선 뒤에 */
.eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow .ko {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-2);
}
.eyebrow .ko::before {
    content: "";
    width: 20px; height: 1px;
    background: var(--line-2);
}

.statement {
    margin-top: 22px;
    font-size: clamp(28px, 2.9vw, 44px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.03em;
    text-wrap: balance;
}

.lead {
    font-size: clamp(17px, 1.25vw, 19px);
    line-height: 1.75;
    color: var(--ink-2);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1.3;
    color: var(--ink);
    border-bottom: 1px solid currentColor;
    transition: color .3s var(--ease), gap .4s var(--ease);
}
.text-link:hover { color: var(--accent); gap: 16px; }
.text-link--small { font-size: 15px; }

/* 선 화살표 — 아이콘 폰트 없이 CSS 로 */
.arrow {
    position: relative;
    display: inline-block;
    width: 16px; height: 1.5px;
    background: currentColor;
    flex: none;
}
.arrow::after {
    content: "";
    position: absolute;
    right: 0; top: 50%;
    width: 7px; height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

/* 버튼 — 주 행동(예약)은 코발트, 보조는 흑연 테두리. 각진 모서리, 높이 52px */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 26px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1.2;
    text-align: center;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), gap .4s var(--ease);
}
.button:hover { background: var(--accent-2); border-color: var(--accent-2); gap: 18px; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button[disabled],
.button[aria-disabled="true"] { opacity: .4; cursor: default; pointer-events: none; }

/* ---------------------------------------------------------------- media */
.media {
    position: relative;
    overflow: hidden;
    background: var(--bg-2);                /* 일러스트(투명 SVG)는 옅은 냉회색 판 위에 놓인다 */
}
.media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-21x9 { aspect-ratio: 21 / 9; }

figcaption {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-3);
}
figcaption .mono { color: var(--accent); font-size: 12.5px; padding-top: 1px; }

/* 설명도 (inc.figure) — 흰 판 위 일러스트, 아래 FIG. 캡션 */
.figure__frame { background: var(--bg-2); padding: clamp(12px, 2vw, 28px); }
.figure__frame img { width: 100%; height: auto; }
.section--tint .figure__frame { background: var(--bg); }
/* 작은 화면: 그림 속 라벨이 읽히는 크기를 지키고, 그림 상자 안에서 옆으로 밀어 본다(페이지는 가로로 넘치지 않는다) */
@media (max-width: 640px) {
    .figure__frame { overflow-x: auto; overscroll-behavior-x: contain; }
    .figure__frame img { width: 720px; max-width: none; }
}

/* 눈금자 — 섹션 위의 가는 선 + 눈금. 장식이므로 aria-hidden */
.ruler {
    height: 9px;
    border-bottom: 1px solid var(--ink);
    background-image:
        linear-gradient(to right, var(--ink) 1px, transparent 1px),
        linear-gradient(to right, var(--line-2) 1px, transparent 1px);
    background-size: calc(100% / 12) 9px, calc(100% / 48) 5px;
    background-position: 0 100%, 0 100%;
    background-repeat: repeat-x;
}

/* 광학 고리 SVG (inc.optic) — 가는 선, 크기는 부모가 정한다 */
.optic { width: 100%; height: 100%; overflow: visible; }
.optic circle,
.optic line { vector-effect: non-scaling-stroke; }

/* ---------------------------------------------------------------- demo notice */
.demo-bar {
    position: relative;
    z-index: 60;
    background: var(--dark);
    color: var(--dark-ink);
}
.demo-bar__text {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 9px var(--gutter);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 14px;
    line-height: 1.5;
}
.demo-bar__label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--dark-accent);
}
.demo-bar__link {
    margin-left: auto;
    color: var(--dark-ink);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--dark-ink-2);
    text-underline-offset: 4px;
    white-space: nowrap;
}
.demo-bar__link + .demo-bar__link { margin-left: 0; }   /* 링크가 여럿이면 첫 링크만 오른쪽으로 민다 */
.demo-bar__link:hover { text-decoration-color: currentColor; }
/* 좁은 화면: 첫 줄에 DEMO · 제작 정보, 다음 줄에 고지 문구(링크가 문구 아래 오른쪽에 홀로 떨어지지 않게) */
@media (max-width: 640px) {
    .demo-bar__text > span { order: 1; flex-basis: 100%; }
}
/* 링크 네 개(시연 모드)도 320px에서 첫 줄에 들어가게 */
@media (max-width: 359px) {
    .demo-bar__text { column-gap: 10px; }
    .demo-bar__link { font-size: 13px; }
}
.demo-bar :focus-visible { outline-color: var(--dark-accent); }

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: transform .45s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { transform: none; background: var(--bg); }

.site-header__inner {
    height: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
    line-height: 1;
}
.site-logo__symbol { width: 28px; height: 28px; flex: none; }
.site-logo__mark {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .14em;
}
.site-logo__sub {
    padding-left: 12px;
    border-left: 1px solid var(--line);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink-2);
}

.site-nav { flex: 1; min-width: 0; }
.site-nav__groups { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.site-nav ul { display: flex; gap: clamp(16px, 1.7vw, 28px); }
.site-nav__groups > ul + ul {
    padding-left: clamp(18px, 2vw, 32px);
    border-left: 1px solid var(--line);
}
.site-nav a {
    position: relative;
    display: block;
    padding: 8px 0;
    font-size: 15.5px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--ink);
    transition: color .25s var(--ease);
}
.site-nav a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.is-current { color: var(--accent); }
.site-nav a.is-current::after { transform: scaleX(1); }
/* 헤더 아래 선에 현재 메뉴의 코발트 선이 닿도록 */
@media (min-width: 1100px) {
    .site-nav a::after { bottom: calc((var(--header-h) - 41px) / -2 - 1px); }
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}
.site-header__tel {
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: .02em;
    color: var(--ink-2);
    white-space: nowrap;
}
.site-header__tel:hover { color: var(--accent); }
.site-header__cta {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .25s var(--ease);
}
.site-header__cta:hover { background: var(--accent-2); }
.site-header__cta-short { display: none; }
.site-header__menu {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 2px;
    font-size: 15.5px;
    font-weight: 600;
}
.site-header__menu-lines {
    position: relative;
    width: 20px; height: 12px;
}
.site-header__menu-lines::before,
.site-header__menu-lines::after {
    content: "";
    position: absolute; left: 0; right: 0;
    height: 2px;
    background: currentColor;
    transition: transform .35s var(--ease), top .35s var(--ease);
}
.site-header__menu-lines::before { top: 1px; }
.site-header__menu-lines::after { top: 9px; }
.menu-open .site-header__menu-lines::before { top: 5px; transform: rotate(45deg); }
.menu-open .site-header__menu-lines::after { top: 5px; transform: rotate(-45deg); }
.site-header__menu-close { display: none; }
.menu-open .site-header__menu-open { display: none; }
.menu-open .site-header__menu-close { display: inline; }

/* 전체 메뉴 (태블릿 · 모바일) */
.site-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    overflow-y: auto;
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
}
.menu-open .site-menu { opacity: 1; visibility: visible; }
.site-menu__inner { max-width: 720px; display: grid; gap: 36px; }
.site-menu__group h2 {
    margin-bottom: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--accent-2);
}
.site-menu__group ul { border-top: 1px solid var(--line); }
.site-menu__group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(20px, 5.4vw, 26px);
    font-weight: 600;
    letter-spacing: -.02em;
}
.site-menu__group a:hover { color: var(--accent); }
.site-menu__info {
    display: grid;
    gap: 4px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink-2);
}
.site-menu__info a { font-family: var(--mono); color: var(--ink); }

@media (max-width: 1099px) {
    .site-nav, .site-header__tel { display: none; }
    .site-header__menu { display: inline-flex; }
    .site-header__actions { gap: 14px; }
    .site-header__cta { min-height: 40px; padding: 0 14px; }
}
@media (max-width: 519px) {
    .site-logo__sub { display: none; }
    .site-header__cta-long { display: none; }
    .site-header__cta-short { display: inline; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: var(--section-y) 0; }
.section--tight-top { padding-top: 0; }
.section--tint { background: var(--bg-2); }
.section--tint + .section--tight-top { padding-top: var(--section-y); }  /* 회색 면 바로 뒤에서는 위 여백을 되살린다 */

.section-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
    margin-bottom: clamp(44px, 5vw, 80px);
}
.section-head > :first-child { grid-column: 1 / span 7; }
.section-head > :nth-child(2) { grid-column: 9 / span 4; justify-self: start; }
.section-head > .text-link { justify-self: end; }
.section-head .lead { max-width: 520px; }
@media (max-width: 1099px) {
    .section-head > :first-child { grid-column: 1 / span 11; }
    .section-head > :nth-child(2) { grid-column: 1 / span 9; margin-top: 24px; }
    .section-head > .text-link { justify-self: start; }
}
@media (max-width: 767px) {
    .section-head > :first-child,
    .section-head > :nth-child(2) { grid-column: 1 / -1; }
    .section-head > :nth-child(2) { margin-top: 20px; }
}

/* reveal — 스크롤 때 한 번, 짧고 조용하게 */
.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- page head */
.page-head { padding: clamp(48px, 6.5vw, 112px) 0 clamp(48px, 5.5vw, 88px); }
.page-head__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
}
.page-head__text { grid-column: 1 / span 8; }
.page-head__title {
    margin-top: 24px;
    font-size: clamp(36px, 4.4vw, 64px);
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.page-head__lead {
    grid-column: 9 / span 4;
    font-size: clamp(17px, 1.25vw, 19px);
    line-height: 1.75;
    color: var(--ink-2);
}
.page-head__media { margin-top: clamp(48px, 5vw, 80px); }
.page-head__media--bleed { width: 100%; }
.page-head__lead.reveal { transition-delay: .1s; }

@media (max-width: 1099px) {
    .page-head__text { grid-column: 1 / span 11; }
    .page-head__lead { grid-column: 1 / span 9; margin-top: 28px; }
}
@media (max-width: 767px) {
    .page-head__text, .page-head__lead { grid-column: 1 / -1; }
    .page-head__title { margin-top: 18px; }
    .page-head__lead { margin-top: 22px; }
}

/* ---------------------------------------------------------------- facts (정보 표) */
.facts { border-top: 1px solid var(--line); }
.facts > div {
    display: grid;
    grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
    column-gap: var(--col-gap);
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16.5px;
    line-height: 1.65;
}
.facts dt { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.facts dd { color: var(--ink); }
.facts a,
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.facts a:hover,
.prose a:hover { color: var(--accent-2); }
.facts--strong { border-top: 2px solid var(--ink); }
@media (max-width: 519px) {
    .facts > div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}

/* 진료 시간 표 — 요일과 시각이 세로로 맞는다 */
.hours > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.hours > div:first-child { border-top: 1px solid var(--line); }
.hours dt { color: var(--ink-2); }
.hours dd { font-family: var(--mono); font-feature-settings: normal; font-size: .95em; letter-spacing: .01em; white-space: nowrap; }
.hours .is-today dt,
.hours .is-today dd { color: var(--accent); font-weight: 600; }
.hours-notes { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--ink-3); }
.hours-notes li { position: relative; padding-left: 16px; }
.hours-notes li::before { content: ""; position: absolute; left: 0; top: .85em; width: 7px; height: 1px; background: var(--ink-3); }

/* ---------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 0;
    font-size: 17.5px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
    transition: color .25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--accent); }
.faq__icon {
    position: relative;
    flex: none;
    width: 14px;
    height: 14px;
    margin-top: calc((1.6em - 14px) / 2);
}
.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 6px;
    height: 2px;
    background: currentColor;
    transition: transform .3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] > .faq__q .faq__icon::after { transform: rotate(0deg); }
.faq__item[open] > .faq__q { color: var(--accent); }
.faq__a {
    max-width: 44em;
    padding: 0 38px 24px 0;
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--ink-2);
}
.faq__a p + p { margin-top: .8em; }

/* ---------------------------------------------------------------- subnav */
/* 페이지 루트 <div> 바로 안에 둔다. 헤더가 숨으면 맨 위로 올라간다. */
.subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: top .45s var(--ease);
}
body:has(.site-header.is-hidden) .subnav { top: 0; }
.subnav__list {
    display: flex;
    gap: clamp(22px, 2.4vw, 40px);
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    counter-reset: subnav;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list::after { content: ""; flex: 0 0 1px; }
.subnav__list li { counter-increment: subnav; }
.subnav__list a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    font-size: 15.5px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--ink-2);
    transition: color .25s var(--ease);
}
.subnav__list a::before {
    content: counter(subnav, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-3);
}
.subnav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.subnav__list a:hover,
.subnav__list a.is-current,
.subnav__list a[aria-current="true"] { color: var(--ink); }
.subnav__list a.is-current::before,
.subnav__list a[aria-current="true"]::before { color: var(--accent); }
.subnav__list a.is-current::after,
.subnav__list a[aria-current="true"]::after { transform: scaleX(1); }
.subnav__list a:focus-visible { outline-offset: -3px; }
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 80px); }

/* ---------------------------------------------------------------- forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px var(--col-gap);
}
.form-grid > .field--full { grid-column: 1 / -1; }
.field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.field__label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
    padding: 0;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
}
.field__req {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-2);
}
.field__input {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--field);
    border-radius: 0;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    line-height: 1.5;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__input::placeholder { color: var(--ink-3); opacity: 1; }
.field__input:hover { border-color: var(--ink-2); }
.field__input:focus,
.field__input:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
textarea.field__input { min-height: 140px; resize: vertical; }
select.field__input { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
.field__select { position: relative; }
.field__select::after {
    content: "";
    position: absolute;
    right: 16px; top: 50%;
    width: 8px; height: 8px;
    border-right: 1.5px solid var(--ink-2);
    border-bottom: 1.5px solid var(--ink-2);
    transform: translateY(-75%) rotate(45deg);
    pointer-events: none;
}
.field__input[aria-invalid="true"],
.field.is-invalid .field__input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__hint,
.field__error { margin-top: 8px; font-size: 15px; line-height: 1.6; }
.field__hint { color: var(--ink-3); }
.field__error { color: var(--error); font-weight: 500; }
.field__error::before { content: "! "; font-family: var(--mono); }

.check {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.65;
    cursor: pointer;
}
.check input {
    position: absolute;
    left: 0; top: 1px;
    width: 24px; height: 24px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.check__box {
    position: relative;
    flex: none;
    width: 22px; height: 22px;
    margin-top: 2px;
    border: 1.5px solid var(--ink-2);
    background: var(--bg);
    transition: background-color .2s, border-color .2s;
}
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box::after {
    content: "";
    position: absolute;
    left: 6px; top: 2px;
    width: 6px; height: 11px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.check input[aria-invalid="true"] + .check__box { border-color: var(--error); }
.check a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* 선택지(라디오) — 헤어라인 칸, 고르면 코발트 테두리 + 옅은 바탕 */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--line-2);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-2);
    transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.choice:hover span { border-color: var(--ink-2); color: var(--ink); }
.choice input:checked + span { color: var(--accent-2); border-color: var(--accent); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice input:disabled + span { color: var(--line-2); border-style: dashed; cursor: not-allowed; }

.hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }

@media (max-width: 767px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------------------------------------------------------------- blocks (docs: blocks · compare) */
/* 블록은 자기 칸의 폭에 반응한다(컨테이너 쿼리). 넓으면 제목 왼쪽 4열 · 내용 오른쪽 7열, 좁으면 위아래 */
.blocks { container: blocks / inline-size; width: 100%; }
.blocks > * + * { margin-top: clamp(64px, 7vw, 112px); }

.block__heading {
    margin-bottom: 22px;
    font-size: clamp(22px, 1.7vw, 27px);
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -.025em;
}
.prose {
    max-width: 42em;
    font-size: var(--fs-body);
    line-height: 1.85;
    color: var(--ink-2);
}
.prose p + p { margin-top: 1em; }

@container blocks (min-width: 900px) {
    .block--text,
    .block--list,
    .block--steps,
    .block--facts,
    .block--faq,
    .block--notice,
    .block--quote,
    .block--image-medium,
    .block--cta,
    .block--compare {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--col-gap);
        align-items: start;
    }
    .block > .block__heading { grid-column: 1 / span 4; margin-bottom: 0; padding-top: 2px; }
    .block > .block__content { grid-column: 5 / span 8; }
    .block--compare > .block__content { grid-column: 1 / -1; margin-top: 28px; }
    .block--bare > .block__content { margin-top: 0; }
}

/* image */
.block__media-link { display: block; }
.block__media-link .media img { transition: opacity .4s var(--ease); }
.block__media-link:hover .media img { opacity: .9; }
.block--image figcaption { align-items: center; }
@container blocks (min-width: 900px) {
    .block--image-medium > * { grid-column: 5 / span 5; }
}

/* SVG 도해는 판 안에 다 보이게(라벨이 잘리지 않게). 사진은 그대로 판을 채운다 */
.block .media img[src*=".svg"] { object-fit: contain; }

/* image_text — align = 이미지 위치. 도해(SVG)는 그림 비율 4:3 판에 놓는다 */
.block-image-text__media .media:has(> img[src*=".svg"]) { aspect-ratio: 4 / 3; }
.block-image-text__media + .block-image-text__body { margin-top: 32px; }
@container blocks (min-width: 641px) and (max-width: 899px) {
    .block--image-medium { width: 80%; margin-left: auto; }
}
.block-image-text__body .text-link { margin-top: 32px; }
@container blocks (min-width: 700px) {
    .block--image-text {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--col-gap);
        align-items: center;
    }
    .block-image-text__media + .block-image-text__body { margin-top: 0; }
    .block--image-left .block-image-text__media { grid-column: 1 / span 6; }
    .block--image-left .block-image-text__body { grid-column: 8 / span 5; }
    .block--image-right .block-image-text__media { grid-column: 7 / span 6; grid-row: 1; }
    .block--image-right .block-image-text__body { grid-column: 1 / span 5; grid-row: 1; }
}

/* quote */
.block-quote__text p {
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.03em;
}
.block-quote__text p::before { content: ""; display: block; width: 40px; height: 2px; margin-bottom: 24px; background: var(--accent); }
.block-quote__cite {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 15.5px;
    color: var(--ink-2);
}
@container blocks (min-width: 900px) {
    .block--quote > * { grid-column: 5 / span 8; }
}

/* list */
.block-list { border-top: 1px solid var(--line); counter-reset: block-list; }
.block-list li {
    position: relative;
    padding: 15px 0 15px 44px;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-body);
    line-height: 1.7;
    counter-increment: block-list;
}
.block-list li::before {
    content: counter(block-list, decimal-leading-zero);
    position: absolute;
    left: 0; top: 17px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
}

/* steps — 진한 윗선, 번호(코발트) · 제목 · 설명 */
.block-steps { border-top: 2px solid var(--ink); }
.block-steps__item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 12px;
    padding: 20px 0 22px;
    border-bottom: 1px solid var(--line);
}
.block-steps__index {
    padding-top: .3em;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}
.block-steps__title { font-size: 18px; font-weight: 600; line-height: 1.55; letter-spacing: -.015em; }
.block-steps__body {
    grid-column: 2;
    margin-top: 6px;
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--ink-2);
}
.block-steps__body p + p { margin-top: .8em; }
@container blocks (min-width: 700px) {
    .block-steps__item { grid-template-columns: 56px minmax(0, 32%) minmax(0, 1fr); column-gap: var(--col-gap); }
    .block-steps__body { grid-column: 3; margin-top: 0; }
}

/* notice — 주의사항 · 가능한 부작용. 회색 면 + 진한 왼쪽 선이 아니라, 진한 윗선과 짧은 대시 */
.block-notice { border-top: 2px solid var(--ink); background: var(--bg-2); padding: 6px 24px 10px; }
.block-notice li {
    position: relative;
    padding: 14px 0 14px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ink-2);
}
.block-notice li:last-child { border-bottom: 0; }
.block-notice li::before {
    content: "";
    position: absolute;
    left: 0; top: calc(14px + .87em);
    width: 9px; height: 2px;
    background: var(--accent);
}

/* gallery */
/* 2장(pair)은 Home 시설 영역처럼 같은 크기 16:10 두 장이 한 윗선에 놓이고, 좁은 화면에서는 한 장씩 본문 폭으로 */
.block--gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 36px; }
.block-gallery--single > * { grid-column: 1 / -1; }
.block-gallery--pair .media { aspect-ratio: 16 / 10; }
@container blocks (max-width: 640px) {
    .block-gallery--pair > * { grid-column: 1 / -1; }
}
@container blocks (min-width: 641px) and (max-width: 899px) {
    .block-gallery--single > * { width: 80%; justify-self: end; }
}
@container blocks (min-width: 900px) {
    .block--gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(48px, 4vw, 72px); }
    .block--gallery > * { grid-column: span 4; }
    .block-gallery--single > * { grid-column: 5 / span 6; }
    .block-gallery--pair > * { grid-column: span 6; }
}

/* cta — 진한 윗선, 왼쪽 큰 문장, 오른쪽 설명과 버튼 하나 */
.block--cta { border-top: 2px solid var(--ink); padding-top: clamp(28px, 3vw, 48px); }
.block-cta__heading {
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.03em;
    text-wrap: balance;
}
.block-cta__aside { margin-top: 24px; }
.block-cta__aside .prose { color: var(--ink-2); }
.block-cta__aside .button { margin-top: 28px; }
@container blocks (min-width: 900px) {
    .block--cta { align-items: end; }
    .block-cta__heading { grid-column: 1 / span 6; }
    .block-cta__aside { grid-column: 8 / span 5; margin-top: 0; }
    .block-cta__aside .button:first-child { margin-top: 0; }
}

/* compare — 비교표. 넓으면 표, 좁으면 항목별로 쌓인다 */
.compare { width: 100%; table-layout: fixed; border-top: 2px solid var(--ink); }
.compare th,
.compare td {
    padding: 18px 20px 18px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 16px;
    line-height: 1.7;
}
.compare thead th {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 650;
    letter-spacing: -.02em;
    color: var(--ink);
    border-bottom-color: var(--ink);
}
.compare thead th:first-child {
    width: 22%;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink-3);
    vertical-align: bottom;
}
.compare thead th small {
    display: block;
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .04em;
    color: var(--ink-3);
}
.compare tbody th {
    width: 22%;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
}
.compare tbody td { color: var(--ink-2); }
.compare tbody tr:hover td,
.compare tbody tr:hover th { background: linear-gradient(var(--bg-2), var(--bg-2)) no-repeat; }
.compare-note {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-3);
}
.compare-note::before {
    content: "";
    flex: none;
    width: 8px; height: 8px;
    margin-top: .55em;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
}
@container blocks (max-width: 759px) {
    .compare { table-layout: auto; }
    .compare thead { display: none; }
    .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
    .compare tr { padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
    .compare tbody th { padding: 0 0 8px; border: 0; font-size: 17px; }
    .compare td {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px dashed var(--line);
        font-size: 16px;
    }
    .compare td:last-child { border-bottom: 0; }
    .compare td::before {
        content: attr(data-col);
        font-size: 14.5px;
        font-weight: 600;
        color: var(--accent-2);
    }
    .compare tbody tr:hover td,
    .compare tbody tr:hover th { background: none; }
}

/* ---------------------------------------------------------------- depth map (검사 깊이 지도 — inc.depth_map) */
.depth-map { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; }
.depth-map svg { width: 100%; height: 100%; overflow: visible; }
.depth-map__ring { fill: none; stroke: var(--line-2); stroke-width: 1; transition: stroke .3s var(--ease), stroke-width .3s var(--ease); }
.depth-map__ring.is-active { stroke: var(--accent); stroke-width: 1.5; }
.depth-map__axis { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.depth-map__core { fill: var(--accent); }
.depth-map__tick { fill: var(--bg); stroke: var(--line-2); stroke-width: 1; transition: fill .3s var(--ease), stroke .3s var(--ease); }
.depth-map__tick.is-active { stroke: var(--accent); }
.depth-map__num { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); text-anchor: middle; dominant-baseline: central; }
.depth-map__num.is-active { fill: var(--accent); }
.depth-map__label { font-family: var(--font); font-size: 12.5px; fill: var(--ink-2); dominant-baseline: central; }
.depth-map g.is-hover .depth-map__ring { stroke: var(--accent); stroke-width: 2.5; }
.depth-map g.is-hover .depth-map__tick { fill: var(--accent); stroke: var(--accent); }
.depth-map g.is-hover .depth-map__num { fill: #fff; }
.section--tint .depth-map__tick { fill: var(--bg-2); }
.section--tint .depth-map g.is-hover .depth-map__tick { fill: var(--accent); }
.depth-map figcaption { justify-content: center; }

/* ---------------------------------------------------------------- exam rows (검사 목록 — Home · 진료 영역 · 진료 상세) */
.exam-list { border-top: 2px solid var(--ink); }
.exam-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    column-gap: 16px;
    align-items: baseline;
    padding: 20px 12px 20px 0;
    border-bottom: 1px solid var(--line);
    transition: background-color .25s var(--ease), padding .3s var(--ease);
}
.exam-row__num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); padding-left: 2px; }
.exam-row__name { display: block; font-size: clamp(18.5px, 1.4vw, 21px); font-weight: 650; letter-spacing: -.02em; line-height: 1.4; }
.exam-row__purpose { display: block; margin-top: 6px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.exam-row__time { max-width: 150px; font-size: 14.5px; line-height: 1.5; text-align: right; color: var(--ink-3); }
a.exam-row:hover,
a.exam-row:focus-visible { background: var(--bg); padding-left: 12px; }
a.exam-row:hover .exam-row__name { color: var(--accent-2); }
.section:not(.section--tint) a.exam-row:hover { background: var(--bg-2); }
@media (max-width: 767px) {
    .exam-row { grid-template-columns: 40px minmax(0, 1fr); padding-right: 0; }
    .exam-row__time { grid-column: 2; margin-top: 6px; max-width: none; text-align: left; }
}

/* ---------------------------------------------------------------- index rows (진료 · 검사 색인) */
.index-list { border-top: 2px solid var(--ink); }
.index-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    column-gap: var(--col-gap);
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    transition: background-color .25s var(--ease);
}
a.index-row:hover { background: var(--bg-2); }
.index-row__num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.index-row__title { font-size: clamp(19px, 1.5vw, 22px); font-weight: 650; letter-spacing: -.02em; line-height: 1.4; }
.index-row__en { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; color: var(--ink-3); }
.index-row__text { margin-top: 8px; font-size: 16.5px; line-height: 1.75; color: var(--ink-2); max-width: 44em; }
.index-row__meta { font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.index-row .arrow { color: var(--ink); transition: transform .3s var(--ease), color .3s; }
a.index-row:hover .arrow { transform: translateX(4px); color: var(--accent); }
a.index-row:hover .index-row__title { color: var(--accent-2); }

/* 칩 — 검사 이름 같은 짧은 연결 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--bg);
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chip .mono { font-size: 11.5px; color: var(--accent); }
a.chip:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------------------------------------------------------------- doctor roster */
.roster { border-top: 2px solid var(--ink); }
.roster__row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto;
    column-gap: var(--col-gap);
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.roster__photo { width: 132px; }
.roster__name { font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; }
.roster__title { margin-top: 4px; font-size: 15.5px; color: var(--ink-2); }
.roster__label { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.roster__value { font-size: 16.5px; line-height: 1.7; }
.roster__value ul li + li { margin-top: 2px; }
.roster__value a { border-bottom: 1px solid var(--line-2); }
.roster__value a:hover { color: var(--accent); border-bottom-color: currentColor; }
.roster__link { align-self: center; }

@media (max-width: 1099px) {
    .roster__row { grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1fr); row-gap: 16px; }
    .roster__photo { width: 112px; grid-row: span 2; }
    .roster__row > :nth-child(4) { grid-column: 2 / -1; }
    .roster__link { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 599px) {
    .roster__row { grid-template-columns: 88px minmax(0, 1fr); column-gap: 18px; }
    .roster__photo { width: 88px; grid-row: span 1; }
    .roster__row > :nth-child(3),
    .roster__row > :nth-child(4),
    .roster__link { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- reservation cta (Home · 페이지 끝) */
.reserve { border-top: 1px solid var(--line); }
.reserve__grid { align-items: start; }
.reserve__body { grid-column: 1 / span 6; }
.reserve__title {
    margin-top: 22px;
    font-size: clamp(36px, 4.2vw, 64px);
    font-weight: 650;
    line-height: 1.16;
    letter-spacing: -.04em;
}
.reserve__body .lead { max-width: 520px; margin-top: 26px; }
.reserve__actions { display: grid; gap: 12px; max-width: 520px; margin-top: 40px; }
.reserve__action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 16px;
    padding: 18px 22px;
    border: 1px solid var(--ink);
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.reserve__action strong { font-size: 18px; font-weight: 650; }
.reserve__action span:not(.arrow) { grid-column: 1; font-size: 15px; color: var(--ink-2); }
.reserve__action .arrow { grid-row: 1 / span 2; grid-column: 2; width: 20px; }
.reserve__action--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.reserve__action--primary span:not(.arrow) { color: rgba(255, 255, 255, .86); }
.reserve__action--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.reserve__action:not(.reserve__action--primary):hover { background: var(--ink); color: #fff; }
.reserve__action:not(.reserve__action--primary):hover span:not(.arrow) { color: rgba(255, 255, 255, .8); }
.reserve__tel { display: inline-flex; gap: 10px; align-items: baseline; margin-top: 24px; font-size: 16px; color: var(--ink-2); }
.reserve__tel a { font-family: var(--mono); font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.reserve__tel a:hover { color: var(--accent); }
.reserve__info { grid-column: 8 / span 5; }
.reserve__info h3 { margin-bottom: 14px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.reserve__info .hours { font-size: 17px; }
.reserve__place { margin-top: 36px; font-size: 16.5px; line-height: 1.7; }
.reserve__place span { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-3); }

@media (max-width: 1099px) {
    .reserve__body { grid-column: 1 / -1; }
    .reserve__info { grid-column: 1 / span 8; margin-top: 64px; }
}
@media (max-width: 767px) {
    .reserve__info { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- footer */
.site-footer {
    padding: clamp(64px, 6vw, 96px) 0 40px;
    background: var(--bg-2);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink-2);
    border-top: 1px solid var(--line);
}
.site-footer__top {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 48px;
}
.site-footer__brand { grid-column: 1 / span 3; }
.site-logo--footer { color: var(--ink); }
.site-footer__brand p { margin-top: 20px; font-size: 17px; font-weight: 600; color: var(--ink); }
.site-footer__nav {
    grid-column: 4 / span 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--col-gap);
}
.site-footer h2 {
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}
.site-footer__nav li + li { margin-top: 4px; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__tel { font-family: var(--mono); }
.site-footer__hours { grid-column: 9 / span 4; }
.site-footer__hours .hours { font-size: 15px; }
.site-footer__hours .hours > div { padding: 8px 0; }

.site-footer__bottom {
    margin-top: clamp(56px, 5vw, 80px);
    padding-top: 24px;
    border-top: 1px solid var(--line-2);
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-3);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-footer__notice { margin-top: 8px; max-width: 820px; }
.site-footer__meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.site-footer__meta span:last-child { display: flex; gap: 20px; }
.site-footer__meta a { color: var(--ink-2); }
.site-footer__meta a:hover { color: var(--accent); }

/* 제작사 정보 · 데모 고지 (inc.devteam_credit) */
.devteam-credit {
    margin-top: 32px;
    padding: 22px 24px;
    border: 1px solid var(--line-2);
    background: var(--bg);
}
.devteam-credit__title {
    font-size: 15px;
    font-weight: 650;
    color: var(--accent-2);
}
.devteam-credit__notice { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 900px; }
.devteam-credit__info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--ink-3);
}
.devteam-credit__info > div { display: flex; gap: 8px; }
.devteam-credit__info dt { color: var(--ink-3); }
.devteam-credit__info dd { color: var(--ink-2); }
.devteam-credit__info a { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.devteam-credit__info a:hover { color: var(--accent); text-decoration-color: currentColor; }

@media (max-width: 1099px) {
    .site-footer__brand { grid-column: 1 / -1; }
    .site-footer__nav { grid-column: 1 / span 7; }
    .site-footer__hours { grid-column: 8 / span 5; }
}
@media (max-width: 767px) {
    .site-footer__nav { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
    .site-footer__hours { grid-column: 1 / -1; }
    .site-footer__meta { flex-direction: column; }
    .devteam-credit { padding: 18px; }
}

/* ---------------------------------------------------------------- popup (Home 만, 기본은 꺼짐) */
.popup-layer {
    position: fixed;
    right: var(--gutter);
    bottom: 24px;
    z-index: 60;
    width: min(360px, calc(100vw - 2 * var(--gutter)));
    background: var(--bg);
    border: 1px solid var(--ink);
    box-shadow: 0 18px 48px rgba(17, 20, 23, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.popup-layer.is-open { opacity: 1; visibility: visible; transform: none; }
.menu-open .popup-layer { opacity: 0; visibility: hidden; }
.popup-layer__items { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.popup { flex: 0 0 100%; scroll-snap-align: start; }
.popup + .popup { border-left: 1px solid var(--line); }
.popup__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.popup__media img { width: 100%; height: 100%; object-fit: cover; }
.popup__body { padding: 20px 22px 22px; }
.popup__title { font-size: 18px; font-weight: 650; letter-spacing: -.015em; line-height: 1.45; }
.popup__text { margin-top: 8px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.popup__body .text-link { margin-top: 16px; }
.popup-layer__bar {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    font-size: 14.5px;
}
.popup-layer__bar button { min-height: 46px; padding: 0 22px; color: var(--ink-2); }
.popup-layer__bar button:hover { color: var(--accent); }
@media (max-width: 767px) {
    .popup-layer { left: 12px; right: 12px; bottom: 12px; width: auto; }
    .popup__media { display: none; }
}

/* ---------------------------------------------------------------- touch targets */
@media (pointer: coarse) {
    .text-link,
    .site-logo { position: relative; }
    .text-link::before,
    .site-logo::before {
        content: "";
        position: absolute;
        inset: -12px -6px;
    }
    .facts a,
    .prose a,
    .roster__value a { position: relative; }
    .facts a::before,
    .prose a::before,
    .roster__value a::before { content: ""; position: absolute; inset: -12px -4px; }
    .site-footer__nav li + li { margin-top: 0; }
    .site-footer__nav a { display: inline-block; padding: 10px 0; }
    .site-footer__meta a,
    .site-menu__info a,
    .demo-bar__link,
    .devteam-credit__info a { display: inline-block; padding: 10px 0; margin-top: -10px; margin-bottom: -10px; }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- print */
@media print {
    .demo-bar, .site-header, .site-menu, .subnav, .popup-layer { display: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* 모바일: 섹션 문장의 강제 줄바꿈은 풀고 화면 폭에 맞게 흐르게 한다 */
@media (max-width: 767px) {
    .statement br { display: none; }
}
