
:root {
  --ink: #101820;
  --muted: #5b6470;
  --line: #d8e0e8;
  --paper: #f7f8f6;
  --white: #ffffff;
  --blue: #0f4c81;
  --green: #286b52;
  --yellow: #f0b323;
  --steel: #6f7d86;
  --shadow: 0 18px 55px rgba(16, 24, 32, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 16px; top: 12px; z-index: 20; background: var(--white); padding: 8px; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px; padding: 0 32px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--ink); color: var(--yellow); font-weight: 800; border-radius: 6px;
}
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: -3px; }
.site-nav { display: flex; gap: 18px; color: #2f3a46; font-size: 15px; }
.nav-link { padding: 24px 0; border-bottom: 2px solid transparent; }
.nav-link:hover { border-color: var(--yellow); }
.header-call { padding: 10px 14px; border: 1px solid var(--ink); border-radius: 6px; font-weight: 700; }
.mobile-nav { display: none; }
.hero {
  min-height: calc(100vh - 72px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: stretch; background: var(--white);
}
.hero-copy { padding: clamp(48px, 7vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 6vw, 74px); line-height: 1.05; margin-bottom: 22px; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.18; margin-bottom: 16px; }
h3 { font-size: 19px; line-height: 1.35; }
.hero-lead { font-size: 19px; color: #33404c; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border-radius: 6px; font-weight: 800; border: 1px solid var(--ink);
}
.button.primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.button.secondary { background: var(--white); }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 42px 0 0; }
.trust-strip div { border-top: 3px solid var(--ink); padding-top: 12px; }
.trust-strip dt { font-size: 30px; font-weight: 900; }
.trust-strip dd { margin: 0; color: var(--muted); }
.hero-visual { min-height: 420px; position: relative; overflow: hidden; }
.hero-visual:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,24,32,.18), rgba(16,24,32,0)); }
.hero-visual.image-error img, .project-image.image-error img, .project-detail-image.image-error img { display: none; }
.hero-visual.image-error:before, .project-image.image-error:before, .project-detail-image.image-error:before {
  content: ""; display: block; width: 100%; height: 100%; min-height: inherit;
  background:
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(255,255,255,.12) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(135deg, #18242e 0%, #406353 46%, #c7b56b 100%);
}
.image-fallback {
  min-height: 220px; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2f3a46, #7a8178 45%, #e4dac4);
  color: var(--white); font-weight: 900; font-size: 28px; text-align: center;
}
.quick-consult {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.quick-consult a {
  display: grid; gap: 4px; min-height: 112px; padding: 20px 24px; background: #fbfcfd;
}
.quick-consult span { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.quick-consult strong { font-size: 19px; }
.quick-consult em { color: var(--muted); font-size: 14px; font-style: normal; }
.section { padding: clamp(54px, 7vw, 96px) clamp(24px, 6vw, 80px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { max-width: 820px; margin-bottom: 0; }
.band { background: #e9eeeb; }
.answer-summary { background: #f0f4f2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.summary-grid div { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.summary-grid strong { display: block; font-size: 18px; margin-bottom: 8px; }
.summary-grid p { margin: 0; color: var(--muted); }
.card-grid { display: grid; gap: 16px; }
.card-grid.six { grid-template-columns: repeat(3, 1fr); }
.card-grid.five { grid-template-columns: repeat(5, 1fr); }
.info-card {
  min-height: 190px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b8c7d2; }
.info-card span { display: block; color: var(--green); font-size: 12px; font-weight: 800; margin-bottom: 12px; }
.info-card strong { display: block; font-size: 20px; margin-bottom: 10px; }
.info-card p { color: var(--muted); margin: 0; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.project-grid.archive { grid-template-columns: repeat(3, 1fr); }
.project-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.project-card-large { grid-column: span 2; grid-row: span 2; }
.project-image { aspect-ratio: 4 / 3; background: #d8ded8; }
.project-card-large .project-image { aspect-ratio: 16 / 10; }
.project-body { padding: 18px; }
.meta { color: var(--green); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.project-body p { color: var(--muted); margin-bottom: 0; }
.split-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--ink); color: var(--white);
}
.split-cta p { color: #dce3ea; }
.page-hero {
  padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 80px) clamp(38px, 5vw, 72px);
  background: var(--white); border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 980px; }
.page-hero p { max-width: 840px; font-size: 18px; color: #33404c; }
.project-detail-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); gap: 34px;
  align-items: stretch; padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 80px);
  background: var(--white); border-bottom: 1px solid var(--line);
}
.project-detail-hero h1 { font-size: clamp(36px, 5vw, 62px); }
.project-detail-hero p { max-width: 780px; font-size: 18px; color: #33404c; }
.project-detail-image {
  min-height: 360px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  background: #d8ded8;
}
.case-summary-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 34px; padding-bottom: 34px;
}
.case-summary-grid div {
  min-height: 128px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 8px;
}
.case-summary-grid span { display: block; color: var(--green); font-size: 12px; font-weight: 900; margin-bottom: 10px; }
.case-summary-grid strong { display: block; font-size: 18px; line-height: 1.4; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.two-col > div { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.check-list { padding: 0; margin: 0; list-style: none; }
.check-list li { padding: 10px 0 10px 28px; border-bottom: 1px solid #edf1f4; position: relative; }
.check-list li:before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.check-list.warn li:before { background: var(--yellow); }
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.compare-table th, .compare-table td { padding: 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--ink); color: var(--white); }
.faq-list { display: grid; gap: 12px; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 12px 0 0; color: var(--muted); }
.contact-panel h2 { color: var(--blue); }
.contact-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.photo-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-guide-card {
  min-height: 156px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 8px;
}
.photo-guide-card span { display: block; color: var(--green); font-size: 12px; font-weight: 900; margin-bottom: 8px; }
.photo-guide-card strong { display: block; font-size: 18px; margin-bottom: 8px; }
.photo-guide-card p { margin: 0; color: var(--muted); }
.estimate-form {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px;
}
.estimate-form label { display: grid; gap: 8px; font-weight: 800; color: #2f3a46; }
.estimate-form input, .estimate-form select, .estimate-form textarea {
  width: 100%; min-height: 46px; border: 1px solid #c8d2dc; border-radius: 6px; padding: 10px 12px;
  font: inherit; background: #fbfcfd; color: var(--ink);
}
.estimate-form textarea { min-height: 120px; resize: vertical; }
.estimate-form .full, .estimate-form p { grid-column: 1 / -1; }
.estimate-form p { margin: 0; color: var(--muted); }
.site-footer {
  display: flex; justify-content: space-between; gap: 32px; padding: 40px clamp(24px, 6vw, 80px) 88px;
  background: #151b22; color: var(--white);
}
.site-footer p { color: #bec8d1; margin-bottom: 6px; }
.mobile-cta { display: none; }
@media (max-width: 980px) {
  [id] { scroll-margin-top: 128px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .site-header { min-height: 64px; padding: 0 18px; gap: 12px; }
  .brand { min-width: 0; }
  .brand-mark { width: 38px; height: 38px; border-radius: 6px; }
  .site-nav { display: none; }
  .mobile-nav {
    position: sticky; top: 64px; z-index: 9; display: flex; gap: 8px; overflow-x: auto;
    padding: 8px 18px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px;
    background: #fbfcfd; font-size: 14px; font-weight: 800; color: #2f3a46;
  }
  .mobile-nav a:active { background: var(--yellow); border-color: var(--yellow); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 30px 20px 38px; }
  .hero-visual { order: -1; min-height: 240px; max-height: 320px; }
  .hero-lead, .page-hero p, .project-detail-hero p { font-size: 16px; line-height: 1.65; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .button { width: 100%; min-height: 52px; padding: 0 16px; }
  .quick-consult { grid-template-columns: repeat(2, 1fr); }
  .quick-consult a { min-height: 92px; padding: 16px 18px; }
  .quick-consult strong { font-size: 17px; }
  .quick-consult em { font-size: 13px; }
  .summary-grid, .card-grid.six, .card-grid.five, .project-grid, .project-grid.archive, .two-col, .project-detail-hero, .case-summary-grid, .photo-guide-grid, .estimate-form { grid-template-columns: 1fr; }
  .project-card-large { grid-column: auto; grid-row: auto; }
  .section-head, .split-cta, .site-footer { flex-direction: column; align-items: flex-start; }
  .section { padding: 44px 18px; }
  .section-head { align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  h1 { font-size: 34px; line-height: 1.14; margin-bottom: 16px; }
  h2 { font-size: 27px; line-height: 1.22; }
  h3 { font-size: 18px; }
  .eyebrow { font-size: 12px; margin-bottom: 8px; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
  .trust-strip div { padding-top: 8px; }
  .trust-strip dt { font-size: 21px; }
  .trust-strip dd { font-size: 12px; line-height: 1.35; }
  .info-card { min-height: auto; padding: 18px; }
  .info-card strong { font-size: 18px; }
  .project-grid { gap: 14px; }
  .project-image, .project-card-large .project-image { aspect-ratio: 16 / 10; }
  .project-body { padding: 16px; }
  .page-hero { padding: 42px 20px 34px; }
  .project-detail-hero { padding: 34px 20px; gap: 22px; }
  .project-detail-image { min-height: 220px; }
  .case-summary-grid { padding-top: 22px; padding-bottom: 22px; gap: 10px; }
  .case-summary-grid div { min-height: auto; padding: 16px; }
  .two-col > div { padding: 20px; }
  .check-list li { padding-top: 12px; padding-bottom: 12px; }
  .compare-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  details { padding: 16px 18px; }
  summary { line-height: 1.45; }
  .estimate-form { padding: 18px; gap: 14px; }
  .estimate-form input, .estimate-form select, .estimate-form textarea { min-height: 52px; font-size: 16px; }
  .split-cta { padding-top: 44px; padding-bottom: 44px; }
  .site-footer { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; z-index: 30;
    padding-bottom: env(safe-area-inset-bottom); background: var(--ink); box-shadow: 0 -10px 30px rgba(16,24,32,.18);
  }
  .mobile-cta a { display: grid; place-items: center; min-height: 58px; background: var(--yellow); font-weight: 900; border-top: 1px solid rgba(0,0,0,.1); }
  .mobile-cta a + a { background: var(--ink); color: var(--white); }
}
@media (max-width: 560px) {
  .site-header { min-height: 58px; padding: 0 14px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .header-call { display: none; }
  .mobile-nav { top: 58px; padding: 7px 14px; gap: 7px; }
  .mobile-nav a { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
  .hero-visual { min-height: 210px; max-height: 240px; }
  .hero-copy { padding: 26px 18px 34px; }
  h1 { font-size: 31px; }
  h2 { font-size: 24px; }
  .hero-lead, .page-hero p, .project-detail-hero p { font-size: 15.5px; }
  .section { padding: 38px 16px; }
  .quick-consult { grid-template-columns: 1fr 1fr; }
  .quick-consult a { min-height: 84px; padding: 14px 15px; }
  .quick-consult span { font-size: 11px; }
  .quick-consult strong { font-size: 16px; }
  .quick-consult em { font-size: 12px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { display: flex; align-items: baseline; gap: 10px; border-top-width: 2px; }
  .trust-strip dd { font-size: 13px; }
  .project-detail-hero h1 { font-size: 30px; }
  .page-hero { padding: 36px 18px 30px; }
  .project-detail-hero { padding: 30px 18px; }
  .mobile-cta a { min-height: 56px; font-size: 15px; }
}
@media (max-width: 380px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .hero-copy, .page-hero, .project-detail-hero { padding-left: 15px; padding-right: 15px; }
  .section { padding-left: 14px; padding-right: 14px; }
  .button { min-height: 50px; font-size: 14px; }
}
