/* ============================================================
   힘찬토탈케어 — himchantotal.co.kr
   디자인 시스템 + 공용 스타일
   ============================================================ */

/* -------- 1. CSS Variables -------- */
:root {
  /* Colors */
  --c-navy:        #0A1F3F;
  --c-navy-soft:   #142E5A;
  --c-navy-deep:   #061533;
  --c-sky:         #3B9BD9;
  --c-sky-light:   #6DB8E8;
  --c-sky-pale:    #E8F2FB;
  --c-orange:      #E85D30;
  --c-orange-dark: #C84A22;
  --c-kakao:       #FEE500;
  --c-kakao-text:  #181600;
  --c-bg:          #FFFFFF;
  --c-bg-warm:     #F5F3F0;
  --c-bg-cool:     #F4F7FB;
  --c-line:        #E5E9F0;
  --c-line-soft:   #EEF1F5;
  --c-text:        #0A1F3F;
  --c-text-mid:    #4A5568;
  --c-text-soft:   #8494A7;
  --c-success:     #1FA463;

  /* Layout */
  --container: 1200px;
  --container-narrow: 920px;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(10,31,63,.04), 0 1px 3px rgba(10,31,63,.06);
  --shadow:    0 4px 16px rgba(10,31,63,.06), 0 2px 6px rgba(10,31,63,.04);
  --shadow-lg: 0 24px 48px -12px rgba(10,31,63,.18), 0 8px 16px -4px rgba(10,31,63,.08);
  --shadow-navy: 0 24px 48px -16px rgba(10,31,63,.4);

  /* Type */
  --ff: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms;
  --t:      280ms;
  --t-slow: 520ms;
}

/* -------- 2. Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  font-feature-settings: "ss01", "ss02";
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-x: hidden;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: var(--c-text); }
.ti { display: inline-flex; line-height: 1; vertical-align: -0.125em; }
i[class^="ti-"], i[class*=" ti-"] { font-style: normal; }

/* -------- 3. Layout helpers -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--container-narrow); }

.section {
  padding: 96px 0;
  position: relative;
}
.section--tight { padding: 72px 0; }
.section--warm  { background: var(--c-bg-warm); }
.section--cool  { background: var(--c-bg-cool); }
.section--navy  {
  background: var(--c-navy);
  color: #fff;
  background-image: radial-gradient(ellipse at 20% 0%, rgba(59,155,217,.18) 0%, transparent 50%),
                    radial-gradient(ellipse at 100% 100%, rgba(232,93,48,.08) 0%, transparent 50%);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.section-head { margin-bottom: 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-sky);
  margin-bottom: 14px;
}
.section--navy .section-head .eyebrow { color: var(--c-sky-light); }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-head p {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--c-text-mid);
  max-width: 640px;
  margin: 0 auto;
}
.section--navy .section-head p { color: rgba(255,255,255,.78); }

/* -------- 4. Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform var(--t-fast) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease), color var(--t) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 60px; padding: 0 32px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--c-orange); color: #fff; box-shadow: 0 6px 16px -4px rgba(232,93,48,.45); }
.btn--primary:hover { background: var(--c-orange-dark); box-shadow: 0 10px 24px -6px rgba(232,93,48,.55); }
.btn--navy { background: var(--c-navy); color: #fff; }
.btn--navy:hover { background: var(--c-navy-soft); box-shadow: var(--shadow-navy); }
.btn--sky { background: var(--c-sky); color: #fff; }
.btn--sky:hover { background: var(--c-sky-light); }
.btn--kakao { background: var(--c-kakao); color: var(--c-kakao-text); }
.btn--kakao:hover { background: #FFE83A; }
.btn--ghost { background: transparent; color: var(--c-text); border: 1px solid var(--c-line); }
.btn--ghost:hover { background: var(--c-bg-cool); }
.btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.btn--phone { background: #fff; color: var(--c-navy); }
.btn--phone:hover { background: var(--c-bg-warm); }

/* -------- 5. Top info bar -------- */
.topbar {
  background: var(--c-navy-deep);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 20px;
}
.topbar__info { display: flex; align-items: center; gap: 22px; }
.topbar__info-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__info-item .ti { font-size: 15px; opacity: 0.75; }
.topbar__info-item strong { color: #fff; font-weight: 600; }
.topbar__cta { display: flex; align-items: center; gap: 10px; }
.topbar__cta a {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  transition: background var(--t-fast) var(--ease);
}
.topbar__cta a .ti { font-size: 14px; }
.topbar__cta .topbar__kakao { background: var(--c-kakao); color: var(--c-kakao-text); }
.topbar__cta .topbar__kakao:hover { background: #FFE83A; }
.topbar__cta .topbar__estimate { background: var(--c-orange); color: #fff; }
.topbar__cta .topbar__estimate:hover { background: var(--c-orange-dark); }

/* -------- 6. Header / Nav -------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line-soft);
  transition: box-shadow var(--t) var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-navy);
}
.logo__mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-sky) 120%);
  display: inline-grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0;
}
.logo__text-sub {
  display: block;
  font-size: 11px;
  color: var(--c-text-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 1px;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 16px;
  font-size: 15px; font-weight: 500;
  color: var(--c-text);
  border-radius: 8px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--c-sky); background: var(--c-bg-cool); }
.nav__link.is-active { color: var(--c-sky); }
.header__cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--c-bg-cool); }
.nav-toggle .ti { font-size: 26px; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 200;
  background: #fff;
  transform: translateX(100%);
  transition: transform 320ms var(--ease-out);
  display: flex; flex-direction: column;
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--c-line-soft);
}
.mobile-nav__close {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-grid; place-items: center;
}
.mobile-nav__list { padding: 16px 24px; flex: 1; overflow-y: auto; }
.mobile-nav__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  font-size: 17px; font-weight: 500;
  border-bottom: 1px solid var(--c-line-soft);
}
.mobile-nav__list a .ti { font-size: 18px; opacity: 0.5; }
.mobile-nav__cta { padding: 24px; display: grid; gap: 10px; border-top: 1px solid var(--c-line-soft); }

/* -------- 7. Hero -------- */
.hero {
  position: relative;
  background: var(--c-navy);
  color: #fff;
  padding: 96px 0 0;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(59,155,217,.28) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(109,184,232,.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--c-navy-deep) 0%, var(--c-navy) 50%, #0c2549 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
  opacity: 0.6;
}
.hero__inner { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600;
  color: var(--c-sky-light);
  margin-bottom: 28px;
}
.hero__badge .ti { font-size: 16px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 800;
  max-width: 920px;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--c-sky-light); }
.hero__sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,.78);
  max-width: 720px;
  margin-bottom: 40px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 72px; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 40px 0 56px;
}
.hero__stat { padding: 0 24px; border-right: 1px solid rgba(255,255,255,.08); }
.hero__stat:last-child { border-right: 0; }
.hero__stat-num {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.hero__stat-num .unit { font-size: 0.55em; color: var(--c-sky-light); margin-left: 2px; }
.hero__stat-label {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.7);
  letter-spacing: -0.01em;
}

