/* =========================================================
   한국산업발전(주) 홈페이지 스타일시트
   ========================================================= */
:root {
  --navy: #0d2c4b;
  --navy-2: #123a63;
  --blue: #1f7ae0;
  --blue-soft: #e8f1fc;
  --green: #14a35f;
  --green-soft: #e6f6ee;
  --amber: #ffb020;
  --ink: #1b2a3a;
  --muted: #5c6b7c;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(13, 44, 75, .08);
  --shadow-lg: 0 18px 50px rgba(13, 44, 75, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.inner { width: min(1180px, 92%); margin: 0 auto; }
[id] { scroll-margin-top: 78px; }
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- 섹션 헤더 ---------- */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255, 255, 255, .75); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(31, 122, 224, .35); }
.btn-primary:hover { background: #1667c2; transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   헤더
   ========================================================= */
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s, padding .35s;
}
#header .inner { display: flex; align-items: center; gap: 36px; }

.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; }

#gnb { margin-left: auto; }
#gnb ul { display: flex; gap: 6px; }
#gnb a {
  display: block;
  padding: 10px 16px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  border-radius: 8px;
  transition: color .25s, background .25s;
}
#gnb a:hover { background: var(--blue-soft); color: var(--blue); }

.head-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  transition: background .25s;
}
.head-cta svg { width: 16px; height: 16px; fill: currentColor; }
.head-cta:hover { background: #1667c2; }

/* 스크롤 시 헤더 */
#header.scrolled { box-shadow: 0 2px 20px rgba(13, 44, 75, .12); padding: 10px 0; }

/* 햄버거 */
#menuBtn { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: 8px; }
#menuBtn span { width: 24px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: all .3s var(--ease); }
#header.menu-open #menuBtn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
#header.menu-open #menuBtn span:nth-child(2) { opacity: 0; }
#header.menu-open #menuBtn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

#mobileNav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
#mobileNav.open { opacity: 1; pointer-events: auto; }
#mobileNav ul { text-align: center; display: grid; gap: 6px; }
#mobileNav a { font-size: 22px; font-weight: 700; color: var(--navy); display: block; padding: 10px 30px; }
#mobileNav .m-tel { font-size: 16px; color: var(--blue); font-weight: 700; }

/* =========================================================
   히어로
   ========================================================= */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.hero-slides, .hero-slides .slide { position: absolute; inset: 0; }
.hero-slides .slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease;
}
.hero-slides .slide.is-active { opacity: 1; animation: kenburns 7s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 22, 38, .62) 0%, rgba(7, 22, 38, .38) 45%, rgba(7, 22, 38, .72) 100%);
}

