/* 깨끗한 흰 바탕 + 파랑(버튼·강조에만) */
/* fonts:start */
@font-face { font-family: Pretendard; font-weight: 400; font-display: swap; src: url("../fonts/pretendard-400.woff2?v=3de327f4") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 500; font-display: swap; src: url("../fonts/pretendard-500.woff2?v=8ee876f3") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 600; font-display: swap; src: url("../fonts/pretendard-600.woff2?v=fc775c69") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 700; font-display: swap; src: url("../fonts/pretendard-700.woff2?v=5d55a4ae") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 800; font-display: swap; src: url("../fonts/pretendard-800.woff2?v=816daa2d") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 900; font-display: swap; src: url("../fonts/pretendard-900.woff2?v=07fc0484") format("woff2"); }
/* fonts:end */
:root {
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --text: #16202e;
  --text-sub: #5a6577;
  --line: #e2e8f1;
  --blue: #2349b5;
  --blue-dark: #183685;
  --blue-soft: #e8eefb;
  --blue-text: #2349b5;
  --card: #ffffff;
  --top-bg: rgba(255,255,255,.94);
  --sale-text: #6d1d10;
  --sale-note: #8a4a3e;
  --gutter: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
br.mo { display: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* 머리 */
.top { position: sticky; top: 0; z-index: 10; background: var(--top-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.name { font-size: 17px; font-weight: 600; color: var(--text-sub); }
.name b { color: var(--text); font-weight: 800; }
.top-call { font-size: 14px; font-weight: 700; color: var(--blue-text); border: 1.5px solid var(--blue); border-radius: 999px; padding: 6px 14px; }

/* 첫 화면 */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.area { display: inline-block; font-size: 15px; font-weight: 800; color: var(--blue-text); background: var(--blue-soft); border-radius: 6px; padding: 4px 10px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 4.8vw, 50px); line-height: 1.2; font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.lead { font-size: clamp(17px, 1.9vw, 19px); color: var(--text-sub); margin-bottom: 28px; }
.promise { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 26px; }
.promise li { font-size: 14px; font-weight: 700; line-height: 1.4; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); border-left: 3px solid var(--blue); }
br.pc { display: inline; }
.phone { display: flex; flex-direction: column; margin-bottom: 18px; }
.phone-label { font-size: 14px; font-weight: 700; color: var(--text-sub); }
.phone-num { font-size: clamp(34px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.02em; color: var(--blue-text); line-height: 1.15; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 12px; font-size: 17px; font-weight: 700; }
.btn-main { background: var(--blue); color: #fff; }
.btn-sub { background: var(--bg); color: var(--blue-text); border: 1.5px solid var(--blue); }
.sms-note { margin-top: 12px; font-size: 14px; color: var(--text-sub); }

/* 전후 비교 */
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--bg-soft); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag { position: absolute; top: 14px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(22, 32, 46, .72); border-radius: 6px; padding: 3px 9px; pointer-events: none; }
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; background: var(--blue); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.ba-knob::before, .ba-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.ba-knob::before { left: 9px; border-right-color: var(--blue); }
.ba-knob::after { right: 9px; border-left-color: var(--blue); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); pointer-events: none; }

/* 영업시간·출장 지역 */
.info { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info p { font-size: 19px; font-weight: 800; }
.info span { display: block; font-size: 13px; font-weight: 700; color: var(--text-sub); }

/* 휴대폰 아래 고정 전화·문자 */
.callbar { display: none; }

@media (max-width: 860px) {
  br.pc { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .ba { order: -1; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .info-row { grid-template-columns: 1fr; gap: 10px; }
  .info p { display: flex; gap: 12px; align-items: baseline; font-size: 17px; }
  .info span { width: 64px; flex: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .callbar {
    display: grid; grid-template-columns: 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 10px; font-weight: 800; font-size: 16px; }
  .callbar a { background: var(--blue); color: #fff; }
  .top-call { display: none; }
}
@media (max-width: 480px) {
  br.mo { display: inline; }
  .hero-btns .btn { flex: 1 1 100%; }
}
.sms-note.is-on { color: var(--blue-text); font-weight: 700; }

/* 섹션 공통 */
.sec-lead { color: var(--text-sub); margin-bottom: 24px; }
section h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }

/* 가격표 */
.price { padding: clamp(56px, 8vw, 96px) 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { font: inherit; font-size: 15px; font-weight: 700; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--text-sub); cursor: pointer; }
.tab.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ptable { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 16px; }
.ptable th, .ptable td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.ptable thead th { font-size: 14px; color: var(--text-sub); font-weight: 700; vertical-align: bottom; border-bottom: 2px solid var(--text); }
.ptable th:first-child { text-align: left; }
.ptable tbody th { font-weight: 700; }
.ptable td { font-weight: 800; font-variant-numeric: tabular-nums; }
.ptable small { display: block; font-size: 12px; font-weight: 500; color: var(--text-sub); }
.ptable em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--blue); border-radius: 4px; padding: 1px 6px; }
.ptable .rec { background: var(--blue-soft); color: var(--blue-text); }
.ptable tr.sub th { font-weight: 500; color: var(--text-sub); padding-left: 22px; font-size: 14px; }
.ptable tr.sub td { font-weight: 600; color: var(--text-sub); font-size: 14px; }
.ptable tr.sub .rec { color: var(--blue-text); }
.ptable s { color: var(--text-sub); font-weight: 500; }
.pnote { list-style: none; max-width: 760px; margin-top: 16px; display: grid; gap: 6px; font-size: 14px; color: var(--text-sub); }
.pnote b { color: var(--text); margin-right: 6px; }
.ask { font-size: 17px; font-weight: 700; padding: 20px; background: var(--bg-soft); border-radius: 12px; max-width: 760px; }
@media (max-width: 480px) {
  .ptable { font-size: 14px; }
  .ptable th, .ptable td { padding: 11px 6px; }
  .mattress thead th { font-size: 12px; }
  .ptable tr.sub th { padding-left: 12px; }
  .tab { padding: 9px 13px; font-size: 14px; }
}
.ptable td { white-space: nowrap; }
@media (max-width: 360px) {
  .mattress { font-size: 12.5px; }
  .mattress th, .mattress td { padding: 10px 4px; }
  .mattress tbody th { font-size: 12.5px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 18px; padding: 0 var(--gutter); scrollbar-width: none; }
  .tab { flex: none; }
}

/* 이런 고민 */
.worry { padding: clamp(56px, 8vw, 96px) 0; }
.worry-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.worry-list { list-style: none; display: grid; gap: 14px; margin-bottom: 26px; }
.worry-list li { padding: 14px 16px 14px 46px; position: relative; border: 1px solid var(--line); border-radius: 12px; color: var(--text-sub); font-size: 15px; }
.worry-list li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.worry-list b { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.stain { background: var(--blue-soft); border-radius: 14px; padding: 18px; }
.stain p { font-weight: 800; color: var(--blue-text); margin-bottom: 10px; }
.stain ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.stain li { font-size: 14px; font-weight: 700; background: var(--card); border-radius: 999px; padding: 5px 12px; }
.worry-photo { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; }
.worry-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.worry-photo figcaption { position: absolute; left: 14px; bottom: 14px; font-size: 14px; font-weight: 800; color: #fff; background: rgba(22, 32, 46, .72); border-radius: 8px; padding: 6px 10px; }
@media (max-width: 860px) {
  .worry-grid { grid-template-columns: 1fr; gap: 28px; }
  .worry-photo { aspect-ratio: 4 / 3; }
}

/* 케어 과정 */
.process { background: var(--bg-soft); padding: clamp(56px, 8vw, 96px) 0; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { counter-increment: s; position: relative; background: var(--card); border-radius: 16px; padding: 22px 18px; }
.steps li::before { content: counter(s); position: absolute; top: 16px; right: 18px; font-size: 28px; font-weight: 800; color: var(--blue-soft); }
.steps svg { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--text-sub); }
.included { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.included li { font-weight: 800; color: var(--blue-text); background: var(--card); border: 1.5px solid var(--blue); border-radius: 999px; padding: 7px 14px; font-size: 15px; }
.included-note { margin-top: 8px; font-size: 14px; color: var(--text-sub); }

/* 전후 사진 모음 */
.gallery { padding: clamp(56px, 8vw, 96px) 0 0; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pair-imgs { display: grid; grid-template-columns: 1fr; gap: 4px; border-radius: 14px; overflow: hidden; }
.pair-imgs div { position: relative; }
.pair-imgs img { width: 100%; height: auto; display: block; }
.pair-imgs span { position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 800; color: #fff; background: rgba(22, 32, 46, .72); border-radius: 5px; padding: 2px 8px; }
.pair-imgs span.after { background: var(--blue); }
.pair figcaption { margin-top: 8px; font-size: 15px; font-weight: 700; }
.naver-link { display: inline-block; margin-top: 22px; font-weight: 800; color: var(--blue-text); border-bottom: 2px solid currentColor; }

/* 마지막 문의 */
.contact { margin-top: clamp(56px, 8vw, 96px); background: var(--blue-dark); color: #fff; padding: clamp(56px, 8vw, 88px) 0; text-align: center; }
.contact .area { background: rgba(255,255,255,.14); color: #fff; }
.contact h2 { color: #fff; margin-bottom: 20px; }
.contact .phone { align-items: center; }
.contact .phone-num { color: #fff; }
.contact .hero-btns { justify-content: center; }
.btn-white { background: #fff; color: var(--blue-dark); }
.btn-line { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.contact-note { margin-top: 14px; font-size: 14px; opacity: .85; }

/* 바닥 */
.foot { padding: 28px 0 36px; font-size: 13px; color: var(--text-sub); }
.foot b { color: var(--text); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .pairs { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px 16px; }
  .steps svg { grid-row: span 2; margin: 0; }
}
@media (max-width: 480px) {
  .promise { grid-template-columns: 1fr; gap: 6px; }
  .promise li br { display: none; }
  .promise li { padding: 9px 12px; }
}

/* 매트리스 표: 가격 아래 뒷면 추가, 휴대폰은 케어 종류를 골라 두 칸만 */
.mattress td strong { display: block; font-weight: 800; }
.mattress td small { font-weight: 500; }
.care-pick { display: none; }
@media (max-width: 600px) {
  .care-pick { display: flex; gap: 6px; margin-bottom: 12px; }
  .care-pick button { flex: 1; font: inherit; font-size: 15px; font-weight: 700; padding: 10px 0; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--text-sub); cursor: pointer; }
  .care-pick button.is-on { border-color: var(--blue); color: var(--blue-text); background: var(--blue-soft); }
  .care-pick em { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--blue); border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
  .mattress .c-dry, .mattress .c-wet, .mattress .c-steam { display: none; }
  .mattress[data-care="dry"] .c-dry, .mattress[data-care="wet"] .c-wet, .mattress[data-care="steam"] .c-steam { display: table-cell; }
  .mattress, .mattress tbody th { font-size: 15px; }
  .mattress th, .mattress td { padding: 13px 8px; }
  .mattress thead th em { display: none; }
  .mattress .rec { background: none; color: inherit; }
}

/* 공지 줄 */
.notice { background: var(--blue-dark); color: #fff; padding: 12px 0; font-size: 15px; }
.notice .wrap { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.notice b { background: #fff; color: var(--blue-dark); border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.contact-sub { margin: -8px 0 18px; opacity: .9; }

/* 소파 사이즈 참고 그림 */
.sofa-size { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: flex-end; margin-bottom: 18px; max-width: 760px; }
.sofa-size li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-sub); }
.sofa-size svg { height: 44px; width: auto; fill: none; stroke: var(--text); stroke-width: 1.6; }
@media (max-width: 480px) {
  .sofa-size { gap: 14px 16px; }
  .sofa-size svg { height: 26px; }
  .notice { font-size: 14px; }
}

/* 할인 이벤트: 할인에만 쓰는 붉은 주황 */
:root { --sale: #e2452b; --sale-soft: #fdeeea; }
.sale { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 22px; padding: 10px 14px; border-radius: 12px; background: var(--sale-soft); border: 1.5px dashed var(--sale); }
.sale-tag { font-size: 13px; font-weight: 800; color: #fff; background: var(--sale); border-radius: 6px; padding: 3px 8px; }
.sale-text { font-size: 16px; font-weight: 700; color: var(--sale-text); }
.sale-text b { color: var(--sale); font-size: 19px; font-weight: 900; }
.sale-box { max-width: 760px; display: flex; flex-direction: column; gap: 2px; margin: 0 0 22px; padding: 14px 18px; border-radius: 12px; background: var(--sale-soft); border-left: 5px solid var(--sale); }
.sale-box b { color: var(--sale); font-size: 17px; }
.sale-box span { font-size: 15px; color: var(--sale-text); }
.sale-note { flex-basis: 100%; font-size: 12px; color: var(--sale-note); }
.sale-box small { font-size: 12px; color: var(--sale-note); margin-top: 2px; }
.more-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.more-links .naver-link { margin-top: 0; }
.foot a { text-decoration: underline; text-underline-offset: 2px; }
/* 표 머리의 꼬리표(추천·이벤트)는 제목 아래 줄로 */
.ptable thead em { margin: 0 0 0 4px; vertical-align: 2px; }
/* 표 폭: 칸 수에 맞춰 (이름과 가격이 너무 멀어지지 않게) */
.ptable.narrow, .pnote { max-width: 560px; }
.ptable.room { max-width: 640px; }
.ptable thead th { white-space: nowrap; }

/* 다크 모드: 변수만 바꿈 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141c;
    --bg-soft: #161d28;
    --card: #1c2431;
    --top-bg: rgba(15,20,28,.92);
    --text: #e8edf4;
    --text-sub: #a5afbd;
    --line: #2a3442;
    --blue: #3461d6;
    --blue-dark: #16285a;
    --blue-soft: #1c2a48;
    --blue-text: #93b2ff;
    --sale: #e5533a;
    --sale-soft: #3a1e18;
    --sale-text: #ffc2b5;
    --sale-note: #d99a8c;
  }
}
