:root {
  --brand: #5a5858;   /* 로고 회색 */
  --ink: #3b3b3b;
  --ink-2: #6b6b6b;
  --ink-3: #9a9a9a;
  --paper: #ffffff;
  --sand: #f5f5f4;
  --sand-2: #e2e2e0;
  --accent: #5a5959;
  --line: #e6e6e4;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: "Noto Serif KR", Pretendard, serif; line-height: 1.35; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; margin: 0 0 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 36px; width: auto; }
.brand small { font-size: 13px; color: var(--ink-3); padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.2; white-space: nowrap; }
.foot-logo { height: 32px; width: auto; margin-bottom: 10px; }
.top nav { display: flex; gap: 28px; margin-left: auto; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }

/* 상단 메뉴의 소메뉴 (간편계산) */
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.nav-drop[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-drop > summary:hover, .nav-drop[open] > summary, .top nav summary[aria-current] { color: var(--ink); }
.top nav summary[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); min-width: 200px; display: flex; flex-direction: column; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.10); z-index: 20; }
.nav-menu a { padding: 11px 14px; border-radius: 8px; font-size: 15px; white-space: nowrap; }
.nav-menu a:hover { background: var(--sand); color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 22px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; border: 1px solid var(--brand); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #464545; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--sand); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-kakao { background: #fee500; border-color: #fee500; color: #191919; }
.btn-kakao:hover { background: #f5dc00; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* hero */
.hero { background: linear-gradient(180deg, #f3f3f2 0%, #fafaf9 100%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px; padding-top: 64px; }
.hero-text { padding-bottom: 80px; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0; }
.hero-photo img { width: 100%; max-width: 440px; margin-left: auto; mix-blend-mode: multiply; }

/* sections */
.section { padding-block: 88px; }
.section.tight { padding-top: 0; }
.section.alt { background: #f8f8f7; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.more { font-weight: 700; color: var(--accent); }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.service { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.service:hover { border-color: var(--sand-2); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.service p { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; flex: 1; }
.service span { font-size: 14px; font-weight: 700; color: var(--accent); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.thumb { aspect-ratio: 1 / 1; background: var(--sand); max-width: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.noimg { height: 100%; display: grid; place-items: center; color: var(--accent); font-weight: 700; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 10px 0 8px; }
.card p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card time { margin-top: auto; font-size: 13px; color: var(--ink-3); }
.chip { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--accent); font-size: 12.5px; font-weight: 700; }

/* about / contact */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius); background: var(--sand); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; }
.about p { color: var(--ink-2); }
.about .btn { margin-top: 12px; }
.contact { background: var(--sand); color: var(--ink); border-top: 1px solid var(--line); }
.contact dl { display: grid; grid-template-columns: 80px 1fr; gap: 10px 20px; margin: 24px 0 32px; font-size: 17px; }
.contact dt { color: var(--ink-3); }
.contact dd { margin: 0; }
.contact .btn { margin: 0 8px 8px 0; }
.contact .btn-kakao { background: #fee500; border-color: #fee500; color: #191919; }

/* 홈 계산기 안내 띠 */
.calc-band { background: var(--sand); border-block: 1px solid var(--line); }
.calc-band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.calc-band .lead { font-size: 16px; }

/* 간편 계산기 */
.tool .lead { margin-bottom: 28px; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 32px; }
.calc .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.field label small, .check small { font-weight: 500; color: var(--ink-3); }
.field input, .field select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.won { font-size: 13px; color: var(--ink-3); margin-top: 6px; min-height: 18px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; font-weight: 600; margin: 4px 0 20px; }
.check input { margin-top: 3px; }
.calc .btn { width: 100%; }
.rows { width: 100%; border-collapse: collapse; margin: 16px 0 8px; }
.rows th, .rows td { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.rows th { text-align: left; font-weight: 600; color: var(--ink-2); }
.rows td { text-align: right; font-weight: 700; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 4px; border-top: 2px solid var(--brand); font-weight: 700; }
.total b { font-size: 26px; }
.note { color: var(--ink-2); font-size: 15px; }
.disclaimer { margin-top: 48px; font-size: 14.5px; color: var(--ink-2); }
.disclaimer ul { margin: 10px 0 0; padding-left: 18px; }
.disclaimer li { margin-bottom: 6px; }
@media (max-width: 720px) { .calc { padding: 20px; } .calc .grid2 { grid-template-columns: 1fr; } }

/* columns page */
.page-head { padding-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filters button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.filters button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* article */
.article h1 { font-size: clamp(26px, 4vw, 38px); margin-top: 14px; }
.back { display: inline-block; color: var(--ink-3); font-size: 14px; margin-bottom: 20px; }
.meta { color: var(--ink-3); font-size: 14px; }
.cover { border-radius: var(--radius); margin: 24px 0; border: 1px solid var(--line); width: 100%; }
.article h2 { font-size: 24px; margin-top: 56px; }
.prose p { margin: 0 0 1em; font-size: 17px; color: #3b3b3b; }
.box { background: var(--sand); border-radius: var(--radius); padding: 22px 26px; margin-top: 32px; }
.box ol { margin: 10px 0 0; padding-left: 20px; }
.figs { display: grid; gap: 16px; }
.figs img { border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; gap: 10px; }
.faq summary::before { content: "Q"; color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0 22px; color: var(--ink-2); }
.readmore { margin-top: 56px; padding: 32px; border-radius: var(--radius); border: 1px solid var(--sand-2); background: #fafaf9; }
.readmore p { margin: 0; font-weight: 600; }
.readmore .cta { margin-top: 18px; }
.tags { color: var(--ink-3); font-size: 14px; margin-top: 28px; }

/* footer */
.foot { background: #efefee; color: var(--ink-2); padding-block: 48px 90px; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot b { color: var(--brand); font-size: 16px; }
.foot p { margin: 6px 0 0; }
.foot-links { display: flex; gap: 20px; }
.foot-links a:hover { color: var(--ink); }
.copy { margin-top: 28px; font-size: 12.5px; color: var(--ink-3); }
.float-call { display: none; }

/* responsive */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .top nav { gap: 18px; }
}
@media (max-width: 720px) {
  .top-in { height: auto; flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  /* 가로 스크롤로 두면 소메뉴가 잘려서, 줄바꿈으로 바꾼다 */
  .top nav { order: 3; width: 100%; margin: 0; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
  /* 좁은 화면에서 오른쪽으로 넘치지 않도록 항목 오른쪽 끝에 맞춘다 */
  .nav-menu { left: auto; right: 0; transform: none; top: calc(100% + 10px); }
  .top .btn-sm { margin-left: auto; }
  .brand img { height: 30px; }
  .brand small { display: none; }
  .hero-in { grid-template-columns: 1fr; padding-top: 40px; gap: 0; }
  .hero-text { padding-bottom: 8px; }
  .hero-photo img { max-width: 280px; margin: 0 auto; }
  .lead { font-size: 16px; }
  .section { padding-block: 60px; }
  .services, .grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 260px; }
  .contact dl { grid-template-columns: 64px 1fr; font-size: 15px; }
  .readmore { padding: 24px 20px; }
  .float-call { display: flex; gap: 8px; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; }
  .float-call a { flex: 1; text-align: center; padding: 14px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
  .float-call a.kakao { background: #fee500; color: #191919; }
}
