:root {
  --navy: #12233f;
  --text: #2a3952;
  --muted: #5e697c;
  --sky: #1593d6;
  --sky-dark: #117ab2;
  --sky-soft: #eaf5fb;
  --tint: #f6fbfd;
  --line: #e4ecf2;
  --input-line: #cedde7;
  --footer-text: #cbd5dd;
  --footer-muted: #899fb2;
  --footer-accent: #67b9e4;
  --navy-rgb: 18, 35, 63;
  --sky-rgb: 21, 147, 214;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(var(--navy-rgb), 0.08);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy); line-height: 1.35; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--sky); color: var(--white); }
.btn-primary:hover { background: var(--sky-dark); }
.btn-ghost { background: rgba(255,255,255,.9); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky-dark); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; color: var(--navy); letter-spacing: -0.03em; }
.brand em { font-style: normal; color: var(--sky); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--text); }
.nav a:hover { color: var(--sky-dark); }

/* hero */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%); }
.hero-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.eyebrow { color: var(--sky-dark); font-weight: 700; font-size: 15px; letter-spacing: .02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.hero-sub { margin-top: 18px; font-size: 19px; color: var(--muted); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* points */
.points { border-bottom: 1px solid var(--line); }
.points-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--sky-soft); display: grid; place-items: center; }
.point-icon svg { width: 22px; height: 22px; fill: var(--sky); }
.point strong { display: block; color: var(--navy); font-size: 17px; }
.point p { color: var(--muted); font-size: 15px; line-height: 1.55; margin-top: 2px; }

/* sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2, .about-text h2, .quote-info h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.service-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-body { padding: 26px 28px 30px; }
.service-body h3 { font-size: 22px; }
.service-body p { margin-top: 10px; color: var(--muted); }
.service-body ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.service-body li { position: relative; padding-left: 24px; font-size: 16px; }
.service-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2.5px solid var(--sky); border-bottom: 2.5px solid var(--sky); transform: rotate(-45deg) translateY(-50%); }

/* clean feature */
.clean-feature { margin-top: 48px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; background: var(--sky-soft); border-radius: 22px; padding: 40px; }
.clean-feature img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.clean-text h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; }
.clean-text p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }
.checks { margin: 18px 0 28px; padding: 0; list-style: none; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; font-weight: 600; color: var(--navy); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2.5px solid var(--sky); border-bottom: 2.5px solid var(--sky); transform: rotate(-45deg) translateY(-50%); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sky); color: var(--white); font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 20px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* about */
.about { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.about-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 500px; justify-self: center; }
.about-text p:not(.eyebrow) { margin-top: 16px; }
.about-text .sign { margin-top: 24px; color: var(--muted); }
.about-text .sign strong { color: var(--navy); font-size: 19px; margin-left: 4px; }
.area { margin: 28px 0 0; padding: 18px 20px; border-radius: 12px; background: var(--sky-soft); }
.area dt { font-weight: 700; color: var(--navy); font-size: 15px; }
.area dd { margin: 4px 0 0; }

/* quote */
.quote { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.quote-info p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }
.phone-big { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 32px; font-weight: 800; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; }
.phone-big svg { width: 30px; height: 30px; fill: var(--sky); }
.quote-info .hours { margin-top: 6px; font-size: 15px; }
.quote-img { margin-top: 32px; border-radius: var(--radius); width: 100%; max-width: 460px; box-shadow: var(--shadow); }

.quote-form { background: var(--white); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-weight: 700; color: var(--navy); font-size: 16px; }
.req { font-size: 12px; font-weight: 700; color: var(--sky-dark); background: var(--sky-soft); padding: 2px 7px; border-radius: 6px; margin-left: 4px; vertical-align: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--navy);
  min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--input-line); border-radius: 12px; background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(var(--sky-rgb),.15); }
