/* 바른길 세무회계 — 미색 종이 · 딥 그린, 고정 사이드바 + 서류 콘셉트 */
:root {
  --brand: #0f6b5c; --brand-ink: #fff;
  --bg: #f7f6f2; --paper: #efede6; --card: #fff; --line: #dcd8cc; --soft: #e3efeb;
  --ink: #1d2422; --sub: #6a716d; --radius: 6px; --field: #fff;
  --serif: 'Gowun Batang', serif;
  --latin: 'Libre Caslon Text', 'Gowun Batang', serif;
  --side: 280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Pretendard Variable', system-ui, sans-serif; line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--brand); color: #fff; padding: 8px 12px; }
.muted { color: var(--sub); }
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 13px 20px; border-radius: var(--radius); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: #0b5649; }
.btn--block { width: 100%; }
.label { margin: 0 0 10px; font-family: var(--latin); font-style: italic; color: var(--brand); font-size: 16px; }
.link { color: var(--brand); font-weight: 700; margin-right: 16px; }

/* sidebar */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 50; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 30px 26px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__seal { width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid #b5372b; color: #b5372b; border-radius: 6px; font-family: var(--serif); font-weight: 700; font-size: 14px; line-height: 1.1; text-align: center; transform: rotate(-4deg); }
.brand b { display: block; font-family: var(--serif); font-size: 18px; }
.brand small { font-family: var(--latin); font-style: italic; color: var(--sub); font-size: 13px; }
.side__nav { margin: 46px 0 auto; display: flex; flex-direction: column; }
.side__nav a { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; text-decoration: none; border-bottom: 1px solid #eeebe3; font-weight: 600; transition: color .15s, padding .15s; }
.side__nav a i { font-family: var(--latin); font-style: normal; color: var(--sub); font-size: 13px; }
.side__nav a:hover { color: var(--brand); padding-left: 6px; }
.side__foot { display: grid; gap: 10px; margin-top: 30px; }
.side__open { margin: 0; font-size: 13px; color: var(--sub); }
.side__open.is-open { color: var(--brand); font-weight: 600; }
.side__open::before { content: '● '; }
.side__tel { font-family: var(--latin); font-size: 24px; text-decoration: none; }
.burger { display: none; }

.main { margin-left: var(--side); }
.main > section, .foot { padding-left: clamp(24px, 6vw, 90px); padding-right: clamp(24px, 6vw, 90px); }

/* hero */
.hero { padding-top: clamp(50px, 8vw, 100px); padding-bottom: 60px; max-width: 1280px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 6vw, 82px); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 70%, #d8ebe5 70%); }
.hero__lead { max-width: 560px; font-size: 18px; color: #3b4340; margin: 26px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.hero__img { margin: 0; }
.hero__img img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); filter: saturate(.8); }
.ticket { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 26px; text-decoration: none; background: var(--brand); color: #fff; border-radius: var(--radius);
  -webkit-mask: radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.ticket__k { font-size: 13px; opacity: .8; }
.ticket__d { font-family: var(--latin); font-size: 64px; line-height: 1.1; font-weight: 400; }
.ticket__t { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.ticket__date { font-size: 13.5px; opacity: .85; border-top: 1px dashed rgba(255,255,255,.4); padding-top: 10px; margin-top: 8px; }
.ticket__more { font-size: 13px; font-weight: 700; margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0 0; border-top: 2px solid var(--ink); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--sub); font-size: 13.5px; }
.facts dd { margin: 0; font-family: var(--latin); font-size: 30px; }

/* sections */
.sec { padding-top: clamp(70px, 9vw, 110px); padding-bottom: clamp(70px, 9vw, 110px); }
.sec > * { max-width: 1180px; }
.sec--paper { background: var(--paper); }
.sec__head { margin-bottom: 36px; }
.sec__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); margin: 0; line-height: 1.3; }
.sec__head p:not(.label) { margin: 10px 0 0; color: var(--sub); max-width: 620px; }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* services list */
.svc { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc li { display: grid; grid-template-columns: 60px 1fr 200px 80px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.svc li:hover { background: #fff; }
.svc__no { font-family: var(--latin); font-size: 26px; color: var(--brand); padding-left: 8px; }
.svc h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 21px; }
.svc p { margin: 0; color: var(--sub); font-size: 15px; }
.svc__for { font-size: 13.5px; color: var(--sub); border-left: 1px solid var(--line); padding-left: 16px; }
.svc__go { border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }

/* fee form */
.fee { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.form-doc { background: #fff; border: 1px solid var(--line); padding: 28px; box-shadow: 0 1px 0 var(--line), 0 6px 0 -3px #fff, 0 7px 0 -3px var(--line); }
.form-doc__title { margin: 0 0 18px; text-align: center; font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .1em; border-bottom: 3px double var(--ink); padding-bottom: 14px; }
.form-doc__title small { font-size: 13px; color: var(--sub); letter-spacing: 0; font-weight: 400; }
.form-doc fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 16px 0; display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; }
.form-doc legend { float: left; font-weight: 700; font-size: 14.5px; padding: 0; }
.form-doc legend i { font-style: normal; color: var(--brand); margin-right: 4px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; }
.opts input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.opts input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-doc select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: #fff; }
.num { display: flex; align-items: center; gap: 10px; }
.num button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 4px; font-size: 18px; cursor: pointer; }
.num output { font-family: var(--latin); font-size: 24px; min-width: 26px; text-align: center; }
.receipt { position: sticky; top: 30px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--brand); padding: 28px; overflow: hidden; }
.receipt__t { margin: 0 0 14px; font-family: var(--serif); font-size: 19px; font-weight: 700; }
.receipt table { width: 100%; border-collapse: collapse; font-size: 14px; }
.receipt th { text-align: left; font-weight: 400; color: var(--sub); padding: 7px 0; border-bottom: 1px dotted var(--line); }
.receipt td { text-align: right; padding: 7px 0; border-bottom: 1px dotted var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt__sum { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 8px; }
.receipt__sum b { font-family: var(--latin); font-size: 32px; font-weight: 400; color: var(--brand); }
.receipt__adj { margin: 0 0 14px; padding: 10px 12px; background: var(--soft); font-size: 14px; border-radius: 4px; }
.receipt__note { font-size: 12.5px; color: var(--sub); margin: 0 0 16px; padding-right: 90px; min-height: 60px; }
.stamp { position: absolute; right: 22px; bottom: 74px; width: 70px; height: 70px; display: grid; place-items: center; border: 2.5px solid rgba(181,55,43,.65); color: rgba(181,55,43,.7); border-radius: 50%; font-family: var(--serif); font-weight: 700; font-size: 12px; line-height: 1.2; text-align: center; transform: rotate(14deg); pointer-events: none; }

/* calendar */
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg [aria-pressed=true] { background: var(--ink); color: #fff; }
.cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cal li { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cal li.is-soon { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.cal__date { text-align: center; border-right: 1px solid var(--line); padding-right: 12px; }
.cal__date b { display: block; font-family: var(--latin); font-size: 24px; font-weight: 400; line-height: 1.2; }
.cal__date small { color: var(--sub); font-size: 12px; }
.cal__body b { display: block; font-size: 16px; }
.cal__body small { color: var(--sub); }
.cal__d { font-family: var(--latin); font-size: 18px; color: var(--sub); }
.is-soon .cal__d { color: #fff; background: var(--brand); padding: 3px 10px; border-radius: 4px; font-size: 16px; }

/* people */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person { background: #fff; border: 1px solid var(--line); padding: 26px; display: grid; grid-template-columns: 64px 1fr; gap: 18px; }
.person__mono { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--brand); font-family: var(--serif); font-weight: 700; font-size: 28px; }
.person__role { margin: 0; color: var(--brand); font-size: 13px; font-weight: 700; }
.person h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; }
.person ul { margin: 0 0 12px; padding: 0 0 0 16px; color: #3b4340; font-size: 14px; }
.person__focus { margin: 0; font-size: 13.5px; color: var(--sub); border-top: 1px dotted var(--line); padding-top: 10px; }
.person__focus b { color: var(--ink); }

/* voice + faq */
.voice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); margin-bottom: 50px; }
.voice blockquote { margin: 0; padding: 26px 26px 26px 0; border-right: 1px solid var(--line); margin-right: 26px; }
.voice blockquote:last-child { border: 0; margin: 0; }
.voice p { font-family: var(--serif); font-size: 18px; line-height: 1.8; margin: 0 0 16px; }
.voice footer { color: var(--sub); font-size: 13.5px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-family: var(--latin); color: var(--brand); margin-right: 10px; }
.faq p { margin: 0 0 18px 30px; color: var(--sub); }

/* booking */
#lead-form { max-width: 860px; }
#lead-form .lead__form, #lead-form .lead__done { border-radius: 0; border-top: 6px solid var(--brand); }
#lead-form .lead__kinds button { border-radius: 4px; }

/* map */
.map { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.map__addr { font-family: var(--serif); font-size: 20px; margin: 16px 0 4px; }
.hours { list-style: none; margin: 0; padding: 20px 24px; background: #fff; border: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dotted var(--line); font-size: 14.5px; }
.hours li.is-today { color: var(--brand); font-weight: 700; }
.hours li.note { display: block; border: 0; color: var(--sub); font-size: 13px; }

.foot { background: var(--ink); color: #a7aeaa; padding-top: 46px; padding-bottom: 60px; font-size: 13.5px; }
.foot b { color: #fff; }
.foot a { color: #e2e6e3; }
.foot__notice { border: 1px dashed #44504b; padding: 12px 14px; }
.foot__links, .foot__samples { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__samples span { display: contents; }
.foot__samples a { color: #7fd0bd; }

@media (max-width: 1100px) {
  .side { position: sticky; top: 0; inset: auto; width: auto; height: auto; flex-direction: row; align-items: center; padding: 12px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand__seal { width: 42px; height: 42px; font-size: 12px; }
  .side__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: #fff; padding: 6px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.08); }
  .side__nav.is-open { display: flex; }
  .side__foot { display: none; }
  .burger { display: block; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 13px 11px; cursor: pointer; }
  .burger i { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; }
  .main { margin-left: 0; }
  .fee { grid-template-columns: 1fr; }
  .receipt { position: relative; top: 0; }
  .people { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main > section, .foot { padding-left: 16px; padding-right: 16px; }
  .hero__grid, .map { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .svc li { grid-template-columns: 44px 1fr; gap: 6px 12px; }
  .svc__for { grid-column: 2; border: 0; padding: 0; }
  .svc__go { grid-column: 2; justify-self: start; padding: 0; }
  .form-doc { padding: 20px 16px; }
  .form-doc fieldset { grid-template-columns: 1fr; }
  .cal { grid-template-columns: 1fr; }
  .cal li { grid-template-columns: 60px 1fr auto; gap: 12px; padding: 14px; }
  .people, .voice { grid-template-columns: 1fr; }
  .voice blockquote { border-right: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 22px 0; }
  .ticket__d { font-size: 52px; }
}
