/* =========================================================
   랩29 성형외과 — 공통 디자인
   색·글꼴·크기·여백은 아래 :root 에 모아 두었습니다.
   여기 값만 바꾸면 모든 페이지에 함께 적용됩니다.
   ========================================================= */

@font-face {
  font-family: "Elms Sans";
  src: url("/assets/fonts/elms-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 색 */
  --c-text: rgb(40, 40, 42);        /* 글자 */
  --c-bg: rgb(250, 250, 250);       /* 기본 배경 */
  --c-muted: #6b6b6e;               /* 흐린 글자 */
  --c-line: rgb(40, 40, 42);        /* 선 (글자색과 같음) */
  --c-white: #fff;
  --c-beige: rgb(245, 245, 243);    /* 베이지 회색 섹션, 꼬리말 글자 */
  --c-black: #000;                  /* 버튼, 꼬리말 배경 */

  /* 섹션 배경 (원본 테마 이름 그대로) */
  --bg-light: #fff;
  --bg-white: rgb(250, 250, 250);
  --bg-bright: rgb(245, 245, 243);

  /* 글꼴 */
  --font-body: "Noto Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-kr: "Noto Sans KR", "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-brand: "Elms Sans", var(--font-body);   /* 메뉴·큰 제목 */

  /* 글자 크기 (PC) */
  --fs-sm: 13.5px;      /* 본문 작은 글 */
  --fs-base: 15px;      /* 본문 */
  --fs-lg: 28.9px;      /* 강조 문단 */
  --fs-h1: 73.4px;
  --fs-h2: 42.7px;
  --fs-h3: 21.2px;
  --fs-h4: 15px;
  --fs-hero: 18.4vw;    /* 시술 페이지 맨 위 아주 큰 제목 */
  --fs-nav: 13.5px;
  --fs-btn: 15.8px;

  /* 여백·폭 */
  --gutter: 4vw;                 /* 좌우 여백 */
  --max: 1500px;                 /* 내용 최대 폭 */
  --gap: 20px;                   /* 칸 사이 간격 */
  --header-h: 72px;
  --sec-pad: 84px;               /* 섹션 위아래 여백 (보통) */
  --sec-pad-sm: 42px;            /* 섹션 위아래 여백 (작게) */
}

@media (max-width: 767px) {
  :root {
    --fs-sm: 13px;
    --fs-base: 14.4px;
    --fs-lg: 22px;
    --fs-h1: 50.4px;
    --fs-h2: 31.2px;
    --fs-h3: 17.8px;
    --gutter: 6vw;
    --sec-pad: 56px;
    --sec-pad-sm: 32px;
  }
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.06em; }
h1 { font-size: var(--fs-h1); line-height: 1.01; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.17; }
h4 { font-size: var(--fs-h4); line-height: 1.4; font-weight: 600; letter-spacing: 0; }
hr, .rule { border: 0; border-top: 1px solid var(--c-line); margin: 0; }
button { font: inherit; color: inherit; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--c-muted); }

/* 화면에는 안 보이지만 읽기 프로그램에는 읽히는 글 */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10001;
  background: var(--c-black); color: #fff; padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* 본문 글 묶음 (원본 '텍스트 블록') */
.text p { font-size: var(--fs-base); line-height: 1.5; }
.text p.sm, p.sm { font-size: var(--fs-sm); line-height: 1.5; }
.text p.lg, p.lg { font-size: var(--fs-lg); line-height: 1.5; }
.text ul, .text ol { margin: 0 0 1em; padding-left: 1.4em; font-size: var(--fs-base); line-height: 1.5; }
.text li { margin: 0 0 .25em; }
.text a { text-underline-offset: 3px; }
.text p:empty { display: none; }

