:root {
  --font-body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --font-kr: "Noto Sans KR", "Pretendard Variable", Pretendard, sans-serif;
  --ink: #0E1F1A;
  --text: #17281F;
  --desc: #4B5563;
  --muted: #7C9089;
  --line: #DCE7E1;
  --bg: #ffffff;
  --bg-soft: #F1F7F4;
  --mint: #E4F3EC;
  --footer-bg: #0A1712;
  --header-bg: #ffffff;
  --max: 1080px;
  --accent: #0E7C66;
  --accent-hover: #0A5F4F;
  --accent-soft: #CFEAE0;
  --radius: 999px;
  --card-radius: 16px;
  --title-display: 700 clamp(34px, 4.4vw, 48px)/1.14 var(--font-body);
  --mid-bold: 700 clamp(22px, 2vw, 28px)/1.3 var(--font-body);
  --mid-regular: 400 17px/1.6 var(--font-body);
  --body-4: 400 14.5px/1.7 var(--font-body);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font: var(--mid-regular); letter-spacing: -0.01em; color: var(--text); background: var(--bg); word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
section[id] { scroll-margin-top: 70px; }

/* ── header ── */
header#hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.hdr-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.header-logo { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.logo-company { font: 500 11.5px/1.3 var(--font-kr); color: var(--muted); }
.logo-keyword { font: 800 24px/1 var(--font-body); color: var(--ink); letter-spacing: -0.02em; }
.hdr-right { display: flex; align-items: center; gap: 26px; }
nav { display: flex; gap: 26px; }
nav a { font: 600 15.5px/1 var(--font-body); color: var(--text); }
nav a:hover { color: var(--accent); }
.hdr-tel { display: inline-flex; align-items: center; gap: 8px; font: 700 14.5px/1 var(--font-body); color: #fff; background: var(--accent); padding: 12px 22px; border-radius: var(--radius); transition: background 0.18s, transform 0.18s; }
.hdr-tel svg { width: 16px; height: 16px; }
.hdr-tel:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-fill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 30px; background: var(--accent); color: #fff; font: 700 16px/1 var(--font-body); border: 2px solid var(--accent); border-radius: var(--radius); transition: background 0.18s, transform 0.18s; }
.btn-fill svg { width: 19px; height: 19px; }
.btn-fill:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); }
.btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border: 2px solid rgba(255,255,255,0.55); color: #fff; font: 700 16px/1 var(--font-body); border-radius: var(--radius); transition: background 0.18s, transform 0.18s; }
.btn-line:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ── full-bleed crossfade hero (index) ── */
.hero-full { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); padding: 128px 0 76px; }
.hero-full-bg { position: absolute; inset: 0; }
.hero-full-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: crossfade 14s infinite; transform: scale(1.06); }
.hero-full-bg img:nth-child(1) { animation-delay: 0s; }
.hero-full-bg img:nth-child(2) { animation-delay: 7s; }
@keyframes crossfade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  46% { opacity: 1; }
  54% { opacity: 0; }
  100% { opacity: 0; }
}
.hero-full-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,13,0.15) 0%, rgba(6,16,13,0.82) 100%); }
.hero-full-inner { position: relative; z-index: 1; width: 100%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px/1 var(--font-body); color: var(--accent-soft); letter-spacing: 0.03em; margin-bottom: 16px; }
.hero-full h1 { font: 800 clamp(38px, 6.6vw, 60px)/1.1 var(--font-body); color: #fff; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero-full-lead { font: 600 clamp(15px, 1.7vw, 20px)/1.4 var(--font-body); color: rgba(255,255,255,0.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-bottom: 30px; }
.hero-full-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── page sub-hero (bright overlay, never dark) ── */
.page-hero { position: relative; min-height: 38vh; display: flex; align-items: flex-end; padding: 140px 0 46px; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.46) 100%); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .hero-eyebrow { color: var(--accent-hover); text-shadow: 0 1px 12px rgba(255,255,255,0.9); }
.page-hero h1 { font: 800 clamp(28px, 4vw, 42px)/1.16 var(--font-body); color: var(--ink); text-shadow: 0 2px 18px rgba(255,255,255,0.85); margin-bottom: 10px; }
.page-hero-lead { font: 500 15.5px/1.5 var(--font-body); color: var(--desc); text-shadow: 0 1px 10px rgba(255,255,255,0.85); }