.field .invalid { border-color: #d64545; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { background: var(--tint); border-radius: 12px; padding: 14px 16px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--navy); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--sky); flex: none; }
.consent details { margin-top: 6px; font-size: 14px; color: var(--muted); }
.consent summary { cursor: pointer; color: var(--sky-dark); }
.consent details p { margin-top: 8px; line-height: 1.7; }
.form-msg { min-height: 1.2em; font-weight: 600; }
.form-msg.ok { color: #0f7a4a; }
.form-msg.err { color: #c03636; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--sky); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* footer */
.site-footer { background: var(--navy); color: var(--footer-text); padding: 56px 0 40px; font-size: 15px; }
.site-footer .brand { color: var(--white); font-size: 20px; }
.site-footer .brand em { color: var(--footer-accent); }
.footer-brand p { margin-top: 8px; }
.biz { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.biz span { color: var(--footer-muted); margin-right: 8px; }
.biz a { text-decoration: none; }
.footer-links { margin-top: 22px; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-note { margin-top: 18px; font-size: 13px; color: var(--footer-muted); }
.copy { margin-top: 6px; font-size: 13px; color: var(--footer-muted); }

/* mobile bottom bar */
.mobile-bar { display: none; }

/* 칸이 없을 때 */
.hero-solo { grid-template-columns: 1fr; }
.hero-solo .hero-inner { max-width: 760px; }
.clean-feature.no-img, .about.no-img { grid-template-columns: 1fr; }
.field-row.single { grid-template-columns: 1fr; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.mobile-bar.no-phone { grid-template-columns: 1fr; }

/* 시안 표시 */
.spec-banner { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 14px; font-weight: 700; padding: 8px 16px; }

/* 헤더 대표번호 */
.header-phone { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-weight: 800; font-size: 18px; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; fill: var(--sky); }

/* 카카오톡 상담 */
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { background: #f5dc00; }
.btn-kakao svg, .mb-kakao svg { width: 22px; height: 22px; fill: #191919; }
.kakao-card { background: var(--white); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.kakao-card h3 { font-size: 24px; font-weight: 800; }
.kakao-card p { color: var(--muted); }
.kakao-card .checks { margin: 4px 0 8px; }
.kakao-badge { width: 56px; height: 56px; border-radius: 16px; background: #fee500; display: grid; place-items: center; }
.kakao-badge svg { width: 30px; height: 30px; fill: #191919; }
.float-cta { position: fixed; right: 20px; bottom: 24px; z-index: 25; display: grid; gap: 10px; }
.float-cta a { display: grid; justify-items: center; gap: 4px; width: 92px; padding: 14px 6px; border-radius: 18px; text-decoration: none; font-size: 13px; font-weight: 800; line-height: 1.3; text-align: center; box-shadow: 0 8px 24px rgba(var(--navy-rgb), .18); }
.float-cta svg { width: 26px; height: 26px; }
.fc-kakao { background: #fee500; color: #191919; }
.fc-kakao svg { fill: #191919; }
.fc-call { background: var(--sky); color: var(--white); }
.fc-call svg { fill: var(--white); }
.fc-call span { font-size: 12px; }

/* 서비스 5·6개 */
.service-grid.n3, .service-grid.n6 { grid-template-columns: repeat(3, 1fr); }
.service-grid.n5 { grid-template-columns: repeat(6, 1fr); }
.service-grid.n5 .service-card { grid-column: span 2; }
.service-grid.n5 .service-card:nth-child(n+4) { grid-column: span 3; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .hero-img { order: -1; }
  .clean-feature { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .clean-feature img { max-width: 460px; }
  .points-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .quote { grid-template-columns: 1fr; gap: 36px; }
  .quote-img { display: none; }
  .header-phone { display: none; }
  .service-grid.n3, .service-grid.n5, .service-grid.n6 { grid-template-columns: repeat(2, 1fr); }
  .service-grid.n5 .service-card, .service-grid.n5 .service-card:nth-child(n+4) { grid-column: auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .nav, .header-cta { display: none; }
  .header-inner { height: 60px; }
  .hero-grid { gap: 24px; padding-top: 0; padding-bottom: 40px; }
  .hero-img { width: calc(100% + 40px); max-width: none; margin: 0 -20px; border-radius: 0; box-shadow: none; }
  .clean-feature { margin-left: -20px; margin-right: -20px; border-radius: 0; padding: 28px 20px; }
  .clean-feature .btn { width: 100%; }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .points-grid { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; padding-bottom: 28px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 30px; }
  .service-grid, .service-grid.n3, .service-grid.n5, .service-grid.n6 { grid-template-columns: 1fr; gap: 20px; }
  .float-cta { display: none; }
  .kakao-card { padding: 26px 20px; }
  .service-body { padding: 22px 20px 24px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 20px; }
  .step-no { grid-row: span 2; margin: 0; }
  .steps p { margin-top: 2px; }
  .quote-form { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .phone-big { font-size: 28px; }
  .biz { flex-direction: column; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(var(--navy-rgb),.08);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 12px; font-weight: 800; text-decoration: none; font-size: 17px; }
  .mb-call { background: var(--sky-soft); color: var(--sky-dark); }
  .mb-call svg { width: 20px; height: 20px; fill: currentColor; }
  .mb-quote { background: var(--sky); color: var(--white); }
  .mb-kakao { background: #fee500; color: #191919; }
}