/* ---------- 레이아웃 ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { position: relative; padding: var(--sec-pad) 0; }
.section--sm { padding: var(--sec-pad-sm) 0; }
.section--top { padding-top: calc(var(--header-h) + var(--sec-pad-sm)); } /* 머리말 아래에서 시작하는 첫 섹션 */
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--bg-white); }
.bg-bright { background: var(--bg-bright); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 767px) {
  .split, .cols-4, .cols-3 { grid-template-columns: 1fr; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 59px; padding: 18px 26.4px;
  background: var(--c-black); color: #fff; border: 2px solid var(--c-black);
  font-family: var(--font-kr); font-size: var(--fs-btn); font-weight: 600; letter-spacing: .02em;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .8; }
.btn--outline { background: transparent; color: var(--c-black); min-height: 62px; }
.btn--block { display: flex; width: 100%; }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* =========================================================
   머리말 (header)
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__in {
  height: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
}
.logo { flex: none; display: block; }
.logo img { width: 174px; height: auto; }
.nav { display: flex; align-items: center; gap: 15px; flex-wrap: nowrap; }
.nav a {
  font-family: var(--font-brand); font-size: var(--fs-nav); font-weight: 600;
  text-decoration: none; white-space: nowrap; line-height: 20px;
  text-underline-offset: 4px;
}
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.social { display: flex; align-items: center; gap: 15px; }
.social a { display: block; width: 20px; height: 20px; }
.social svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* 언어 메뉴 (지구본) */
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px;
  cursor: pointer; font-size: 13px; letter-spacing: .02em;
}
.lang__btn svg { width: 22px; height: 22px; }
.lang__menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
  background: #fff; border: 1px solid #e6e6e6; box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 6px 0; margin: 0; list-style: none;
}
.lang.open .lang__menu { display: block; }
.lang__menu a { display: block; padding: 10px 18px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.lang__menu a:hover { background: #f5f5f5; }
.lang__menu a[aria-current="true"] { font-weight: 600; }

/* 햄버거 버튼 (모바일) */
.burger {
  display: none; width: 40px; height: 40px; background: none; border: 0; padding: 0; cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 6px; right: 6px; height: 1px; background: currentColor;
  transition: transform .25s, top .25s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 24px; }
.menu-open .burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* 모바일 메뉴 (전체 화면) */
.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 999;
  background: var(--c-bg); overflow-y: auto;
  display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__lang { position: relative; background: #f2f2f2; padding: 14px var(--gutter); }
.mobile-menu__lang .lang__btn { font-size: 17px; gap: 8px; padding: 4px 0; }
.mobile-menu__lang .lang__btn svg { width: 24px; height: 24px; }
.mobile-menu__lang .caret {
  width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid currentColor; margin-left: 2px;
}
.mobile-menu__lang .lang__menu { left: var(--gutter); right: auto; top: calc(100% - 6px); border-color: #ccc; }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 0 40px; }
.mobile-menu__nav a {
  font-family: var(--font-brand); font-size: 33px; font-weight: 600; line-height: 1.3;
  text-decoration: none;
}
.mobile-menu .social { justify-content: center; gap: 22px; margin: auto 0 40px; }

@media (max-width: 1000px) {
  .nav, .site-header .social, .header-right > .lang { display: none; }
  .burger { display: block; }
  .logo img { width: 145px; }
}

/* =========================================================
   맨 위 큰 화면 (배경 동영상/사진)
   ========================================================= */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero > .wrap { position: relative; z-index: 1; }

/* 홈 */
.hero--home { min-height: 125vh; display: flex; align-items: flex-end; padding-bottom: 0; }
.hero--home .wrap { padding-bottom: 0; }
.hero--home .hero__rule { padding: 30px 0; }
.hero--home .split { padding: 10px 0; }
.hero--home h2 { font-size: var(--fs-h2); }

/* 시술·프로모션 페이지: 아주 큰 제목 */
.hero--big { min-height: 100vh; display: flex; align-items: flex-end; padding: var(--sec-pad-sm) 0; }
.hero--big h1 {
  font-size: var(--fs-hero); line-height: 1; letter-spacing: -0.06em;
  margin: 0 0 22px; white-space: nowrap;
}
.hero--big .rule { margin: 0 0 30px; }
.hero--big .split { margin-bottom: 30px; }
.hero--big .split .text p:not(.lg) { font-size: var(--fs-base); }
.hero--proc { min-height: 86vw; }  /* 시술 페이지: 원본처럼 화면 폭에 비례한 높이 */

/* =========================================================
   홈: 프로모션 카드
   ========================================================= */
.promo-title { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.06em; line-height: 1.5; margin: 0 0 66px; }
.promo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.promo-card { text-align: center; }
.promo-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.promo-card h2 { font-size: 27.4px; line-height: 1.1; margin: 22px 0 22px; }
.promo-nav { display: none; }

/* 홈: 시술 4칸 */
.proc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 70px; }
.proc-card { display: flex; flex-direction: column; }
.proc-card img { width: 100%; aspect-ratio: 268 / 352; object-fit: cover; margin-bottom: 11px; }
.proc-card .rule { margin: 20px 0; }
.proc-card .list { margin: 0; }
.proc-card .desc { margin: 0 0 11px; }
.proc-card .btn { margin-top: auto; }
.section--promo { padding-bottom: 224px; }
.section--procs { padding-top: 51px; }

/* 영어 홈: 시술 4칸의 줄 높이를 서로 맞춤 (원본처럼 버튼까지 한 줄) */
.proc-cards--eq { grid-template-rows: repeat(7, auto); row-gap: 0; }
.proc-cards--eq .proc-card { display: grid; grid-row: span 7; grid-template-rows: subgrid; }
.proc-cards--eq .proc-card .btn { align-self: end; }
.pipe-list { margin: 0; padding-left: 1.2em; }
.pipe-list li { font-size: var(--fs-sm); margin: 0; }
@media (min-width: 768px) {
  .pipe-list { padding: 0; list-style: none; }
  .pipe-list li { display: inline; }
  .pipe-list li + li::before { content: "  |  "; white-space: pre; }
}
.ig-single iframe { width: 379px; max-width: 100%; height: 681px; border: 0; display: block; background: #fff; }

/* 홈: 채널 (인스타·유튜브 옆으로 넘기기) */
.ch-row { margin-bottom: 36px; }
.ch-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.ch-head h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.ch-head a { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.ch-scroll {
  display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px;
}
.ch-scroll > * { scroll-snap-align: start; }
.ch-ig-row { grid-auto-columns: calc((100% - 14px * 3) / 4); }
.ch-yt-row { grid-auto-columns: calc((100% - 14px * 2) / 3); }
.ch-ig { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: #f2f2f2; }
.ch-ig iframe { position: absolute; left: 0; top: -54px; width: 100%; height: calc(100% + 200px); border: 0; }
.ch-title { font-size: 14px; line-height: 1.45; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-more { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: var(--c-text); color: #fff; text-decoration: none; }
.ch-more:hover { background: #000; }
.ch-more__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.ch-more__txt { font-size: 15px; line-height: 1.5; text-align: center; }
@media (max-width: 767px) {
  .ch-ig-row { grid-auto-columns: 44%; }
  .ch-yt-row { grid-auto-columns: 85%; }
  .ch-row { margin-bottom: 28px; }
}

/* 유튜브: 썸네일 → 누르면 그 자리에서 재생 */
.yt { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: #000; cursor: pointer; border: 0; padding: 0; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.yt:hover img { opacity: .85; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 60px; height: 42px; margin: -21px 0 0 -30px;
  background: rgba(255, 0, 0, .92); border-radius: 10px; }
.play::after { content: ""; position: absolute; left: 24px; top: 13px;
  border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; }
.ch-more .play { position: relative; left: auto; top: auto; margin: 0; }

/* =========================================================
   시술 페이지: 서비스(아코디언) + 사진
   ========================================================= */
.services h2 { font-size: 72px; line-height: 1; margin: 0 0 74px; }
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; align-items: start; }
.services__img img { width: 100%; aspect-ratio: 551 / 824; object-fit: cover; }
.services__btn { grid-column: 1; margin-top: 47px; }
.services .btn { min-width: 233px; min-height: 62px; }

/* 아코디언 (details) */
.acc { border-bottom: 1px solid var(--c-line); }
.acc details { border-top: 1px solid var(--c-line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 0; min-height: 61px;
  font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.06em; line-height: 1.45;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
  transition: transform .2s;
}
.acc details[open] > summary::after { transform: rotate(45deg); }
.acc .acc__body { padding: 0 0 24px; }
.acc .acc__body p, .acc .acc__body li { font-size: var(--fs-base); line-height: 1.5; }
.acc .acc__body ul, .acc .acc__body ol { padding-left: 1.4em; margin: 0 0 1em; }
.acc--faq, .acc--faq details { border-color: #000; }
.acc--faq summary { padding: 30px 0; color: #000; }
.services { padding-bottom: 121px; }
.faq { padding-top: 79px; }
.faq h1 { margin: 0 0 35px; }

/* 코성형: 재료 */
.materials h2 { margin: 0 0 30px; }
.materials .rule { margin: 30px 0; }

/* =========================================================
   About
   ========================================================= */
.section--about { padding: calc(var(--header-h) + 32px) 0 105px; }
.about-intro { display: grid; grid-template-columns: 527fr 576fr; gap: 60px; align-items: start; }
.about-intro__img img { width: 100%; aspect-ratio: 527 / 785; object-fit: cover; }
.about-intro__text { padding-top: 109px; }
.about-intro h1 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; margin: 30px 0; }
.about-intro p { font-size: 15.5px; line-height: 1.85; letter-spacing: -0.005em; margin: 0 0 14px; }
.about-intro p.lg { font-size: clamp(24px, 2.15vw, 31px); line-height: 1.45; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 28px; }
.about-intro p.lead-strong { font-size: 16.5px; margin: 24px 0; }
.about-intro strong { font-weight: 600; }
.about-intro .btn { margin-top: 30px; min-width: 233px; min-height: 62px; }
.career { display: grid; grid-template-columns: 233fr 233fr 576fr; column-gap: 61px; padding: 78px 0 75px; }
.career h4 { font-size: 15px; line-height: 1.4; font-weight: 600; margin: 0 0 18px; letter-spacing: 0; }
.career ul { list-style: none; margin: 0; padding: 0; }
.career li, .career p { font-size: 14px; line-height: 1.65; margin: 0 0 10px; }
/* 병원 사진 3장: 원본처럼 엇갈려 배치 (위치는 내용 폭에 대한 비율) */
.section--photos { padding: 1px 0 123px; }
.clinic-photos { position: relative; aspect-ratio: 1162 / 1417; }
.clinic-photos img { position: absolute; object-fit: cover; height: auto; }
.clinic-photos .p1 { left: 0; top: 0; width: 37.5%; aspect-ratio: 436 / 582; }
.clinic-photos .p2 { left: 41.65%; top: 14.3%; width: 58.35%; aspect-ratio: 678 / 506; }
.clinic-photos .p3 { left: 25.05%; top: 53.6%; width: 41.65%; aspect-ratio: 484 / 658; }
@media (max-width: 767px) {
  .section--about { padding-bottom: var(--sec-pad); }
  .about-intro { grid-template-columns: 1fr; gap: 30px; }
  .about-intro__text { padding-top: 0; }
  .career { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .clinic-photos { aspect-ratio: auto; display: grid; gap: 16px; }
  .clinic-photos img { position: static; width: 100%; }
  .section--photos { padding-bottom: var(--sec-pad); }
}

/* =========================================================
   상담예약
   ========================================================= */
.consult { padding-bottom: 42px; }
.consult h1 { font-size: 9.6vw; line-height: 1.2; letter-spacing: -0.06em; margin: 0 0 40px; }
.info-table { display: grid; grid-template-columns: 141px minmax(0, 386px); column-gap: 0; row-gap: 20px; padding: 41px 0 40px; align-items: center; }
.info-table h3 { font-size: var(--fs-h3); }
.info-table p { font-size: var(--fs-base); }
.consult-book { padding-bottom: 93px; }
.consult-lead p.lg { margin: 0 0 67px; }
.btn-stack .btn--tall { width: 282px; min-height: 77px; }
.consult-book .btn-stack { gap: 26px; }
@media (max-width: 767px) {
  .consult h1 { font-size: 13vw; }
  .info-table { grid-template-columns: 1fr; row-gap: 8px; }
  .info-table h3 { margin-top: 14px; }
  .btn-stack .btn--tall { width: 100%; }
}

/* =========================================================
   프로모션
   ========================================================= */
.section--promos { padding: 230px 0 85px; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 120px 26px; }
.promo-grid a { text-decoration: none; display: block; }
.promo-grid img { width: 100%; aspect-ratio: 370 / 419; object-fit: cover; transition: opacity .2s; }
.promo-grid a:hover img { opacity: .85; }
.promo-grid h2 { font-size: var(--fs-h2); line-height: 1.1; margin-top: 20px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* 프로모션 상세: 긴 이미지(여러 조각) + 오른쪽 예약 버튼(따라 내려옴) */
.promo-detail { display: grid; grid-template-columns: 673fr 428fr; gap: 61px; align-items: start; }
.promo-detail__img img { width: 100%; }
.promo-detail__btns { position: sticky; top: calc(var(--header-h) + 42px); gap: 20px; }
.btn-stack .btn--tall.btn { min-height: 80px; }

/* 리얼모델 맨 위 */
.hero--rm { min-height: 908px; padding-bottom: 42px; }
.hero__xl { font-size: 10vw; line-height: 1; letter-spacing: -0.06em; font-weight: 500; white-space: nowrap; margin: 0 0 12px; }
.rm-intro { padding: 36px 0 40px; }
.rm-intro ul { padding-left: 40px; }
.rm-intro li { font-size: var(--fs-base); line-height: 2; }
@media (max-width: 767px) {
  .promo-grid { grid-template-columns: 1fr; gap: 40px; }
  .promo-detail { grid-template-columns: 1fr; }
  .promo-detail__btns { position: static; }
  .section--promos { padding-top: var(--sec-pad); }
  .promo-grid { gap: 48px; }
  .hero--rm { min-height: 88svh; }
  .hero__xl { font-size: 11vw; white-space: normal; }
}

/* 리얼모델 신청서 */
.rm-intro h2 { font-size: var(--fs-h2); margin: 0 0 24px; }
.rm-intro ul { padding-left: 1.2em; margin: 0; }
.rm-intro li { font-size: var(--fs-sm); line-height: 1.9; }
.form { max-width: 560px; padding: 40px 0 0; }
.form .field { margin: 0 0 26px; border: 0; padding: 0; }
.form label, .form legend { display: block; font-size: var(--fs-sm); margin: 0 0 8px; padding: 0; }
.form .req { color: var(--c-muted); }
.form .help { display: block; font-size: 12.5px; color: var(--c-muted); margin: -4px 0 8px; }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; max-width: 290px; font: inherit; font-size: var(--fs-base);
  background: transparent; border: 0; border-bottom: 1px solid var(--c-line);
  padding: 6px 2px; border-radius: 0; color: inherit;
}
.form textarea { max-width: 100%; min-height: 120px; border: 1px solid var(--c-line); padding: 8px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--c-text); outline-offset: 2px; }
.form .choices { display: flex; gap: 8px; flex-wrap: wrap; }
.form .choices label { display: inline-flex; align-items: center; gap: 6px; margin: 0;
  border: 1px solid var(--c-line); padding: 6px 12px; cursor: pointer; }
.form .choices input { accent-color: var(--c-black); margin: 0; }
.form .btn { margin-top: 10px; }
.form-msg { margin-top: 20px; font-size: var(--fs-base); }
.form-msg.ok { font-weight: 600; }
.form-msg.err { color: #b00020; }

/* =========================================================
   약관 (개인정보처리방침, 이용약관)
   ========================================================= */
.legal { display: grid; grid-template-columns: 185fr 967fr; gap: 11px; padding-top: 24px; }
.legal__title h1 { font-size: var(--fs-h2); line-height: 1.1; margin: 0 0 30px; }
.legal__title h3 { font-size: var(--fs-h3); }
.legal__body p, .legal__body li { font-size: var(--fs-base); line-height: 1.5; }
@media (max-width: 767px) {
  .legal { grid-template-columns: 1fr; gap: 24px; }
}

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }

/* =========================================================
   꼬리말 (footer)
   ========================================================= */
.site-footer { background: var(--c-black); color: var(--c-beige); padding: 42px 0 100px; font-size: 15px; line-height: 1.5; }
.site-footer a { color: inherit; }
.site-footer .grid { display: grid; grid-template-columns: 50.5fr 20.2fr 20.2fr 9.1fr; }
.site-footer .f-logo img { width: 185px; height: auto; margin-bottom: 70px; }
.site-footer p { margin: 0 0 12px; }
.site-footer .f-title { font-weight: 700; margin-bottom: 8px; }
.site-footer .f-col a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .f-legal { min-width: max-content; }
@media (max-width: 767px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .site-footer .f-info { grid-column: 1 / -1; }
  .site-footer .f-logo img { margin-bottom: 30px; }
}

/* =========================================================
   떠 있는 버튼 (오른쪽 아래)
   ========================================================= */
.fab { position: fixed; right: 20px; bottom: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.fab__label { background: #fff; color: var(--c-text); font-size: 13px;
  letter-spacing: .02em; padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); white-space: nowrap; }
.fab__icon { width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: transform .15s; }
.fab a:hover .fab__icon { transform: scale(1.08); }
.fab svg { width: 24px; height: 24px; fill: #fff; }
.fab .wa  { background: #25D366; }
.fab .tel { background: var(--c-text); }
.fab .nv  { background: #03C75A; }
.fab .kk  { background: #FEE500; }
.fab .kk svg { fill: #3C1E1E; }
.fab .ig  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fab .yt  { background: #FF0000; }
@media (max-width: 767px) {
  .fab { right: 14px; bottom: 18px; gap: 8px; }
  .fab__label { display: none; }
  .fab__icon { width: 44px; height: 44px; }
  .fab svg { width: 22px; height: 22px; }
}

/* =========================================================
   반응형 (1000px 이하 / 767px 이하)
   ========================================================= */
@media (max-width: 1000px) {
  .proc-cards { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hero--home { min-height: 100svh; }
  .hero--home .split { gap: 16px; }
  .hero--big { min-height: 88svh; }
  .hero--big h1 { white-space: normal; font-size: 16vw; }
  .hero--big h1.hero__xl { font-size: 16vw; }
  .promo-title { margin-bottom: 40px; }
  .section--promo { padding-bottom: var(--sec-pad); }
  /* 프로모션 카드: 한 장씩 옆으로 넘기기 */
  .promo-cards { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 100%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 20px; }
  .promo-cards::-webkit-scrollbar { display: none; }
  .promo-card { scroll-snap-align: start; }
  .promo-card h2 { font-size: 21.6px; }
  .promo-nav { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
  .promo-nav button { width: 40px; height: 40px; border-radius: 50%; background: var(--c-black); color: #fff; border: 0; cursor: pointer; font-size: 18px; line-height: 1; }
  .proc-cards { grid-template-columns: 1fr; gap: 56px; margin-top: 40px; }
  .services h2 { font-size: 15vw; margin-bottom: 40px; }
  .services__grid { grid-template-columns: 1fr; }
  .services__img { order: -1; margin-bottom: 30px; }
  .services__img img { aspect-ratio: 4 / 3; }
  .services__btn { margin-top: 30px; }
  .hero--proc { min-height: 88svh; }
  .services .btn { width: 100%; }
  .faq h1 { font-size: 15vw; }
  .acc summary { font-size: 17px; }
  .promo-grid h2 { font-size: 26px; }
}