/* ── section head ── */
.sec-head { text-align: center; margin: 0 auto 44px; }
.sec-label { font: 700 14px/1 var(--font-body); letter-spacing: 0.07em; color: var(--accent-hover); margin-bottom: 12px; }
.sec-title { font: var(--title-display); color: var(--text); letter-spacing: -0.02em; }
@media (min-width: 769px) { .sec-title { white-space: nowrap; } }
.sec-intro { font: var(--mid-regular); color: var(--desc); max-width: 34em; margin: 14px auto 0; }

/* ── checklist (증상 자가진단) ── */
#check { padding: 96px 0; background: var(--bg); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.check-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.check-mark { flex-shrink: 0; width: 26px; height: 26px; border: 2px solid var(--accent); border-radius: 7px; position: relative; margin-top: 2px; }
.check-mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(40deg); }
.check-item h3 { font: 700 16.5px/1.35 var(--font-body); color: var(--ink); margin-bottom: 5px; }
.check-item p { font: var(--body-4); color: var(--desc); }

/* ── service step list ── */
#service { padding: 96px 0; background: var(--bg-soft); }
.steps-wrap { display: flex; flex-direction: column; }
.step-row { display: flex; gap: 28px; align-items: flex-start; padding: 32px 0; border-top: 1px solid var(--line); }
.step-row:last-child { border-bottom: 1px solid var(--line); }
.step-num { flex-shrink: 0; font: 800 15px/1 var(--font-body); color: var(--accent); border: 2px solid var(--accent); border-radius: 50%; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.step-icon { flex-shrink: 0; width: 30px; height: 30px; color: var(--accent-hover); margin-top: 8px; }
.step-body h3 { font: 700 19px/1.35 var(--font-body); color: var(--ink); margin-bottom: 8px; }
.step-body p { font: var(--body-4); color: var(--desc); max-width: 640px; }
.process-mini { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.process-mini span { font: 600 13.5px/1 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 18px; }
.process-mini span b { color: var(--accent-hover); margin-right: 6px; }

/* ── case cards ── */
#cases { padding: 96px 0; background: var(--bg); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card { display: block; }
.case-thumb { aspect-ratio: 4/3; border-radius: var(--card-radius); overflow: hidden; background: var(--mint); margin-bottom: 16px; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.case-card:hover .case-thumb img { transform: scale(1.05); }
.case-num { font: 600 12px/1 var(--font-body); letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.case-card h3 { font: 700 19px/1.3 var(--font-body); color: var(--text); display: inline; border-bottom: 2px solid var(--accent-soft); padding-bottom: 4px; }
.case-cap { font: var(--body-4); color: var(--desc); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-more { text-align: center; margin-top: 46px; }
.case-more a { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--font-body); color: var(--accent-hover); border-bottom: 2px solid var(--accent-soft); padding-bottom: 4px; }

/* ── guide link list ── */
#guide { padding: 96px 0; background: var(--bg-soft); }
.guide-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.guide-row { display: flex; align-items: center; gap: 20px; padding: 24px 22px; border-radius: var(--card-radius); transition: background 0.18s; }
.guide-row:hover { background: var(--bg); }
.guide-row + .guide-row { margin-top: 4px; }
.guide-eyebrow { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: var(--accent-hover); font: 800 14px/1 var(--font-body); display: flex; align-items: center; justify-content: center; }
.guide-row-body { flex: 1; }
.guide-row-body h3 { font: 700 17.5px/1.35 var(--font-body); color: var(--ink); margin-bottom: 4px; }
.guide-row-body p { font: var(--body-4); color: var(--desc); }
.guide-arrow { flex-shrink: 0; font: 700 18px/1 var(--font-body); color: var(--accent); }

/* ── FAQ accordion ── */
#faq { padding: 96px 0; background: var(--bg); }
#faq.on-soft { background: var(--bg-soft); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--bg); overflow: hidden; }
.faq-item.open { border-color: var(--accent); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q-inner { display: flex; align-items: flex-start; gap: 12px; font: 700 16.5px/1.4 var(--font-body); color: var(--text); }
.faq-q-chip { flex-shrink: 0; font: 800 12px/1 var(--font-body); color: var(--accent); background: var(--mint); border-radius: 6px; padding: 5px 8px; }
.faq-mark { font: 400 22px/1 var(--font-body); color: var(--accent); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-mark { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 24px 22px 56px; font: 400 15.5px/1.75 var(--font-body); color: var(--desc); }

/* ── CTA band ── */
.cta-band { background: var(--mint); padding: 76px 0; text-align: center; }
.cta-band h2 { font: 800 clamp(24px, 2.6vw, 32px)/1.3 var(--font-body); color: var(--ink); margin-bottom: 12px; }
.cta-band p { font: var(--body-4); color: var(--desc); max-width: 520px; margin: 0 auto 28px; }
.cta-band .hero-full-btns { justify-content: center; }
.cta-band .btn-fill { }
.cta-band .btn-line { border-color: var(--ink); color: var(--ink); }
.cta-band .btn-line:hover { background: var(--ink); color: #fff; }

/* ── footer ── */
footer { background: var(--footer-bg); color: #fff; }
.foot-cta { padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.foot-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.foot-cta-text h2 { font: 800 clamp(21px, 2.2vw, 27px)/1.25 var(--font-body); color: #EAF6F1; margin-bottom: 6px; }
.foot-cta-text p { font: var(--body-4); color: rgba(234,246,241,0.62); }
.foot-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
footer .btn-line { color: #fff; border-color: rgba(255,255,255,0.35); }
.foot-body { padding: 44px 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.foot-brand { font: 800 20px/1 var(--font-body); color: #EAF6F1; margin-bottom: 14px; }
.foot-tagline { font: var(--body-4); color: rgba(234,246,241,0.56); }
.foot-info-list { display: flex; flex-direction: column; gap: 6px; }
.foot-info-list dt { font: 600 12px/1 var(--font-body); letter-spacing: 0.05em; color: rgba(234,246,241,0.48); margin-top: 14px; }
.foot-info-list dt:first-child { margin-top: 0; }
.foot-info-list dd { font: 500 14.5px/1.6 var(--font-kr); color: rgba(234,246,241,0.78); white-space: nowrap; }
.foot-copy { padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-copy p, .foot-copy a { font: 400 12.5px/1.5 var(--font-body); color: rgba(234,246,241,0.34); }
.foot-copy a:hover { color: rgba(234,246,241,0.55); }

/* ── floating quick menu (left) ── */
.fq { position: fixed; bottom: 30px; left: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.fq a { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: var(--radius); background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(10,23,18,0.25); transition: background 0.2s, transform 0.2s; }
.fq a:hover { background: var(--accent-hover); transform: translateY(-2px); }
.fq svg { width: 20px; height: 20px; flex-shrink: 0; }
.fq-label { font: 700 14px/1 var(--font-body); white-space: nowrap; }
.fq-top { background: var(--ink) !important; width: 54px; padding: 0 !important; justify-content: center; }

/* ── generic content sections ── */
.pad-lg { padding: 84px 0; }
.pad-md { padding: 64px 0 20px; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.info-list li { font: var(--body-4); color: var(--desc); display: flex; gap: 10px; }
.info-list li b { color: var(--text); min-width: 96px; flex-shrink: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-img { border-radius: var(--card-radius); overflow: hidden; aspect-ratio: 4/3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { margin-bottom: 16px; font: var(--mid-regular); color: var(--desc); }
.contact-card { max-width: 560px; padding: 44px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--bg-soft); }
.contact-tel { display: block; font: 800 clamp(32px,4.6vw,44px)/1.1 var(--font-body); color: var(--accent-hover); margin: 16px 0 8px; }
.contact-note { font: var(--body-4); color: var(--desc); margin-bottom: 26px; }
.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact-info-list li { font: var(--body-4); color: var(--desc); }
.contact-info-list b { color: var(--text); }
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font-body); color: var(--text); border: 1px solid var(--line); padding: 14px 20px; border-radius: var(--radius); transition: border-color 0.2s, background 0.2s; }
.related-links a:hover { border-color: var(--accent); background: var(--bg-soft); }
.related-links a b { color: var(--accent-hover); }
.svc-detail-icon { width: 40px; height: 40px; color: var(--accent-hover); margin-bottom: 18px; }
.guide-body { max-width: 700px; }
.guide-body h2 { font: 700 23px/1.3 var(--font-body); color: var(--text); margin: 36px 0 14px; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body p { font: 400 15.5px/1.85 var(--font-body); color: var(--desc); margin-bottom: 16px; }
.guide-note { margin-top: 36px; padding: 22px 24px; background: var(--bg-soft); border-radius: var(--card-radius); font: var(--body-4); color: var(--desc); }
.dong-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.dong-chip { font: 500 14px/1 var(--font-body); color: var(--desc); background: var(--bg); border: 1px solid var(--line); padding: 9px 16px; border-radius: var(--radius); }
.nearby-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.nearby-list a { font: 600 14.5px/1 var(--font-body); color: var(--accent-hover); border: 1px solid var(--line); padding: 10px 17px; border-radius: var(--radius); transition: background 0.2s, color 0.2s; }
.nearby-list a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sitemap-col h2 { font: 700 15px/1 var(--font-body); color: var(--muted); margin-bottom: 18px; letter-spacing: 0.02em; }
.sitemap-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.sitemap-col a { font: 500 14px/1.4 var(--font-body); color: var(--muted); }
.sitemap-col a:hover { color: var(--desc); text-decoration: underline; }

/* ── gallery-case detail cross layout (fixed spec) ── */
.detail-row { display: flex; align-items: center; gap: 56px; padding: 56px 0; max-width: var(--max); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.detail-row.reverse { flex-direction: row-reverse; }
.detail-img-wrap { flex: 0 0 44%; }
.detail-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.detail-text { flex: 1 1 auto; }
.detail-eyebrow { font: 700 11px/1 var(--font-body); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.detail-eyebrow b { color: var(--accent-hover); font-weight: 700; }
.detail-text h2 { font: 700 clamp(20px, 2.2vw, 26px)/1.35 var(--font-body); color: var(--text); letter-spacing: -0.01em; margin-bottom: 16px; }
.detail-text p { font: 400 15px/1.9 var(--font-body); color: #4B5563; }
.detail-text p + p { margin-top: 14px; }
.case-points-section { max-width: var(--max); margin: 0 auto; padding: 8px 28px 64px; }
.case-points-section h3 { font: 700 18px/1.3 var(--font-body); color: var(--text); margin-bottom: 20px; }
.case-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; max-width: 680px; }
.case-points li { display: flex; gap: 12px; font-size: 15.5px; color: var(--text); line-height: 1.7; }
.case-points li::before { content: "+"; font-weight: 700; color: var(--accent-hover); flex-shrink: 0; }
.case-cta-wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px 72px; }
.case-nav { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; padding: 28px 28px 72px; border-top: 1px solid var(--line); font: 600 15px/1.3 var(--font-body); }
.case-nav a { color: var(--accent-hover); }
.case-nav a:hover { text-decoration: underline; }
.case-lead-img { max-width: 780px; margin: 0 0 8px; }
.case-lead-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--card-radius); }

@media (max-width: 860px) {
  .about-grid, .case-grid, .sitemap-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --title-display: 800 28px/1.2 var(--font-body); --mid-bold: 700 20px/1.3 var(--font-body); --mid-regular: 400 16px/1.5 var(--font-body); }
  nav { display: none; }
  .logo-keyword { font: 800 19px/1 var(--font-body); }
  .hdr-tel { padding: 9px 16px; font-size: 13px; }
  .detail-row, .detail-row.reverse { flex-direction: column; gap: 22px; padding: 30px 28px; }
  .detail-img-wrap { flex: none; width: 100%; }
  .foot-body { grid-template-columns: 1fr; gap: 28px; }
  .foot-cta-inner { flex-direction: column; align-items: flex-start; }
  .foot-copy { flex-direction: column; align-items: flex-start; }
  .fq { bottom: 16px; left: 14px; }
  .fq-label { display: none; }
  .fq a { width: 50px; height: 50px; padding: 0; justify-content: center; }
}