/* -------- 8. Service feature cards (2-up) -------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--c-sky-pale);
  color: var(--c-sky);
  display: inline-grid; place-items: center;
  margin-bottom: 24px;
}
.feature-card__icon .ti { font-size: 32px; }
.feature-card h3 {
  font-size: 22px; margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.feature-card p {
  color: var(--c-text-mid);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.feature-card__list { display: grid; gap: 8px; margin-bottom: 28px; }
.feature-card__list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--c-text-mid);
}
.feature-card__list li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-sky);
  flex-shrink: 0;
}
.feature-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c-sky);
  font-weight: 600; font-size: 15px;
  transition: gap var(--t-fast) var(--ease);
}
.feature-card__link:hover { gap: 10px; color: var(--c-navy); }
.feature-card__link .ti { font-size: 18px; }

/* -------- 9. Client logo slider -------- */
.logo-slider {
  overflow: hidden;
  position: relative;
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-slider__track {
  display: flex;
  width: max-content;
  animation: slide-left 56s linear infinite;
  gap: 16px;
}
.logo-slider:hover .logo-slider__track { animation-play-state: paused; }
.logo-chip {
  height: 76px;
  min-width: 180px;
  padding: 0 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--c-navy);
  flex-shrink: 0;
  transition: all var(--t) var(--ease);
}
.logo-chip:hover { border-color: var(--c-sky); color: var(--c-sky); transform: translateY(-2px); box-shadow: var(--shadow); }
.logo-chip--small { font-size: 14px; }

@keyframes slide-left {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 8px)); }
}

