:root {
  --ink: #1E332B;
  --accent: #D9A441;
  --paper: #F5F3EA;
  --line: #D8D3C0;
  --muted: #5B6660;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Noto Sans KR", sans-serif; font-display: swap;
  color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.7;
}
h1, h2, h3 { font-family: "Gowun Dodum", sans-serif; }
a { color: inherit; }
img { max-width: 100%; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #1E332B; padding: 10px 16px; z-index: 200; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: #fff; }
.header-inner { max-width: 800px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: inherit; font-family: "Gowun Dodum", sans-serif; }
.main-nav ul { list-style: none; display: none; gap: 24px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 500; }
.hamburger { width: 44px; height: 44px; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger span { width: 22px; height: 2px; background: #fff; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.mobile-nav a { display: block; padding: 12px 0; color: #fff; text-decoration: none; font-weight: 500; border-top: 1px solid rgba(255,255,255,.15); min-height: 44px; }
@media (min-width: 768px) { .main-nav ul { display: flex; } .hamburger { display: none; } .mobile-nav { display: none !important; } }

main { max-width: 760px; margin: 0 auto; padding: 0 20px 80px; }
.breadcrumb { padding: 16px 0; font-size: .85rem; color: var(--muted); }
.breadcrumb a { text-decoration: underline; }

.hero {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: 8px; margin-bottom: 32px;
}
.hero-img { width: 100%; height: 46vh; min-height: 300px; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 6vw; background: linear-gradient(90deg, rgba(30,51,43,.92) 30%, rgba(30,51,43,.3) 90%);
  color: #fff;
}
.doc-tag {
  display: inline-block; font-size: .78rem; letter-spacing: .1em; color: var(--ink); font-weight: 700;
  border: 2px solid var(--accent); border-radius: 999px; padding: 4px 12px; margin: 0 0 14px; align-self: flex-start;
  background: var(--accent);
}
.hero-overlay h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 14px; color: #fff; font-weight: 700; }
.doc-lead { color: #dce6df; margin: 0; max-width: 620px; }

.section { padding: 32px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 1.4rem; margin: 0 0 16px; }
.section > p { color: var(--muted); }

.hazard-stripe {
  height: 10px; margin-bottom: 20px;
  background: repeating-linear-gradient(135deg, var(--accent), var(--accent) 14px, var(--ink) 14px, var(--ink) 28px);
}

.defect-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.defect-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 16px 18px; }
.defect-tag {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .04em;
  background: var(--ink); color: var(--accent); border-radius: 999px; padding: 4px 12px; margin-bottom: 8px;
}
.defect-item p { margin: 0; color: var(--muted); font-size: .93rem; }

.site-photos { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
.site-photos figure { margin: 0; }
.site-photos img { width: 100%; height: 200px; object-fit: cover; border: 2px solid var(--ink); }
.site-photos figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); text-align: center; }
@media (min-width: 700px) { .site-photos { grid-template-columns: repeat(2, 1fr); } }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
th, td { border: 1px solid var(--line); padding: 12px; text-align: left; font-size: .93rem; }
th { background: var(--ink); color: var(--accent); font-weight: 700; font-family: "Gowun Dodum", sans-serif; }
tr:nth-child(even) td { background: #EDE9D8; }

.repair-steps { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.repair-steps li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 18px 14px 56px; counter-increment: step;
}
.repair-steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--ink);
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .85rem;
}
.repair-steps strong { display: block; font-family: "Gowun Dodum", sans-serif; }
.repair-steps span { color: var(--muted); font-size: .9rem; }

.faq-section .accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; padding: 16px 4px; font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; justify-content: space-between; min-height: 44px; color: var(--ink);
  font-family: "Gowun Dodum", sans-serif;
}
.accordion-trigger::after { content: "+"; color: var(--ink); font-weight: 400; background: var(--accent); border-radius: 50%; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.accordion-trigger[aria-expanded="true"]::after { content: "-"; }
.accordion-panel { padding: 0 4px 16px; color: var(--muted); }

.links-section p { color: var(--ink); }
.links-section a { text-decoration: underline; color: var(--ink); font-weight: 700; }

.cta-section { display: flex; gap: 12px; flex-wrap: wrap; padding: 32px 0 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }

.site-footer { background: var(--ink); color: #cdd6d0; padding: 40px 20px 100px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 0 0 20px; padding: 0; max-width: 800px; margin-left: auto; margin-right: auto; }
.site-footer nav a { color: #fff; text-decoration: none; font-size: .92rem; }
.site-footer address { font-style: normal; font-size: .88rem; line-height: 1.8; text-align: center; }
.site-footer a[href^="tel:"] { color: var(--accent); font-weight: 700; }
.site-footer p { text-align: center; }

.mobile-cta-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; z-index: 150; box-shadow: 0 -2px 12px rgba(0,0,0,.15); }
.mobile-cta { flex: 1; min-height: 56px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; }
.mobile-cta.call { background: var(--accent); color: var(--ink); }
.mobile-cta.inquiry { background: var(--ink); color: #fff; }
@media (min-width: 1024px) { .mobile-cta-bar { display: none; } }

@media (max-width: 640px) {
  .table-scroll { overflow-x: visible; }
  .table-scroll table { min-width: 0; width: 100%; table-layout: fixed; }
  .table-scroll th, .table-scroll td {
    padding: 4px 3px; font-size: 0.62rem; line-height: 1.25; word-break: break-all; overflow-wrap: break-word; white-space: normal;
  }
}