.hero-content { position: relative; z-index: 2; text-align: center; padding: 140px 6% 80px; }
.hero-eyebrow {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  margin-bottom: 28px;
}
.hero-content h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.hero-content h1 span { color: #7cc3ff; }
.hero-btns { margin-top: 44px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: all .3s; }
.hero-dots button.is-active { width: 30px; background: #fff; }

/* =========================================================
   통계 밴드
   ========================================================= */
.stats-band { position: relative; z-index: 5; margin-top: -64px; }
.stats-band .inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat { padding: 36px 20px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 26%; height: 48%; width: 1px; background: var(--line); }
.stat strong { display: block; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat strong .count { color: var(--blue); }
.stat strong em { font-style: normal; font-size: .62em; margin-left: 3px; }
.stat > span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); font-weight: 500; }

/* =========================================================
   회사소개
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.about-lead { max-width: 940px; margin: 0 auto 16px; text-align: center; font-size: 20px; line-height: 1.75; color: var(--ink); }
.about-lead strong { color: var(--blue); font-weight: 800; }
.about-desc { max-width: 880px; margin: 0 auto 56px; text-align: center; font-size: 16.5px; color: var(--muted); }

.info-card { background: var(--bg-alt); border-radius: var(--radius); padding: 38px 34px; }
.info-card h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.info-card h3 small { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--blue); margin-left: 8px; }

.company-info { border-top: 2px solid var(--navy); }
.company-info > div { display: grid; grid-template-columns: 110px 1fr; padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
.company-info dt { font-weight: 700; color: var(--navy); }
.company-info dd { color: var(--muted); }

.history { background: var(--bg-alt); border-radius: var(--radius); padding: 38px 34px; }
.history h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 26px; }
.history h3 small { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--blue); margin-left: 8px; }

.timeline { position: relative; padding-left: 4px; }
.timeline li { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 0 0 26px 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 86px;
  top: 8px;
  bottom: -2px;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: "";
  position: absolute;
  left: 82px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--blue);
}
.tl-date { font-weight: 800; color: var(--blue); font-size: 14.5px; padding-top: 2px; }
.tl-body { padding-left: 22px; }
.tl-body strong { display: block; font-size: 15.5px; color: var(--ink); font-weight: 700; line-height: 1.45; }
.tl-body p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* =========================================================
   사업분야
   ========================================================= */
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.biz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.biz-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.biz-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.biz-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 2.4; }
.biz-card:nth-child(2) .biz-icon { background: var(--green-soft); }
.biz-card:nth-child(2) .biz-icon svg { stroke: var(--green); }
.biz-card:nth-child(3) .biz-icon { background: #fff4e0; }
.biz-card:nth-child(3) .biz-icon svg { stroke: #e8930c; }
.biz-card:nth-child(4) .biz-icon { background: #f0ecfd; }
.biz-card:nth-child(4) .biz-icon svg { stroke: #6d4fd0; }
.biz-card h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.biz-card p { font-size: 14.5px; color: var(--muted); }

/* =========================================================
   왜 태양광인가
   ========================================================= */
.why {
  padding: 110px 0;
  background:
    linear-gradient(120deg, rgba(10, 30, 54, .96), rgba(13, 44, 75, .88)),
    url("img/banner-city.jpg") center/cover no-repeat;
  color: #fff;
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 40px 32px;
  backdrop-filter: blur(4px);
  transition: transform .3s var(--ease), background .3s;
}
.why-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); }
.why-card strong { font-size: 46px; font-weight: 800; color: #7cc3ff; line-height: 1; }
.why-card strong i { font-style: normal; font-size: 26px; margin-left: 2px; }
.why-card h3 { margin: 18px 0 10px; font-size: 19px; font-weight: 700; }
.why-card p { font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.why-card p small { display: block; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .45); }

/* =========================================================
   사업모델
   ========================================================= */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.process li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.process li:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.process li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -19px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--blue);
  border-right: 3px solid var(--blue);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}
.step-no { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .18em; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 6px 16px; }
.step-icon { width: 84px; height: 84px; margin: 24px auto 20px; border-radius: 24px; background: linear-gradient(135deg, var(--blue-soft), #f2f8ff); display: flex; align-items: center; justify-content: center; }
.step-icon svg { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 2.2; }
.process h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.process p { font-size: 14.5px; color: var(--muted); }

.model-badges { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.model-badges li {
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  font-weight: 500;
}
.model-badges strong { color: #ffd66e; font-weight: 800; margin-left: 4px; }

.benefit-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { background: var(--bg-alt); border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--blue); }
.benefit:nth-child(2) { border-top-color: var(--green); }
.benefit:nth-child(3) { border-top-color: var(--amber); }
.benefit:nth-child(4) { border-top-color: #6d4fd0; }
.benefit h4 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.benefit p { font-size: 14px; color: var(--muted); }

.footnote { margin-top: 34px; font-size: 12.5px; color: #9aa8b6; text-align: center; }

/* =========================================================
   사업실적
   ========================================================= */
.record-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
.record-summary > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.record-summary strong { display: block; font-size: 24px; font-weight: 800; color: var(--blue); }
.record-summary span { font-size: 14px; color: var(--muted); }

.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  padding: 12px 30px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--muted);
  transition: all .25s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.table-wrap {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 480px;
  overflow: auto;
}
.table-wrap.is-active { display: block; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 15px 16px;
  text-align: left;
  white-space: nowrap;
}
.table-wrap thead th:nth-child(1), .table-wrap tbody td:nth-child(1) { text-align: center; width: 64px; }
.table-wrap thead th:nth-child(4), .table-wrap tbody td:nth-child(4) { text-align: right; }
.table-wrap tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.table-wrap tbody td:nth-child(3) { color: var(--muted); font-size: 13.5px; }
.table-wrap tbody td:nth-child(4) { font-weight: 700; color: var(--blue); white-space: nowrap; }
.table-wrap tbody td:nth-child(5) { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.table-wrap tbody tr:hover { background: #f6faff; }
.table-wrap tfoot td { position: sticky; bottom: 0; background: var(--blue-soft); font-weight: 800; color: var(--navy); padding: 15px 16px; }
.table-wrap tfoot td:nth-child(2) { text-align: right; color: var(--blue); font-size: 16px; }

/* =========================================================
   설치사례
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.g-item.wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 46px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(7, 22, 38, .82));
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.badge-green { background: var(--green); }

/* 라이트박스 */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 15, 26, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
#lightbox figcaption { position: absolute; bottom: 5vh; left: 50%; transform: translateX(-50%); color: #fff; font-size: 16px; font-weight: 600; }
#lightbox .lb-close { position: absolute; top: 26px; right: 30px; color: #fff; font-size: 34px; line-height: 1; opacity: .8; }
#lightbox .lb-close:hover { opacity: 1; }

/* =========================================================
   파트너
   ========================================================= */
.partners { padding: 96px 0; background: var(--bg-alt); }
.partner-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 116px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(13, 44, 75, .05);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.partner-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-name { font-size: 20px; font-weight: 800; letter-spacing: .01em; color: #33415a; line-height: 1.3; }
.partner-list li:hover .p-name { color: var(--blue); }

/* =========================================================
   문의
   ========================================================= */
.contact {
  background:
    linear-gradient(140deg, rgba(10, 30, 54, .97), rgba(16, 53, 92, .93)),
    url("img/case-roof-2.jpg") center/cover no-repeat;
  color: #fff;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  padding: 26px 24px;
  backdrop-filter: blur(4px);
}
.c-card h4 { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: #7cc3ff; margin-bottom: 10px; }
.c-card .c-big { display: block; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; word-break: break-all; }
.c-card .c-big:hover { color: #7cc3ff; }
.c-card p { font-size: 14px; color: rgba(255, 255, 255, .72); }

.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  display: grid;
  gap: 18px;
}
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fbfdff;
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 122, 224, .12);
}
.form-hint { font-size: 12.5px; color: #9aa8b6; text-align: center; font-weight: 400; }

/* =========================================================
   푸터
   ========================================================= */
footer { background: #0a1d33; color: rgba(255, 255, 255, .6); padding: 56px 0 44px; }
.f-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.f-brand strong { display: block; font-size: 20px; font-weight: 800; color: #fff; }
.f-brand span { font-size: 12px; letter-spacing: .08em; }
.f-links { display: flex; gap: 26px; }
.f-links a { font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.f-links a:hover { color: #fff; }
.f-info { padding: 24px 0 14px; font-size: 13.5px; line-height: 1.9; }
.copyright { font-size: 12.5px; color: rgba(255, 255, 255, .38); }

/* 맨 위로 */
#toTop {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .3s;
}
#toTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#toTop:hover { background: var(--blue); }
#toTop svg { width: 20px; height: 20px; }

/* =========================================================
   스크롤 리빌 애니메이션
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slides .slide.is-active { animation: none; transform: none; }
}

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1024px) {
  .biz-grid, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .head-cta { display: none; }
}

@media (max-width: 860px) {
  #gnb { display: none; }
  #menuBtn { display: flex; margin-left: auto; }

  .section { padding: 80px 0; }
  .stats-band { margin-top: -50px; }
  .stats-band .inner { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 14px; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  .why-grid, .process, .record-summary { grid-template-columns: 1fr; }
  .process li:not(:last-child)::after {
    right: 50%;
    top: auto;
    bottom: -20px;
    transform: translateX(50%) rotate(135deg);
  }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-item.wide { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .f-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .biz-grid, .benefit-grid, .gallery, .contact-info { grid-template-columns: 1fr; }
  .g-item.wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .hero-content h1 br { display: none; }
  .company-info > div { grid-template-columns: 92px 1fr; }
  .timeline li { grid-template-columns: 64px 1fr; }
  .timeline li::before { left: 74px; }
  .timeline li::after { left: 70px; }
  .tl-body { padding-left: 18px; }
}

/* =========================================================
   서브 헤딩 (섹션 내 소제목)
   ========================================================= */
.sub-head { text-align: center; margin: 88px 0 36px; }
.sub-head h3 {
  display: inline-block;
  position: relative;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--navy);
}
.sub-head h3::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--blue);
  margin: 14px auto 0;
}
.sub-head p { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

/* =========================================================
   수익 구조
   ========================================================= */
.revenue-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 940px;
  margin: 0 auto;
}
.rf-node {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.rf-node strong { font-size: 18px; font-weight: 800; color: var(--navy); }
.rf-node span { font-size: 13.5px; color: var(--muted); }
.rf-plant { border-color: var(--blue); box-shadow: 0 12px 30px rgba(31, 122, 224, .12); }
.rf-plant svg { width: 46px; height: 46px; margin: 0 auto 8px; fill: none; stroke: var(--blue); stroke-width: 2.2; }
.rf-links { display: flex; flex-direction: column; justify-content: space-around; gap: 18px; padding: 10px 0; }
.rf-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 22px; }
.rf-arrow em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--navy-2); white-space: nowrap; }
.rf-arrow em small { color: var(--blue); font-weight: 800; }
.rf-arrow i {
  width: 100%;
  min-width: 130px;
  height: 2px;
  background: var(--blue);
  position: relative;
}
.rf-arrow i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left: 8px solid var(--blue);
}
.rf-buyers { display: flex; flex-direction: column; gap: 14px; }
.rf-buyers .rf-node { flex: 1; }

/* =========================================================
   추진 절차 로드맵
   ========================================================= */
.roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: rm;
  position: relative;
}
.roadmap li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 18px 24px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.roadmap li:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.roadmap li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid var(--blue);
  border-right: 2.5px solid var(--blue);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}
.rm-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}
.roadmap h3 { font-size: 17.5px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.roadmap p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* =========================================================
   지붕 누수 대비 시공 (소개서식 3열 x 2단 배치)
   ========================================================= */
.repair-cols {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  gap: 18px;
  align-items: stretch;
  max-width: 1140px;
  margin: 0 auto;
}
.repair-col { display: flex; flex-direction: column; gap: 14px; }
.rc-label {
  align-self: center;
  background: var(--navy);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  padding: 11px 34px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.repair-col figure {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.repair-col figure { aspect-ratio: 6 / 5; }
.repair-col figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-note { text-align: center; font-size: 17.5px; font-weight: 800; margin-top: 2px; }
.rc-note.bad { color: #d64545; }
.rc-note.good { color: var(--green); }
.rc-arrow {
  align-self: center;
  width: 42px;
  height: 48px;
  background: linear-gradient(135deg, #a8cdf5, var(--blue));
  clip-path: polygon(0 32%, 52% 32%, 52% 10%, 100% 50%, 52% 90%, 52% 68%, 0 68%);
}

/* =========================================================
   FAQ
   ========================================================= */
.inner-narrow { max-width: 860px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] { border-color: var(--blue); box-shadow: 0 10px 30px rgba(31, 122, 224, .10); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q.";
  color: var(--blue);
  font-weight: 800;
  margin-right: 2px;
}
.faq-item summary { text-align: left; }
.faq-icon { position: relative; width: 22px; height: 22px; flex: none; margin-left: auto; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 24px 22px 24px; border-top: 1px dashed var(--line); }
.faq-body p { padding-top: 14px; font-size: 15px; color: var(--muted); }
.faq-body p strong { color: var(--ink); }

/* =========================================================
   전화 플로팅 버튼 (모바일)
   ========================================================= */
#callFab {
  position: fixed;
  right: 26px;
  bottom: 88px;
  z-index: 80;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
#callFab svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- 신규 요소 반응형 ---------- */
@media (max-width: 1024px) {
  .roadmap { grid-template-columns: repeat(3, 1fr); }
  .roadmap li:nth-child(3)::after { display: none; }
}

@media (max-width: 860px) {
  #callFab { display: flex; }
  .revenue-flow { grid-template-columns: 1fr; gap: 14px; }
  .rf-links { flex-direction: row; justify-content: center; padding: 4px 0; }
  .rf-arrow { padding: 0; }
  .rf-arrow i { min-width: 90px; transform: rotate(90deg) scaleX(.4); display: none; }
  .rf-arrow { gap: 2px; }
  .rf-arrow::after { content: "▼"; color: var(--blue); font-size: 13px; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .roadmap li:nth-child(3)::after { display: block; }
  .roadmap li:nth-child(2n)::after { display: none; }
  .repair-cols { grid-template-columns: 1fr; gap: 16px; }
  .rc-arrow { transform: rotate(90deg); margin: 4px auto; }
}

@media (max-width: 560px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li::after { display: none !important; }
  .faq-item summary { font-size: 15px; padding: 17px 18px; }
  .faq-body { padding: 0 18px 18px; }
}

/* =========================================================
   수정안 반영 (2026. 08) — 신규 컴포넌트
   ========================================================= */
/* SMP · REC 시세 */
.market { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 940px; margin: 0 auto; }
.market-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow);
}
.market-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.market-head strong { font-size: 27px; font-weight: 800; color: var(--navy); }
.market-head span { font-size: 13.5px; color: var(--muted); }
.market-head em { font-style: normal; font-size: 12.5px; color: #9aa8b6; margin-left: auto; }
.market-stats li { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.market-stats li:last-child { border-bottom: 0; }
.market-stats li span { font-size: 15px; color: var(--muted); }
.market-stats li b { font-size: 18px; font-weight: 800; color: var(--ink); }
.market-stats li.main b { font-size: 27px; color: var(--blue); }
.market-stats li b.up { color: #d64545; }
.market-stats li b.down { color: #2563c9; }
.market-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 13px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background .25s;
}
.market-link:hover { background: var(--blue); }

/* 실적 총계 */
.record-total { text-align: center; font-size: 20px; font-weight: 600; color: var(--muted); margin-bottom: 24px; }
.record-total strong { font-size: 32px; font-weight: 800; color: var(--blue); margin: 0 4px; }

/* 오시는 길 (라이트) */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.loc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
}
.loc-card h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.loc-info { display: grid; gap: 9px; margin-bottom: 18px; }
.loc-info li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink); }
.loc-info li span { flex: none; width: 44px; font-weight: 800; color: var(--blue); }
.loc-info a:hover { color: var(--blue); }
.loc-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 8; background: var(--bg-alt); }
.loc-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc-link { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--blue); }
.loc-link:hover { text-decoration: underline; }

/* =========================================================
   수정안 반영 (2026. 08) — 큼직한 타이포그래피 (2차 확대)
   ========================================================= */
.section-head { margin-bottom: 64px; }
.section-head h2 { font-size: clamp(36px, 5vw, 58px); }
.section-head p { font-size: 19px; }
.hero-content h1 { font-size: clamp(44px, 7vw, 86px); }
.hero-eyebrow { font-size: 16px; padding: 10px 26px; }
.btn { font-size: 17px; padding: 18px 34px; }
#gnb a { font-size: 17px; }
.stat strong { font-size: clamp(38px, 4.4vw, 60px); }
.stat > span { font-size: 16.5px; }
.about-lead { font-size: 22px; }
.about-desc { font-size: 18px; }
.biz-card h3 { font-size: 24px; }
.biz-card p { font-size: 16.5px; }
.biz-icon { width: 74px; height: 74px; }
.biz-icon svg { width: 40px; height: 40px; }
.why-card strong { font-size: 58px; }
.why-card h3 { font-size: 22px; }
.why-card p { font-size: 16.5px; }
.process h3 { font-size: 23px; }
.process p { font-size: 16.5px; }
.step-icon { width: 96px; height: 96px; }
.step-icon svg { width: 52px; height: 52px; }
.benefit h4 { font-size: 19.5px; }
.benefit p { font-size: 16px; }
.model-badges li { font-size: 16.5px; padding: 15px 30px; }
.roadmap h3 { font-size: 21px; }
.roadmap p { font-size: 15.5px; }
.rm-no { width: 54px; height: 54px; font-size: 18px; }
.sub-head h3 { font-size: clamp(28px, 3.6vw, 38px); }
.sub-head p { font-size: 17.5px; }
.record-total { font-size: 22px; }
.record-total strong { font-size: 38px; }
.record-summary strong { font-size: 21px; }
.record-summary span { font-size: 14.5px; }
.tab { font-size: 17px; padding: 14px 34px; }
.table-wrap table { font-size: 15.5px; }
.table-wrap thead th { padding: 16px 18px; }
.table-wrap tbody td { padding: 15px 18px; }
.g-item figcaption { font-size: 18.5px; }
.g-item .badge { font-size: 13.5px; padding: 5px 14px; }
.faq-item summary { font-size: 19px; padding: 24px 28px; }
.faq-body p { font-size: 16.5px; }
.company-info > div { font-size: 16.5px; padding: 16px 6px; }
.info-card h3, .history h3, .loc-card h3 { font-size: 24px; }
.tl-date { font-size: 16px; }
.tl-body strong { font-size: 17px; }
.timeline li { padding: 0 0 24px 0; grid-template-columns: 80px 1fr; }
.timeline li::before { left: 92px; }
.timeline li::after { left: 88px; }
.market-head strong { font-size: 32px; }
.market-stats li.main b { font-size: 34px; }
.market-stats li b { font-size: 20px; }
.market-stats li span { font-size: 16px; }
.market-link { font-size: 16.5px; padding: 15px; }
.loc-info li { font-size: 16.5px; }
.loc-info li span { width: 48px; }
.loc-link { font-size: 16px; }
.c-card h4 { font-size: 14px; }
.c-card .c-big { font-size: 23px; }
.c-card p { font-size: 15px; }
.contact-form label { font-size: 15px; }
.contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
.f-info { font-size: 14.5px; }

/* 수익 구조 다이어그램 확대 */
.revenue-flow { max-width: 1080px; }
.rf-node { padding: 32px 28px; }
.rf-node strong { font-size: 23px; }
.rf-node span { font-size: 15.5px; }
.rf-plant svg { width: 64px; height: 64px; }
.rf-links { gap: 26px; }
.rf-arrow { padding: 0 28px; gap: 10px; }
.rf-arrow em { font-size: 18px; font-weight: 800; }
.rf-arrow em small { font-size: 15px; }
.rf-arrow i { height: 3px; min-width: 220px; }
.rf-arrow i::after { top: -6px; border: 7.5px solid transparent; border-left: 12px solid var(--blue); }

/* 설치사례: 2열 대형 그리드 */
.gallery { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.g-item.wide { aspect-ratio: 8 / 3; }

/* 신규 요소 반응형 */
@media (max-width: 1024px) {
  .market, .loc-grid { grid-template-columns: 1fr; }
  .record-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partner-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .record-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-summary strong { font-size: 20px; }
  .partner-list { grid-template-columns: 1fr 1fr; }
  .partner-list li { font-size: 17px; min-height: 76px; }
  .about-lead { font-size: 18px; }
  .record-total strong { font-size: 26px; }
}
@media (max-width: 560px) {
  .logo img { height: 34px; }
  .market-head em { margin-left: 0; width: 100%; }
}

/* 좁은 화면 실적 요약 1열 + 가로 스크롤 방지 (2026.08 보완) */
@media (max-width: 430px) {
  .record-summary { grid-template-columns: 1fr; }
}
html, body { overflow-x: hidden; }