/* -------- 10. Stat cards (4-up) -------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--t) var(--ease);
}
.stat-card:hover {
  border-color: var(--c-sky);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.stat-card__num {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-navy);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-card__num .unit { color: var(--c-sky); font-size: 0.65em; margin-left: 2px; }
.stat-card__label {
  color: var(--c-text-mid);
  font-size: 14px;
  font-weight: 500;
}

/* -------- 11. Why-us 8-grid -------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--c-line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.why-item {
  background: #fff;
  padding: 32px 28px;
  display: flex;
  gap: 18px;
  transition: background var(--t) var(--ease);
}
.why-item:hover { background: var(--c-sky-pale); }
.why-item__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--c-navy);
  color: #fff;
  display: inline-grid; place-items: center;
  flex-shrink: 0;
}
.why-item__icon .ti { font-size: 24px; }
.why-item h4 {
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.why-item p {
  font-size: 14px; line-height: 1.6;
  color: var(--c-text-mid);
}

/* -------- 12. Process 8-step -------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-step {
  position: relative;
  padding: 32px 24px;
  text-align: center;
}
.process-step::after {
  content: "";
  position: absolute;
  top: 56px;
  right: -12px;
  width: 24px; height: 1px;
  background: rgba(255,255,255,.2);
}
.process-step:nth-child(4)::after,
.process-step:last-child::after { display: none; }
.process-step__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--c-sky-light);
  font-weight: 700;
  font-size: 17px;
  display: inline-grid; place-items: center;
  margin: 0 auto 18px;
}
.process-step__title {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
}
.process-step__desc {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}

/* -------- 13. Before/After -------- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ba-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t) var(--ease);
}
.ba-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.ba-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--c-line);
}
.ba-img {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: end; justify-content: start;
  padding: 12px;
}
.ba-img--before {
  background: linear-gradient(135deg, #6B5345 0%, #8C7561 100%);
}
.ba-img--before::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 40%, rgba(0,0,0,.25) 0, transparent 50%),
                    radial-gradient(circle at 70% 60%, rgba(0,0,0,.18) 0, transparent 45%);
}
.ba-img--after {
  background: linear-gradient(135deg, #3B9BD9 0%, #6DB8E8 100%);
}
.ba-img--after::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 60% 30%, rgba(255,255,255,.25) 0, transparent 40%),
                    radial-gradient(circle at 30% 70%, rgba(255,255,255,.18) 0, transparent 45%);
}
.ba-img__tag {
  position: relative;
  display: inline-flex;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}
.ba-card__body { padding: 24px; }
.ba-card h4 { font-size: 18px; margin-bottom: 8px; }
.ba-card p { font-size: 14px; color: var(--c-text-mid); line-height: 1.6; }

/* -------- 14. Case grid + tabs -------- */
.tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.tab {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--c-text-mid);
  border: 1px solid var(--c-line);
  background: #fff;
  transition: all var(--t-fast) var(--ease);
}
.tab:hover { border-color: var(--c-sky); color: var(--c-sky); }
.tab.is-active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--t) var(--ease);
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.case-card__img {
  aspect-ratio: 16 / 10;
  position: relative;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-sky) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  overflow: hidden;
}
.case-card__img .ti { font-size: 48px; opacity: 0.45; }
.case-card__img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.12) 0%, transparent 60%);
}
.case-card__tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.95);
  color: var(--c-navy);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 4px;
}
.case-card__body { padding: 22px; }
.case-card h4 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.02em; }
.case-card p { font-size: 14px; color: var(--c-text-mid); line-height: 1.5; }

/* -------- 15. Contract cards (4-up) -------- */
.contract-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contract-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all var(--t) var(--ease);
  position: relative;
}
.contract-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-sky); }
.contract-card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--c-sky-pale);
  color: var(--c-sky);
  display: inline-grid; place-items: center;
  margin-bottom: 22px;
}
.contract-card__icon .ti { font-size: 26px; }
.contract-card h4 { font-size: 17px; margin-bottom: 10px; }
.contract-card p { font-size: 14px; color: var(--c-text-mid); line-height: 1.6; }

.callout {
  margin-top: 8px;
  padding: 28px 32px;
  background: linear-gradient(120deg, var(--c-sky-pale) 0%, #FFF 100%);
  border: 1px solid var(--c-sky-pale);
  border-left: 4px solid var(--c-sky);
  border-radius: var(--radius);
  display: flex;
  gap: 18px;
  align-items: center;
}
.callout .ti { font-size: 32px; color: var(--c-sky); flex-shrink: 0; }
.callout strong { color: var(--c-navy); display: block; margin-bottom: 4px; font-size: 15px; }
.callout span { font-size: 14px; color: var(--c-text-mid); }

/* -------- 16. Form -------- */
.form-card {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 48px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: -0.01em;
}
.field label .req { color: var(--c-orange); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  height: 52px;
  padding: 0 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  transition: all var(--t-fast) var(--ease);
}
.field textarea { height: 130px; padding: 14px 18px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-sky-light);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 4px rgba(109,184,232,.18);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.field select option { color: var(--c-text); background: #fff; }

.form-light .form-card { background: #fff; border: 1px solid var(--c-line); backdrop-filter: none; }
.form-light .field label { color: var(--c-text); }
.form-light .field input,
.form-light .field select,
.form-light .field textarea {
  background: var(--c-bg-cool);
  border-color: var(--c-line);
  color: var(--c-text);
}
.form-light .field input::placeholder, .form-light .field textarea::placeholder { color: var(--c-text-soft); }
.form-light .field input:focus,
.form-light .field select:focus,
.form-light .field textarea:focus {
  border-color: var(--c-sky);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59,155,217,.12);
}
.form-light .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
.form-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin: 8px 0 18px;
}
.form-light .form-consent { color: var(--c-text-mid); }
.form-consent input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--c-sky);
  flex-shrink: 0;
  margin-top: 2px;
}
.form-consent a { text-decoration: underline; }
.form-actions { margin-top: 24px; }

