:root {
  --primary: #234A9B;
  --navy: #12224A;
  --navy-mid: #1B3168;
  --footer-bg: #0C1730;
  --gold: #C9A063;
  --gold-light: #E7CFA1;
  --tint-bg: #F4F7FC;
  --tint-bg-2: #EEF3FB;
  --border: #E7EBF2;
  --border-strong: #DCE4F0;
  --border-faint: #F1F4F9;
  --border-faint-2: #EEF1F6;
  --text: #1D2433;
  --text-2: #3A4457;
  --muted: #5C6780;
  --muted-light: #8A93A6;
  --disabled: #A6AEBE;

  --grad-hero: linear-gradient(105deg, #12224A 0%, #1B3168 45%, #234A9B 100%);
  --grad-sub-hero: linear-gradient(105deg, #12224A, #234A9B);
  --grad-photo-a: linear-gradient(140deg, #1B3168, #234A9B);
  --grad-photo-b: linear-gradient(150deg, #12224A, #234A9B);
  --grad-cta: linear-gradient(100deg, #12224A, #234A9B);
}

* { box-sizing: border-box; text-wrap: pretty; word-break: keep-all; }

html, body { margin: 0; padding: 0; }

body.site {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* 낮은 명시도로 둬서 .btn* 등 버튼 클래스의 색상 지정이 항상 우선하도록 한다 */
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--navy); }
body.site button, body.site input, body.site textarea, body.site select { font-family: inherit; }

.mono { font-family: "IBM Plex Mono", monospace; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 스크롤 등장 애니메이션: JS(site.js)가 대상 요소에 .reveal을 부여하고, 뷰포트 진입 시 .reveal-in을 추가한다 */
/* body.site로 명시도를 높여 카드 클래스 자체의 transition(예: .service-card)에 덮어써지지 않게 한다 */
body.site .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
body.site .reveal.reveal-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 32px);
  padding-right: clamp(18px, 4vw, 32px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .header-inner {
  min-height: 78px;
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.site-header .logo img {
  height: clamp(40px, 7vw, 63px);
  width: auto;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  margin-left: auto;
  flex: 0 0 auto;
}

.site-nav a {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 12px 14px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  letter-spacing: -0.02em;
}

.site-nav a:hover { color: var(--primary); }

.site-nav a.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;  
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}

.header-phone .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tint-bg);
  display: inline-block;position:relative;
}
.header-phone .dot img{width:20px;position:absolute;left:50%;top:50%;transform: translate(-50%,-50%);}

.header-cta {
  border: 0;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 18px;
  min-height: 46px;
  white-space: nowrap;
  border-radius: 4px;
  letter-spacing: -0.02em;
}

.header-cta:hover { background: var(--navy); }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  flex: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0 12px;
}

.menu-btn span { display: block; height: 2px; background: var(--primary); border-radius: 2px; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 8px clamp(14px, 4vw, 32px) 16px;
  gap: 2px;
}

.mobile-menu.open { display: grid; }

.mobile-menu a {
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--border-faint);
  background: transparent;
  cursor: pointer;
  padding: 16px 4px;
  min-height: 52px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
}

.mobile-menu a.active { color: var(--primary); font-weight: 700; }

.mobile-menu .mobile-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 4px 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

.mobile-menu .mobile-phone .dot {
  width: 18px; height: 18px; border-radius: 50%; background: var(--primary); display: inline-block;
}

@media (max-width: 1079px) {
  .header-phone { display: none !important; }
}

@media (max-width: 899px) {
  .site-nav { display: none !important; }
  .menu-btn { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  padding: 17px 34px;
  border-radius: 4px;
  letter-spacing: -0.01em;
}

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--gold-light); color: var(--navy); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 500;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.btn-solid-primary {
  background: var(--primary);
  color: #fff;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 28px;
}
.btn-solid-primary:hover { background: var(--navy); color: #fff; }

.btn-gold {
  background: var(--gold-light);
  color: var(--navy);
  border: 0;
  font-size: 16px;
  font-weight: 700;
  padding: 18px clamp(18px, 4vw, 32px);
}
.btn-gold:hover { background: #fff; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  overflow: hidden;
}

.hero-sub {
  position: relative;
  background: var(--grad-sub-hero);
  overflow: hidden;
}

.hero-stripe {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 16px);
}

.hero-sub .hero-stripe { opacity: 0.26; }

.hero-ring {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(231, 207, 161, 0.45);
  border-radius: 50%;
}

.hero-bg{position:absolute;width:100%;height:100%;left:0;top:0;z-index:1;}
.hero-bg img{width:100%;height:100%;object-fit:cover;}

.hero-inner {
  position: relative;z-index:2;
  padding: 118px clamp(18px, 4vw, 32px) 132px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.hero-sub-inner {
  position: relative;z-index:2;
  padding: 86px clamp(18px, 4vw, 32px) 82px;
}

.hero-sub-inner.pad-tall { padding-bottom: 122px; }

.hero-sub-inner.with-photo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.eyebrow.on-light { color: var(--gold); letter-spacing: 0.2em; }

.hero-text { animation: riseIn 0.7s ease both; }

.hero-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.24;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.035em;
}

.hero-sub h1 {
  margin: 0;
  font-size: clamp(28px, 5.2vw, 46px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.035em;
}

.hero-desc {
  margin: 26px 0 0;
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
}

.hero-sub p {
  margin: 18px 0 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

.hero-photo {
  height: clamp(220px, 34vw, 400px);


  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.9s ease 0.2s both;

}
.hero-photo img{
  width:100%;height:100%;object-fit:cover;border-radius: 8px;border: 1px solid rgba(255, 255, 255, 0.22);  
}
.hero-photo span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
}

/* ---------- Sections & headings ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 88px clamp(18px,4vw,32px) 0; }
.section-tight-bottom { padding: 0 clamp(18px,4vw,32px) 88px; }

h2.section-title {
  margin: 0;
  font-size: clamp(25px, 3.8vw, 38px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.035em;
}

h2.section-title.small { font-size: clamp(23px, 3.4vw, 34px); }
h2.section-title.centered { text-align: center; }

.section-lede { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.8; white-space: nowrap;}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 16px; }
.g-180 { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.g-165 { grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); }
.g-240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.g-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.g-340 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.g-360 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.g-400 { grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.g-420 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.g-2col { grid-template-columns: repeat(2, 1fr); }
.g-4col { grid-template-columns: repeat(4, 1fr); }



.relative{position:relative;}

@media (max-width: 900px) {
  .g-4col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
    
}
.gap-32 { gap: 32px; }
.gap-56 { gap: 56px; }
.align-center { align-items: center; }

/* ---------- Stat cards ---------- */
.section-about .title-area{display:flex;align-items: flex-end;gap:50px;}
.stat-card {
  background: var(--tint-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 34px 18px;
  text-align: center;
}

.stat-card .dot {
  width: 77px; height: 77px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 1px solid var(--border-strong);position:relative;
}
.stat-card .dot svg{width:40px;height:40px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}

.stat-card .value { font-size: clamp(21px, 2.8vw, 30px); font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.stat-card .label { font-size: 14px; color: var(--muted); margin-top: 8px; }


/* ---------- Service cards ---------- */
.service-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px 26px 30px;
  min-height: 212px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}

.service-card.compact { padding: 32px 24px; min-height: 198px; }
.service-card:hover { transform: translateY(-4px); }

.service-card .chip {
  width: 80px; height: 80px; border-radius: 12px; background: var(--tint-bg-2); margin-bottom: auto;
}
.service-card .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.service-card .chip img {
  width: 62px;
  height: 62px;
  overflow: visible;
}


.service-card.dark { background: var(--primary); border-color: var(--primary); }
.service-card.dark .chip { background: rgba(255, 255, 255, 0.22); }
.service-card.dark h3 { color: #fff; }
.service-card.dark p { color: rgba(255, 255, 255, 0.78); }

.service-card h3 { margin: 24px 0 10px; font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: -0.03em; }
.service-card.compact h3 { margin: 22px 0 10px; font-size: 18px; }
.service-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- Cards / boxes ---------- */
.box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.box-tint {
  background: var(--tint-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.photo-placeholder {
  position: relative;
  background: var(--grad-photo-a);
  border-radius: 8px;
}

.photo-placeholder .stripe {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0 3px, transparent 3px 12px);
}

.photo-placeholder .caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- OnCare band ---------- */
.oncare-band { background: var(--tint-bg); padding: 88px 0; }

.oncare-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
}

.oncare-item .dot { width: 80px; height: 80px; border-radius: 50%; background: var(--tint-bg-2); margin: 0 auto 12px; position:relative;}
.oncare-item .dot img{width:80px;height:auto;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.oncare-item .label { font-size: 14px; font-weight: 600; color: var(--text); }

.clean-zone-visual { display: flex; justify-content: center; }

/* ---------- Home: portfolio preview ---------- */
.site-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.site-card .thumb { height: 260px; position: relative; background: var(--grad-photo-a); }
.site-card .thumb img{width:100%;height:100%;object-fit:cover;}
.site-card .thumb .caption { position: absolute; left: 14px; bottom: 12px; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: rgba(255, 255, 255, 0.8); }
.site-card .body { padding: 18px 20px 20px; }
.site-card .name { font-size: 16px; font-weight: 700; color: var(--navy); }
.site-card .tags { font-size: 13px; color: var(--muted); margin-top: 6px; }

.cert-panel { background: var(--tint-bg); border: 1px solid var(--border); border-radius: 10px; padding: 28px; height:fit-content;position:sticky;top:90px;}
.cert-panel .title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.cert-panel img { width: 100%; height: auto; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; }

.cert-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cert-row .certified { color: var(--gold); font-size: 12px; font-family: "IBM Plex Mono", monospace; }

/* ---------- About page ---------- */
.entity-card { border: 1px solid var(--border); border-radius: 12px; padding: 38px 34px; background: #fff; }
.entity-card h2 { margin: 12px 0 16px; font-size: clamp(21px, 2.8vw, 30px); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.entity-card p { margin: 0 0 24px; font-size: 15px; line-height: 1.85; color: var(--muted); }
.entity-rows { display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 22px; }
.entity-rows .row { display: flex; gap: 16px; font-size: 14px; }
.entity-rows .row .k { width: 96px; flex: none; color: var(--muted-light); }
.entity-rows .row .v { color: var(--text); font-weight: 500; }

.ceo-card {
  background: var(--tint-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 56px clamp(22px, 3.6vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}

.ceo-card h2 { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--navy); line-height: 1.4; letter-spacing: -0.035em; }

.ceo-quote { display: flex; flex-direction: column; }
.ceo-quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
  color: var(--gold);
  margin: 10px 0 2px;
}

.ceo-card p { margin: 0 0 18px; font-size: 16px; line-height: 1.95; color: var(--text-2); }
.ceo-sign { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border-strong); font-size: 15px; color: var(--navy); font-weight: 700; }
.ceo-sign span { font-weight: 400; color: var(--muted); }

.history-row {
  display: grid;
  grid-template-columns: minmax(88px, 140px) 1fr;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.history-row .year { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.history-row .text { font-size: 16px; color: var(--text-2); line-height: 1.8; }

.map-placeholder {
  height: clamp(220px, 30vw, 340px);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, var(--tint-bg) 0 8px, var(--tint-bg-2) 8px 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.map-placeholder img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease;}
.map-placeholder:hover img{transform:scale(1.04);}
.map-placeholder span { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted-light); }

.info-card { border: 1px solid var(--border); border-radius: 10px; padding: 34px; display: grid; gap: 20px; align-content: start; }
.info-card .k { font-size: 13px; color: var(--muted-light); margin-bottom: 6px; }
.info-card .v { font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.6; }
.info-card .v.big { font-size: 22px; font-weight: 800; color: var(--primary); }
.info-card .v.plain { font-weight: 400; color: var(--text); }

/* ---------- 방역 장비 카드 ---------- */
.equipment-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.equipment-card .photo { height: 300px; background: white;padding:15px; }
.equipment-card .photo img {height:100%; object-fit: cover; display: block; border-radius:5px;border:solid 1px #CCC;object-fit:contain;display:block;margin:0 auto;}
.equipment-card .body { padding: 22px 24px; }
.equipment-card .t { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.equipment-card .d { font-size: 14px; line-height: 1.75; color: var(--muted); }

/* ---------- Services page detail ---------- */
.detail-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  background: #fff;
}
.detail-card .photo { min-height: clamp(200px, 26vw, 280px); position: relative; background: var(--grad-photo-a); }
.detail-card .photo img{width:100%;height:100%;object-fit:cover;}
.detail-card .content { padding: 42px clamp(22px, 3.6vw, 44px); }
.detail-card h3 { margin: 0 0 14px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.detail-card p { margin: 0 0 24px; font-size: 15px; line-height: 1.85; color: var(--muted); }

.tag-chip {
  background: var(--tint-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  color: var(--text-2);
  display: inline-block;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.process-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 30px 22px; text-align: center; }
.process-card .no { font-family: "IBM Plex Mono", monospace; font-size: 22px; font-weight: 700; color: var(--gold); }
.process-card .title { font-size: 17px; font-weight: 700; color: var(--navy); margin: 12px 0 8px; }
.process-card .desc { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---------- S+ONCARE 브랜드 페이지 ---------- */
.oncare-highlight {
  margin: 40px auto 0;
  max-width: 640px;
  text-align: center;
  background: var(--tint-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 24px 28px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--navy);
}
.oncare-highlight strong { color: var(--primary); }

.process-step {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px clamp(22px, 3.6vw, 40px);
  background: #fff;
}
.process-step-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.process-step-head .no { font-family: "IBM Plex Mono", monospace; font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--gold); flex: none; }
.process-step-head h3 { margin: 0; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.process-step p { margin: 0 0 18px; font-size: 15px; line-height: 1.85; color: var(--muted); }

.tag-chip.mono-chip {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---------- Portfolio page ---------- */
.stats-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px clamp(22px, 3.6vw, 44px) rgba(18, 34, 74, 0.10);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}
.stats-bar .cell { padding: 38px 20px; text-align: center; border-left: 1px solid var(--border); margin-left: -1px; }
.stats-bar .cell .value { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.stats-bar .cell .label { font-size: 14px; color: var(--muted); margin-top: 8px; }

.portfolio-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: clamp(230px, 28vw, 300px);
  background: var(--grad-photo-b);
}
.portfolio-card .stripe { position: absolute; inset: 0; opacity: 0.3; background: repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0 3px, transparent 3px 12px); }
.portfolio-card .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portfolio-card .overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; background: linear-gradient(to top, rgba(9, 17, 38, 0.86), transparent); }
.portfolio-card .name { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.portfolio-card .chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.portfolio-card .chips span { border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 6px 14px; font-size: 12px; color: rgba(255, 255, 255, 0.9); }

.featured-box {
  background: var(--tint-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 52px clamp(22px, 3.6vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}
.featured-box h3 { margin: 0 0 8px; font-size: clamp(21px, 2.8vw, 30px); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.featured-box .subline { font-size: 15px; color: var(--primary); font-weight: 600; margin-bottom: 18px; }
.featured-box p { margin: 0 0 28px; font-size: 15px; line-height: 1.9; color: var(--muted); }
.featured-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px 16px; }
.featured-item .t { font-size: 15px; font-weight: 700; color: var(--navy); }
.featured-item .d { font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 8px; }
.featured-photo { min-height: clamp(220px, 30vw, 340px); border-radius: 10px; position: relative; background:white; }
.featured-photo img{width:100%;height:100%;object-fit:contain;display:block;border-radius:7px;border:solid 1px var(--border);}

.cert-grid { grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); }

.cert-scan { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: #fff; text-align: center; display: flex; flex-direction: column; }
.cert-scan .frame {
  aspect-ratio: 1239 / 1753; /* 인증서 스캔본(A4) 실제 비율에 맞춤 */
  width: 100%;
  border: 1px solid var(--border-faint-2);
  border-radius: 6px;
  background: #F7F9FD;
  overflow: hidden;
  display: block;
  padding: 0;
  cursor: zoom-in;
}
.cert-scan .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cert-scan .frame span { font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--disabled); }
.cert-scan .label {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.cert-scan .label span { display: block; }

.cert-detail {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 40px;
  align-items: center;
  background: #fff;
}
.cert-detail img { width: 100%; height: auto; border: 1px solid var(--border-faint-2); border-radius: 8px; }
.cert-detail h3 { margin: 0 0 12px; font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.cert-detail p { margin: 0 0 22px; font-size: 15px; line-height: 1.9; color: var(--muted); }
.cert-value-chip { background: var(--tint-bg); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--primary); }

/* ---------- Legal (법정의무소독) table ---------- */
.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.legal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
.legal-table th {
  background: var(--tint-bg);
  color: var(--navy);
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td.no { color: var(--muted-light); font-family: "IBM Plex Mono", monospace; font-size: 12px; white-space: nowrap; }
.legal-table td.facility { line-height: 1.6; min-width: 260px; }
.legal-table td.freq { white-space: nowrap; font-weight: 600; color: var(--primary); font-size: 13px; }

/* ---------- 계약 이력(나라장터) ---------- */
.contract-history-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 480px;
  overflow-y: auto;
  background: #fff;
}
.contract-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-faint);
}
.contract-row:last-child { border-bottom: 0; }
.contract-row .date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted-light);
  white-space: nowrap;
}
.contract-row .title { font-size: 14px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 520px) {
  .contract-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
}

.client-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted-light);
  background: #fff;
  font-family: "IBM Plex Mono", monospace;
}

/* ---------- Contact page ---------- */
.contact-card { border: 1px solid var(--border); border-radius: 12px; padding: 36px 30px; text-align: center; background: #fff; }
.contact-card .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--tint-bg); margin: 0 auto 20px; position:relative;}
.contact-card .icon img{width:50px;height:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}
.contact-card .label { font-size: 15px; color: var(--muted); }
.contact-card .value { font-size: 22px; font-weight: 800; color: var(--navy); margin: 10px 0; letter-spacing: -0.02em; }
.contact-card .note { font-size: 13px; color: var(--muted-light); }

.form-card { border: 1px solid var(--border); border-radius: 12px; padding: 44px clamp(22px, 3.6vw, 44px) 40px; background: #fff; }
.form-card h2 { margin: 0 0 30px; font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.form-fields { display: grid; gap: 22px; }
.form-fields label.field-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }

.form-fields input[type="text"],
.form-fields input[type="tel"],
.form-fields input[type="email"],
.form-fields textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}
.form-fields input:focus, .form-fields textarea:focus { border-color: var(--primary); outline: none; }
.form-fields textarea { resize: vertical; }

.chip-toggle {
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 6px;
}
.chip-toggle.on { border-color: var(--primary); background: var(--tint-bg-2); color: var(--primary); }

.agree-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.agree-row label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.agree-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.agree-row .policy-link {
  font-size: 13px;
  color: var(--muted-light);
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
}
.agree-row .policy-link:hover { color: var(--primary); }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 38, 0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
  flex: none;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.modal-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--muted-light);
  padding: 4px;
}
.modal-close:hover { color: var(--navy); }

.modal-body {
  padding: 24px 26px 28px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
  white-space: pre-line;
}

.image-modal-box { max-width: 520px; }
.image-modal-body { padding: 0; overflow: auto; background: #F7F9FD; white-space: normal; }
.image-modal-body img { display: block; width: 100%; height: auto; }

.submit-btn {
  width: 100%;
  cursor: pointer;
  border: 0;
  background: var(--disabled);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 19px;
  border-radius: 6px;
  letter-spacing: -0.02em;
}
.submit-btn.ready { background: var(--primary); }
.submit-btn:disabled { cursor: not-allowed; }

.sent-box {
  background: var(--tint-bg);
  border: 1px solid #C8D8F2;
  border-radius: 6px;
  padding: 16px;
  font-size: 14px;
  color: var(--primary);
  text-align: center;
  display: none;
}
.sent-box.show { display: block; }

.error-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 6px;
  padding: 16px;
  font-size: 14px;
  color: #DC2626;
  text-align: center;
  display: none;
}
.error-box.show { display: block; }

.steps-card { background: var(--tint-bg); border: 1px solid var(--border); border-radius: 12px; padding: 40px 34px;height:fit-content;position:sticky;top:90px;}
.steps-card h3 { margin: 0 0 30px; font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.step-row { display: flex; gap: 18px; }
.step-row .num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Mono", monospace; font-size: 14px; font-weight: 700;
}
.step-row .title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-row .desc { font-size: 14px; line-height: 1.75; color: var(--muted); }
.phone-consult { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border-strong); }
.phone-consult .k { font-size: 13px; color: var(--muted-light); margin-bottom: 8px; }
.phone-consult .v { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.phone-consult .hours { font-size: 13px; color: var(--muted); margin-top: 8px; }

.popular-card { cursor: pointer; border: 1px solid var(--border); border-radius: 10px; padding: 32px 26px; background: #fff; }
.popular-card:hover { border-color: var(--primary); }
.popular-card .chip { width: 54px; height: 54px; border-radius: 12px; background: var(--tint-bg-2); margin-bottom: 22px; position:relative;}
.popular-card .chip img{width:47px;height:auto;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.popular-card .name { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -0.03em; }
.popular-card .desc { font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: 10px; }
.popular-card .more { font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 20px; }

/* ---------- CTA band + Footer ---------- */
.cta-band { position: relative; background: var(--grad-cta); overflow: hidden; }
.cta-ring { position: absolute; right: -60px; bottom: -140px; width: 420px; height: 420px; border: 1px solid rgba(231, 207, 161, 0.4); border-radius: 50%; }
.cta-inner {
  position: relative;
  padding: 64px clamp(18px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-inner h2 { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: #fff; letter-spacing: -0.035em; }
.cta-inner p { margin: 12px 0 0; font-size: 16px; color: rgba(255, 255, 255, 0.72); }
.cta-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-right .phone { font-size: clamp(21px, 2.8vw, 30px); font-weight: 800; color: var(--gold-light); letter-spacing: -0.02em; }

.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, 0.62); }
.site-footer .footer-inner {
  padding: 52px clamp(18px, 4vw, 32px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 40px;
}
.site-footer img { width: 300px; height: auto; border-radius: 4px; }
.site-footer .company { font-size: 13px; line-height: 2; }
.site-footer .company .name { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 10px; }

.company-entities {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.company-entity { line-height: 1.8; }
.company-entity .name { margin-bottom: 6px; }

.company-shared { line-height: 1.8; }
.site-footer .links { display: flex; gap: 20px; font-size: 13px; align-items: flex-start; flex-wrap: wrap; }
.site-footer .links span { cursor: default; }
.site-footer .links a { color: rgba(255, 255, 255, 0.62); }
.site-footer .links a:hover { color: #fff; }

/* ---------- Portfolio stats overlap ---------- */
.stats-overlap { margin-top: -64px; position: relative; z-index: 2; }














/* =========================================================
   MOBILE / TABLET RESPONSIVE
   기존 CSS 가장 아래에 추가
   ========================================================= */


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */
@media (max-width: 899px) {

  /* ---------- Common ---------- */

  .container {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-tight {
    padding-top: 68px;
  }

  .section-tight-bottom {
    padding-bottom: 68px;
  }

  .gap-56 {
    gap: 36px;
  }

  .gap-32 {
    gap: 24px;
  }

  /* auto-fit(g-180)만 쓰면 폭에 따라 4개 카드가 3+1로 어중간하게 쪼개질 수 있어,
     이 구간부터는 항상 깔끔한 2열로 고정한다. */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  /* ---------- Header ---------- */

  .site-header .header-inner {
    min-height: 68px;justify-content: space-between;
  }

  .site-header .logo img {
    height: 44px;
  }

  .header-cta {
    min-height: 42px;
    padding: 11px 16px;
    font-size: 13px;
  }


  /* ---------- Hero ---------- */

  .hero-inner {
    padding-top: 82px;
    padding-bottom: 88px;
    gap: 36px;
  }

  .hero-title {
    font-size: clamp(36px, 7vw, 48px);
  }

  .hero-desc {
    margin-top: 20px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-photo {
    height: 320px;
  }

  .hero-sub-inner {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .hero-sub-inner.pad-tall {
    padding-bottom: 88px;
  }


  /* ---------- Headings ---------- */

  .section-head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
  }

  /*
    현재 nowrap 때문에 모바일에서 글자가
    화면 밖으로 나갈 수 있음
  */
  .section-lede {
    white-space: normal;
    max-width: 100%;
  }


  /* ---------- About ---------- */

  .section-about .title-area {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }


  /* ---------- Stats ---------- */

  .stat-card {
    padding: 28px 14px;
  }

  .stat-card .dot {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
  }

  .stat-card .dot svg {
    width: 34px;
    height: 34px;
  }


  /* ---------- Service Cards ---------- */

  .service-card {
    padding: 28px 22px 26px;
    min-height: 190px;
  }

  .service-card .chip {
    width: 68px;
    height: 68px;
  }

  .service-card .chip img {
    width: 52px;
    height: 52px;
    object-fit: contain;
  }


  /* ---------- OnCare ---------- */

  .oncare-band {
    padding: 68px 0;
  }

  .oncare-item {
    padding: 18px 10px;
  }

  .oncare-item .dot {
    width: 68px;
    height: 68px;
  }

  .oncare-item .dot img {
    width: 68px;
  }
  .clean-zone-visual {
    display: none;
  }



  /* ---------- Portfolio ---------- */

  .site-card .thumb {
    height: 220px;
  }

  /*
    모바일/태블릿에서는 sticky가
    오히려 레이아웃을 방해하는 경우가 많음
  */
  .cert-panel,
  .steps-card {
    position: static;
    top: auto;
  }


  /* ---------- Detail ---------- */

  .detail-card .content {
    padding: 32px 28px;
  }

  .detail-card .photo {
    min-height: 260px;
  }


  /* ---------- Featured ---------- */

  .featured-box {
    padding: 38px 30px;
    gap: 32px;
  }


  /* ---------- Contact ---------- */

  .contact-card {
    padding: 30px 22px;
  }

  .form-card {
    padding: 34px 28px;
  }


  /* ---------- CTA ---------- */

  .cta-inner {
    padding-top: 52px;
    padding-bottom: 52px;
    align-items: flex-start;
  }

  .cta-right {
    width: 100%;
  }


  /* ---------- Footer ---------- */

  .site-footer .footer-inner {
    padding-top: 42px;
    padding-bottom: 42px;
    gap: 30px;
  }
  .site-footer img{
    width:125px;
  }


  /* ---------- Portfolio overlap ---------- */

  .stats-overlap {
    margin-top: -42px;
  }

}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  /* ---------- Base ---------- */

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-tight {
    padding-top: 56px;
  }

  .section-tight-bottom {
    padding-bottom: 56px;
  }

  .gap-56 {
    gap: 28px;
  }

  .gap-32 {
    gap: 18px;
  }


  /* ---------- Header ---------- */

  .site-header .header-inner {
    min-height: 62px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .site-header .logo img {
    height: 38px;
  }

  /*
    작은 모바일에서는
    견적문의 + 햄버거 버튼을 모두 넣으면
    헤더가 너무 답답해짐
  */
  .header-cta {
    display: none;
  }

  .menu-btn {
    width: 42px;
    height: 42px;
  }


  /* ---------- Hero ---------- */

  .hero-inner {
    display: block;
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .hero-text {
    width: 100%;
  }

  .hero-title {
    font-size: 34px;
    line-height: 1.27;
  }

  .hero-desc {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.75;
  }

  .eyebrow {
    font-size: 10px;
    margin-bottom: 14px;
  }

  .hero-actions {
    margin-top: 26px;
    gap: 8px;
  }

  .hero-actions .btn {
    padding: 14px 20px;
    font-size: 14px;
  }

  /*
    Hero 내부에 별도 사진이 있는 구조라면
    텍스트 아래로 배치
  */
  .hero-photo {
    margin-top: 34px;
    height: auto;
    aspect-ratio: 587 / 384;
  }

  .hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-bg img {
    object-position: center center;
  }

  .hero-sub-inner {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-sub-inner.pad-tall {
    padding-bottom: 68px;
  }

  .hero-sub h1 {
    font-size: 30px;
    line-height: 1.3;
  }

  .hero-sub p {
    font-size: 15px;
  }


  /* ---------- Titles ---------- */

  h2.section-title {
    font-size: 28px;
    line-height: 1.35;
  }

  h2.section-title.small {
    font-size: 25px;
  }

  .section-head-row {
    margin-bottom: 26px;
  }

  .section-lede {
    font-size: 14px;
    line-height: 1.7;
  }


  /* =====================================================
     ABOUT STATS
     모바일에서는 4개를 한 줄씩 쌓는 것보다
     2 x 2가 훨씬 보기 좋음
     ===================================================== */

  .section-about .g-180 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    padding: 24px 10px;
  }

  .stat-card .dot {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

  .stat-card .dot svg {
    width: 30px;
    height: 30px;
  }

  .stat-card .value {
    font-size: 23px;
  }

  .stat-card .label {
    font-size: 12px;
    margin-top: 5px;
  }


  /* =====================================================
     SERVICE
     모바일 2열
     ===================================================== */

  .service-card {
    min-height: 0;
    padding: 22px 18px;
  }

  .service-card .chip {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
  }

  .service-card .chip img {
    width: 46px;
    height: 46px;
  }

  .service-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
  }

  .service-card p {
    font-size: 13px;
    line-height: 1.65;
  }


  /*
    일반적인 g-180은 2열 유지.
    180px × 2가 안 들어갈 정도로 좁더라도
    minmax(0,1fr)로 강제 2열 처리
  */
  .g-180 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }


  /* ---------- OnCare ---------- */

  .oncare-band {
    padding: 56px 0;
  }

  .oncare-item {
    padding: 16px 8px;
  }

  .oncare-item .dot {
    width: 56px;
    height: 56px;
  }

  .oncare-item .dot img {
    width: 56px;
  }

  .oncare-item .label {
    font-size: 12px;
  }



  /* =====================================================
     SITE / PORTFOLIO CARD
     이미지 비율 유지
     ===================================================== */

  .g-360,
  .g-400,
  .g-420,
  .g-340,
  .g-320,
  .g-240 {
    grid-template-columns: 1fr;
  }

  .site-card .thumb {
    height: auto;
    aspect-ratio: 587 / 384;
  }

  .site-card .body {
    padding: 16px 17px 18px;
  }

  .site-card .name {
    font-size: 15px;
  }

  .site-card .tags {
    font-size: 12px;
  }


  /* ---------- Certification ---------- */

  .cert-panel {
    padding: 22px 18px;
  }

  .cert-row {
    padding: 12px 13px;
    font-size: 13px;
  }

  .cert-row .certified {
    font-size: 10px;
  }


  /* =====================================================
     SERVICES DETAIL
     사진 → 내용 순서로 완전 1열
     ===================================================== */

  .detail-card {
    display: block;
  }

  .detail-card .photo {
    width: 100%;
    min-height: 0;
    aspect-ratio: 587 / 384;
  }

  .detail-card .photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .detail-card .content {
    padding: 26px 20px 28px;
  }

  .detail-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .detail-card p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
  }

  .tag-list {
    gap: 6px;
  }

  .tag-chip {
    padding: 7px 11px;
    font-size: 11px;
  }


  /* ---------- About / CEO ---------- */

  .ceo-card {
    display: block;
    padding: 30px 20px;
  }

  .ceo-quote-mark {
    font-size: 48px;
    margin: 6px 0 0;
  }

  .ceo-card h2 {
    margin-bottom: 24px;
  }

  .ceo-card p {
    font-size: 14px;
    line-height: 1.85;
  }


  /* ---------- History ---------- */

  .history-row {
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 18px 0;
  }

  .history-row .year {
    font-size: 20px;
  }

  .history-row .text {
    font-size: 14px;
  }


  /* ---------- Info ---------- */

  .info-card {
    padding: 24px 20px;
  }


  /* ---------- Featured ---------- */

  .featured-box {
    display: block;
    padding: 28px 20px;
  }

  .featured-photo {
    margin-top: 26px;
    min-height: 0;
    aspect-ratio: 587 / 384;
  }


  /* ---------- Portfolio ---------- */

  .portfolio-card {
    min-height: 240px;
  }

  .portfolio-card .overlay {
    padding: 20px;
  }

  .portfolio-card .name {
    font-size: 19px;
  }

  .stats-overlap {
    margin-top: -28px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar .cell {
    padding: 24px 12px;
  }


  /* ---------- Contact ---------- */

  .contact-card {
    padding: 26px 18px;
  }

  .contact-card .icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .contact-card .icon img {
    width: 42px;
  }

  .contact-card .value {
    font-size: 19px;
  }

  .form-card {
    padding: 28px 18px;
  }

  .form-fields {
    gap: 18px;
  }

  .chip-toggle {
    padding: 10px 14px;
    font-size: 13px;
  }

  .agree-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .steps-card {
    padding: 28px 20px;
  }


  /* =====================================================
     CTA
     ===================================================== */

  .cta-inner {
    display: block;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .cta-inner h2 {
    font-size: 25px;
    line-height: 1.4;
  }

  .cta-inner p {
    font-size: 14px;
    line-height: 1.7;
  }

  .cta-right {
    display: block;
    margin-top: 26px;
  }

  .cta-right .phone {
    margin-bottom: 16px;
    font-size: 25px;
  }

  .cta-right .btn {
    width: 100%;
  }

  .cta-ring {
    width: 280px;
    height: 280px;
    right: -110px;
    bottom: -110px;
  }


  /* ---------- Footer ---------- */

  .site-footer .footer-inner {
    display: block;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .site-footer img {
    width: 300px;
    margin-bottom: 24px;
  }

  .site-footer .company {
    font-size: 12px;
    line-height: 1.8;
  }

  .site-footer .links {
    margin-top: 24px;
    gap: 14px;
  }

}



/* =========================================================
   VERY SMALL MOBILE
   320 ~ 420px 정도
   ========================================================= */

@media (max-width: 420px) {

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }


  /*
    서비스 카드는 작은 폰에서도 2열을 유지하되
    설명을 조금 작게 처리
  */
  .service-card {
    padding: 20px 14px;
  }
  
  .service-card.compact{height:fit-content;min-height:auto;}

  .service-card .chip {
    width: 52px;
    height: 52px;
    margin-bottom:10px;
  }

  .service-card .chip img {
    width: 40px;
    height: 40px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card.compact h3{margin:5px 0 5px;}

  .service-card p {
    font-size: 12px;
  }

  .stat-card {
    padding-left: 7px;
    padding-right: 7px;
  }

  .stat-card .value {
    font-size: 21px;
  }

  .tag-chip {
    font-size: 10px;
    padding: 6px 9px;
  }

}