/* -------- 17. FAQ accordion -------- */
.faq {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--c-line);
}
.faq-item:first-child { border-top: 1px solid var(--c-line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
  font-size: 17px; font-weight: 600;
  text-align: left;
  letter-spacing: -0.02em;
  color: var(--c-navy);
  gap: 16px;
}
.faq-q .ti { font-size: 24px; color: var(--c-text-soft); transition: transform var(--t) var(--ease); flex-shrink: 0; }
.faq-item.is-open .faq-q .ti { transform: rotate(45deg); color: var(--c-sky); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms var(--ease-out);
}
.faq-a__inner {
  padding: 0 0 24px;
  font-size: 15px; line-height: 1.7;
  color: var(--c-text-mid);
}

/* -------- 18. Footer -------- */
.footer {
  background: var(--c-navy-deep);
  color: rgba(255,255,255,.7);
  padding: 72px 0 24px;
  font-size: 14px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.footer ul { display: grid; gap: 10px; }
.footer ul a { transition: color var(--t-fast) var(--ease); font-size: 14px; }
.footer ul a:hover { color: var(--c-sky-light); }
.footer__brand .logo { color: #fff; margin-bottom: 16px; }
.footer__brand .logo__text-sub { color: rgba(255,255,255,.5); }
.footer__brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer__contact-item { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.footer__contact-item .ti { font-size: 16px; opacity: 0.5; flex-shrink: 0; }
.footer__contact-item strong { color: #fff; font-weight: 600; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a:hover { color: #fff; }

/* -------- 19. Mobile fixed bottom bar -------- */
.mfix {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 8px;
  gap: 6px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -8px 24px rgba(10,31,63,.06);
}
.mfix__btn {
  flex: 1;
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 6px;
  height: 50px;
  border-radius: 12px;
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
}
.mfix__btn .ti { font-size: 18px; }
.mfix__phone { background: var(--c-success); color: #fff; }
.mfix__kakao { background: var(--c-kakao); color: var(--c-kakao-text); }
.mfix__estimate { background: var(--c-orange); color: #fff; }

/* -------- 20. Page hero (sub pages) -------- */
.page-hero {
  background: var(--c-navy);
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,155,217,.25) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-sky-light);
  margin-bottom: 14px;
  display: inline-block;
}
.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  color: #fff;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(255,255,255,.78);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .ti { font-size: 14px; opacity: 0.5; }

/* -------- 21. Scroll-in animation -------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo-slider__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* -------- 22. Toast -------- */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--c-navy);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ti { font-size: 18px; color: var(--c-success); }

/* -------- 23. Responsive -------- */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .feature-grid { gap: 20px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .contract-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .process-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  body { padding-bottom: 70px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .section-head { margin-bottom: 40px; }

  .topbar__info { display: none; }
  .topbar__inner { justify-content: center; height: 40px; }

  .header__inner { height: 64px; }
  .nav, .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .logo__text-sub { display: none; }
  .logo { font-size: 17px; }
  .logo__mark { width: 34px; height: 34px; font-size: 15px; }

  .hero { padding: 60px 0 0; }
  .hero h1 { font-size: clamp(28px, 7vw, 40px); }
  .hero__sub { font-size: 15px; }
  .hero__cta { gap: 8px; }
  .hero__cta .btn { flex: 1; min-width: 0; }
  .hero__cta .btn--lg { font-size: 14px; padding: 0 14px; height: 52px; }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 0;
  }
  .hero__stat {
    border-right: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 18px 16px;
  }
  .hero__stat:nth-child(2) { border-right: 0; }
  .hero__stat:nth-child(3), .hero__stat:nth-child(4) { border-bottom: 0; }

  .feature-grid, .stat-grid, .contract-grid, .case-grid, .why-grid {
    grid-template-columns: 1fr;
  }
  .why-grid { gap: 1px; }
  .feature-card { padding: 32px 24px; }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }

  .footer__top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer { padding: 56px 0 24px; }

  .form-card { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }

  .mfix { display: flex; }

  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .tab { flex-shrink: 0; }
}

@media (max-width: 420px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}
