/* =========================================================
   비전산업 — Demolition & Restoration Estimate Platform
   Light Trust Theme · Blue Accent · Large Typography
   ========================================================= */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  /* ---- color ---- */
  --bg:        #ffffff;
  --bg-2:      #f5f8ff;
  --surface:   #ffffff;
  --surface-2: #eef5ff;
  --line:      rgba(21, 57, 102, 0.10);
  --line-2:    rgba(21, 57, 102, 0.16);

  --text:      #172033;
  --text-2:    #52627a;
  --muted:     #8793a6;

  --gold:        #2563eb;
  --gold-bright: #3b82f6;
  --gold-deep:   #1d4ed8;
  --gold-line:   rgba(37, 99, 235, 0.24);
  --gold-soft:   rgba(37, 99, 235, 0.08);

  /* ---- type ---- */
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* ---- layout ---- */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 80px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6,
p, li, dt, dd,
.display, .h1, .h2, .h3,
.lead, .quote, .step-desc,
.case-body p, .detail-body p,
.footer-brand p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3,
.display, .h1, .h2, .h3,
.lead, .section-head p,
.hero-sub, .page-hero p {
  text-wrap: balance;
}

p, li, .quote,
.detail-body p,
.ceo p,
.vm-card p,
.philo-item p,
.contact-info .ci-s,
.footer-brand p {
  text-wrap: pretty;
}

::selection { background: var(--gold); color: #ffffff; }

/* ---------------------------------------------------------
   Typography helpers
   --------------------------------------------------------- */
.display {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-size: clamp(2.4rem, 6vw, 5rem);
}
.h1 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; letter-spacing: -0.03em; }
.h2 { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.18; letter-spacing: -0.025em; }
.h3 { font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-2); font-weight: 400; line-height: 1.7; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.gold { color: var(--gold); }

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); width: 100%; }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 150px); }
.alt-bg { background: var(--bg-2); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 0; }
.section-head p { margin-top: 24px; max-width: 620px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05em 1.9em;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-gold {
  background: var(--gold);
  color: #ffffff;
}
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 12px 40px -12px rgba(37,99,235,0.32); }

.btn-outline {
  border-color: var(--line-2);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost { color: var(--text-2); padding-inline: 0.5em; }
.btn-ghost:hover { color: var(--gold); }

.btn-lg { padding: 1.25em 2.4em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  display: block;
  width: 220px;
  height: 82px;
  flex-shrink: 0;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer .brand-logo {
  width: 260px;
  height: 104px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 0.6em 0.85em;
  font-size: 0.92rem;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 2px;
  transition: color 0.3s, background 0.3s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--gold); }

.nav-mobile-call { display: none; }

.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  transition: color 0.25s var(--ease);
}
.nav-phone:hover,
.nav-phone:focus-visible {
  color: var(--gold-deep);
}
.nav-phone span {
  font-family: var(--sans);
  color: var(--gold-deep);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none;
  flex-direction: column; justify-content: center; gap: 6px;
  align-items: flex-end;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--text); transition: 0.3s var(--ease); display: block; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 26px; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer a {
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em;
  padding: 0.55em 0;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
.drawer a .num { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.drawer a.active { color: var(--gold); }
.drawer-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }
.drawer-foot .phone { font-family: var(--mono); color: var(--gold); font-size: 1.1rem; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 86vh;
  min-height: 86svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(37,99,235,0.13), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 45%, #ffffff 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 2%, transparent 45%),
              linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.48) 62%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 96px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #fff 30%, #fff 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #fff 30%, #fff 70%, transparent);
  opacity: 0.5;
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(72px, 8vw, 120px); padding-top: calc(var(--nav-h) + 40px); }
.hero-inner { max-width: 940px; margin-inline: auto; text-align: center; }
.hero h1 { margin: 26px 0 30px; }
.hero h1 .br { display: block; }
.hero h1.typewriter .br {
  display: block;
  width: max-content;
  max-width: 0;
  margin-inline: auto;
  overflow: hidden;
  border-right: 0.08em solid var(--gold);
  white-space: nowrap;
  animation: typeLine 1.15s steps(11, end) forwards, caretBlink 0.7s step-end infinite;
  animation-play-state: paused;
}
.hero h1.typewriter .br:nth-child(2) {
  animation-delay: 1.18s, 1.18s;
  animation-duration: 1.3s, 0.7s;
  animation-timing-function: steps(10, end), step-end;
}
.hero h1.typewriter.in .br {
  animation-play-state: running;
}
.hero h1.typewriter.in .br:first-child {
  border-right-color: transparent;
  transition: border-color 0s 1.2s;
}
@keyframes typeLine {
  from { max-width: 0; }
  to { max-width: 100%; }
}
@keyframes caretBlink {
  50% { border-color: transparent; }
}
.hero-sub { max-width: 540px; margin: 0 auto 44px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-sites {
  width: min(100%, 900px);
  margin-top: clamp(34px, 4vw, 54px);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
}
.hero-sites-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: heroSitesFlow 42s linear infinite;
  will-change: transform;
}
.hero-sites:hover .hero-sites-track {
  animation-play-state: paused;
}
.hero-site-card {
  width: clamp(150px, 16vw, 220px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(37,99,235,0.16);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 50px -34px rgba(21, 57, 102, 0.45);
  flex: 0 0 auto;
}
.hero-site-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes heroSitesFlow {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}

.hero-scroll {
  position: absolute; bottom: 36px; right: var(--gutter);
  z-index: 2;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.24em;
  color: var(--muted); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  writing-mode: vertical-rl;
}
.hero-scroll::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); animation: scrolldot 2.4s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* hero ticker stats */
.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
}
.hero-stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat { padding: 28px 0; border-left: 1px solid var(--line); padding-left: 28px; }
.hero-stat:first-child { border-left: none; padding-left: 0; }
.hero-stat .num { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 800; color: var(--gold); letter-spacing: -0.03em; }
.hero-stat .lbl { font-size: 0.85rem; color: var(--text-2); margin-top: 4px; }

/* ---------------------------------------------------------
   Image placeholders
   --------------------------------------------------------- */
.ph {
  position: relative;
  background-color: #e8eef8;
  background-image:
    repeating-linear-gradient(135deg, rgba(37,99,235,0.045) 0 2px, transparent 2px 11px);
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--muted);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(37,99,235,0.42);
  padding: 6px 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
}
.ph.gold-tone { background-color: #eaf2ff; background-image: repeating-linear-gradient(135deg, rgba(37,99,235,0.08) 0 2px, transparent 2px 11px); }
.ph.has-image {
  background: #f5f8ff;
}
.ph.has-image::after {
  display: none;
}
.ph.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------------------------------------------------------
   CTA band (self-estimate shortcut, contact CTA)
   --------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--bg-2); }
.cta-band .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.cta-band-glow { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 120% at 85% 50%, rgba(37,99,235,0.12), transparent 60%); }
.cta-band h2 { margin-bottom: 18px; }
.cta-actions-right { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.cta-num { font-family: var(--mono); font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; color: rgba(37,99,235,0.06); line-height: 1; letter-spacing: -0.04em; position: absolute; top: -20px; right: var(--gutter); z-index: 1; }

/* ---------------------------------------------------------
   Service cards
   --------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-card {
  background: var(--bg);
  padding: clamp(28px, 3.4vw, 44px);
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: background 0.45s var(--ease);
  position: relative;
}
.svc-card:hover { background: var(--surface); }
.svc-card .idx {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--gold-deep);
  letter-spacing: -0.01em;
  font-weight: 900;
}
.svc-card h3 {
  margin: auto 0 16px;
  color: var(--text);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.18;
}
.svc-card p {
  color: #34425a;
  font-size: clamp(1.04rem, 1.25vw, 1.16rem);
  font-weight: 600;
  line-height: 1.72;
}
.svc-card .arrow { position: absolute; top: clamp(28px,3.4vw,44px); right: clamp(28px,3.4vw,44px); color: var(--muted); transition: 0.4s var(--ease); }
.svc-card:hover .arrow { color: var(--gold); transform: rotate(-45deg); }
.svc-card .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.svc-card .tag {
  font-size: 0.88rem;
  color: var(--gold-deep);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
}

/* ---------------------------------------------------------
   Stats (achievements)
   --------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 56px); }
.stat-item { border-top: 1px solid var(--gold-line); padding-top: 26px; }
.stat-item .big { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; color: var(--text); letter-spacing: -0.04em; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.stat-item .big .unit { font-size: 0.36em; color: var(--gold); font-weight: 600; }
.stat-item .lbl { color: var(--text-2); margin-top: 14px; font-size: 0.98rem; }

/* ---------------------------------------------------------
   Before / After cards
   --------------------------------------------------------- */
.case-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: 0.45s var(--ease); display: block; }
.case-card:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.ba { position: relative; aspect-ratio: 2/1; display: grid; grid-template-columns: 1fr 1fr; }
.ba .ph { height: 100%; }
.ba .ba-tag { position: absolute; top: 12px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; padding: 4px 8px; background: rgba(255,255,255,0.86); color: var(--text-2); border: 1px solid var(--line); }
.ba .ba-tag.b { left: 12px; } .ba .ba-tag.a { right: 12px; color: var(--gold); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--gold); transform: translateX(-50%); }
.case-body { padding: 22px 24px 26px; }
.case-body .meta { display: flex; gap: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 12px; }
.case-body h3 { font-size: 1.2rem; }
.case-body p { color: var(--text-2); font-size: 0.9rem; margin-top: 8px; }
.case-site-body {
  display: grid;
  gap: 16px;
}
.case-address {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.45;
  letter-spacing: -0.03em;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.case-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 0.8rem;
  font-weight: 800;
}
.case-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 4px;
}
.case-info > div {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}
.case-info .k {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.case-info strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------
   Process steps
   --------------------------------------------------------- */
.process {
  position: relative;
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) var(--gutter);
  background: transparent;
  border-block: none;
}
.process::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-line) 12%, var(--gold) 50%, var(--gold-line) 88%, transparent);
  transform: translateX(-50%);
}
.step {
  width: calc(50% - 52px);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 22px 70px -48px rgba(21, 57, 102, 0.48);
  padding: clamp(28px,3vw,40px) clamp(24px,3vw,36px);
  position: relative;
  transition: background 0.4s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.step:nth-child(odd) { justify-self: start; }
.step:nth-child(even) { justify-self: end; }
.step::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 52px;
  height: 1px;
  background: var(--gold-line);
}
.step:nth-child(odd)::after { right: -53px; }
.step:nth-child(even)::after { left: -53px; }
.step:hover {
  background: var(--surface);
  border-color: var(--gold-line);
  box-shadow: 0 28px 80px -42px rgba(37,99,235,0.32);
  transform: translateY(-4px);
}
.process .step.reveal:nth-child(odd) { transform: translate(-42px, 24px); }
.process .step.reveal:nth-child(even) { transform: translate(42px, 24px); }
.process .step.reveal.in { transform: none; }
.process .step.reveal.in:hover { transform: translateY(-4px); }
.step .no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--gold-deep);
  letter-spacing: -0.01em;
  font-weight: 900;
  padding: 7px 12px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
}
.step .no b { color: var(--gold-deep); font-weight: 900; }
.step h3 { font-size: 1.32rem; margin: 24px 0 12px; font-weight: 900; letter-spacing: -0.03em; }
.step p { color: var(--text-2); font-size: 0.95rem; font-weight: 500; line-height: 1.75; }
.step .dot {
  display: none;
}
.step:nth-child(odd) .dot { right: -61px; }
.step:nth-child(even) .dot { left: -61px; }
.step:hover .dot { background: var(--gold); }

/* ---------------------------------------------------------
   Reviews
   --------------------------------------------------------- */
.review-grid {
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
  padding: 10px 0 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 7%, #fff 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #fff 7%, #fff 93%, transparent);
}
.review-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: reviewSlide 54s linear infinite;
  will-change: transform;
}
.review-grid:hover .review-track {
  animation-play-state: paused;
}
.review {
  width: clamp(290px, 28vw, 360px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(3, 199, 90, 0.18);
  border-radius: 22px;
  box-shadow: 0 22px 70px -44px rgba(11, 88, 45, 0.32);
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}
.review-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef5ff;
}
.review-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.review:hover .review-media img {
  transform: scale(1.04);
}
.review-body {
  padding: 22px 22px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.review-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(3, 199, 90, 0.10);
  color: #03a64a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.review .stars {
  color: #f6c343;
  letter-spacing: 1px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.review .quote {
  color: #24314a;
  font-size: 0.98rem;
  line-height: 1.75;
  flex: 1;
}
.review .who {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.review .who .name { color: var(--text); font-weight: 800; }
.review .who .proj { font-size: 0.82rem; color: #03a64a; font-weight: 800; }
@keyframes reviewSlide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer { background: #f5f8ff; border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 68px) 28px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 64px); padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.footer h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 500; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { color: var(--text-2); font-size: 0.95rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-brand p { color: var(--text-2); max-width: 440px; margin-top: 16px; font-size: 0.98rem; line-height: 1.7; }
.footer-contact { text-align: right; }
.footer-contact .big-phone { display: inline-block; font-size: clamp(1.45rem, 2.2vw, 1.8rem); font-weight: 800; color: var(--gold); letter-spacing: -0.02em; white-space: nowrap; }
.footer-contact .sub { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.footer-bottom { padding-top: 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.82rem; }
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------------------------------------------------------
   Mobile fixed action bar
   --------------------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
}
.mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 4px; font-size: 0.78rem; font-weight: 600; border-radius: 4px; }
.mobile-bar a svg { width: 20px; height: 20px; }
.mobile-bar .mb-call { color: var(--text-2); border: 1px solid var(--line); }
.mobile-bar .mb-est { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.mobile-bar .mb-quote { background: var(--gold); color: #ffffff; }

/* ---------------------------------------------------------
   Page hero (interior pages)
   --------------------------------------------------------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(60px,9vw,120px)); padding-bottom: clamp(48px,7vw,90px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 80% 0%, rgba(37,99,235,0.10), transparent 55%); z-index: 0; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 0; }
.page-hero p { margin-top: 22px; max-width: 600px; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: #33425c;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.breadcrumb a {
  color: #24314a;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); font-weight: 900; }

/* ---------------------------------------------------------
   Reveal animations
   --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-sites-track { animation: none; }
  .review-track { animation: none; }
  .hero h1.typewriter .br {
    max-width: 100%;
    border-right: none;
    animation: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------
   Multi-step forms (estimate / register)
   --------------------------------------------------------- */
.stepper { max-width: 880px; margin-inline: auto; }

.progress { margin-bottom: clamp(36px, 5vw, 56px); }
.progress-track { height: 2px; background: var(--line); position: relative; margin-bottom: 26px; }
.progress-track [data-bar] { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); transition: width 0.6s var(--ease); }
.dots { display: flex; gap: 8px; flex-wrap: wrap; }
.pdot { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 90px; opacity: 0.45; transition: opacity 0.4s; }
.pdot.on, .pdot.done { opacity: 1; }
.pdot .pn { font-family: var(--sans); font-size: 0.78rem; letter-spacing: -0.01em; color: var(--gold-deep); font-weight: 900; }
.pdot.on .pn, .pdot.done .pn { color: var(--gold); }
.pdot .pl { font-size: 0.85rem; font-weight: 500; color: var(--text-2); }
.pdot.on .pl { color: var(--text); }

.step-panel { display: none; animation: stepIn 0.5s var(--ease); }
.step-panel.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.step-panel .step-no { font-family: var(--sans); font-size: 0.88rem; letter-spacing: -0.01em; color: var(--gold-deep); font-weight: 900; margin-bottom: 14px; }
.step-panel h2 { margin-bottom: 10px; }
.step-panel .step-desc { color: var(--text-2); margin-bottom: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.chip {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  padding: 1.05em 1.4em;
  border-radius: 3px;
  font-size: 0.98rem; font-weight: 500;
  transition: all 0.3s var(--ease);
  text-align: left;
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.chip:hover { border-color: var(--gold-line); color: var(--text); }
.chip.on { border-color: var(--gold); background: var(--gold-soft); color: var(--text); }
.chip .ck { width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; transition: 0.3s; }
.chip.on .ck { border-color: var(--gold); background: var(--gold); }
.chip .ck::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffffff; transform: scale(0); transition: 0.3s var(--ease); }
.chip.on .ck::after { transform: scale(1); }
.chip .sub { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
[data-chips].invalid { outline: 1px solid #c0473e; outline-offset: 8px; border-radius: 3px; }

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.9rem; color: var(--text-2); margin-bottom: 10px; font-weight: 500; }
.field .hint { color: var(--muted); font-size: 0.82rem; margin-top: 8px; }
.input, .textarea, select.input {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text); padding: 1.05em 1.2em; border-radius: 3px; font-size: 1rem;
  transition: border-color 0.3s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--gold); }
.input.invalid, .textarea.invalid { border-color: #c0473e; }
.textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.input-pyeong { display: flex; align-items: center; gap: 14px; max-width: 320px; }
.input-pyeong .input { text-align: right; font-size: 1.4rem; font-weight: 700; }
.input-pyeong .unit { font-size: 1.1rem; color: var(--gold); font-weight: 600; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* upload */
.upload { border: 1.5px dashed var(--line-2); border-radius: 4px; padding: 40px 24px; text-align: center; cursor: pointer; transition: 0.3s; background: var(--surface); }
.upload:hover, .upload.drag { border-color: var(--gold); background: var(--gold-soft); }
.upload svg { width: 36px; height: 36px; color: var(--gold); margin: 0 auto 14px; }
.upload .ut { font-weight: 600; }
.upload .us { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.upload input { display: none; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 16px; }
.upl-thumb { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.upl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upl-thumb button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.9); color: var(--gold); font-size: 16px; line-height: 1; display: grid; place-items: center; }

.step-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.step-nav .spacer { flex: 1; }

/* estimate result */
.result-card { background: var(--surface); border: 1px solid var(--gold-line); border-radius: 4px; overflow: hidden; }
.result-head { background: linear-gradient(135deg, rgba(37,99,235,0.12), transparent); padding: clamp(32px,5vw,48px); text-align: center; border-bottom: 1px solid var(--line); }
.result-head .lbl { font-family: var(--sans); font-size: 0.88rem; letter-spacing: -0.01em; color: var(--gold-deep); font-weight: 900; margin-bottom: 16px; }
.result-mid { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.result-mid .w { font-size: 0.4em; color: var(--gold); font-weight: 600; margin-left: 6px; }
.result-vat { color: var(--muted); font-size: 0.85rem; margin-top: 12px; }
.result-range { display: grid; grid-template-columns: 1fr 1fr; }
.result-range > div { padding: 28px; text-align: center; }
.result-range > div:first-child { border-right: 1px solid var(--line); }
.result-range .rl { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.result-range .rv { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.result-range .rv.low { color: #6fae7e; }
.result-range .rv.high { color: var(--gold-bright); }
.est-summary { padding: 8px clamp(24px,4vw,40px) 24px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.sum-row:last-child { border-bottom: none; }
.sum-row span { color: var(--muted); }
.sum-row strong { color: var(--text); font-weight: 600; text-align: right; }

/* self-estimate board */
.estimate-board-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.estimate-board-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.estimate-board-head .eyebrow { margin-bottom: 0; }
.estimate-board-head .lead { margin-top: 20px; }

.estimateBox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.estimateBox .tray {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 680px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 80px -48px rgba(21, 57, 102, 0.32);
}
.estimateBox .cate { border-right: 1px solid var(--line); background: #f8fbff; }
.estimateBox .content { min-width: 0; background: var(--surface); }
.estimateBox .gridTh {
  display: grid;
  align-items: center;
  min-height: 58px;
  padding-inline: 18px;
  background: #eef5ff;
  border-bottom: 1px solid var(--line);
}
.estimateBox .content .gridTh { grid-template-columns: minmax(0, 1fr) 150px 54px; gap: 16px; }
.estimateBox .gridTh-item {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.categoryTabs,
.estimateItemWrap,
.resultList {
  list-style: none;
}
.categoryTabs {
  max-height: 622px;
  overflow: auto;
  padding: 10px;
}
.categoryTabs li + li { margin-top: 4px; }
.categoryTab {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: left;
  padding: 13px 14px;
  transition: 0.25s var(--ease);
}
.categoryTab:hover {
  color: var(--gold);
  background: rgba(37,99,235,0.06);
}
.categoryTab.active {
  color: #ffffff;
  background: var(--gold);
  box-shadow: 0 14px 32px -22px rgba(37,99,235,0.9);
}
.estimateItemWrap {
  max-height: 622px;
  overflow: auto;
}
.estimateItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 54px;
  gap: 16px;
  align-items: center;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}
.estimateItem:hover { background: #fbfdff; }
.estimateItem .text { min-width: 0; }
.estimateItem .text .top {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.estimateItem .tit {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.estimateItem .gruop {
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
}
.estimateItem .desc {
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.55;
}
.estimateItem .price-desc {
  display: inline-block;
  margin-top: 4px;
  color: #f28c28;
  font-weight: 700;
}
.inputWrap {
  position: relative;
}
.charge_input,
.resultQty input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  padding: 0 42px 0 12px;
  transition: 0.25s var(--ease);
}
.charge_input:focus,
.resultQty input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.inputWrap .legend {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.rowPlus {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  transition: 0.25s var(--ease);
}
.rowPlus:hover {
  background: var(--gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.estimateBox .right {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  box-shadow: 0 24px 80px -48px rgba(21, 57, 102, 0.36);
}
.estimateBox .detailList {
  display: none;
  position: absolute;
  top: 18px;
  left: -18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--gold);
  align-items: center;
  justify-content: center;
}
.estimateBox .right > .top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.estimateBox .right .tit {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.estimateBox .right .insert {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.resultList {
  min-height: 190px;
  max-height: 320px;
  overflow: auto;
  padding: 16px;
}
.resultList .noData {
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}
.resultList .noData svg { color: #c8d2e2; }
.resultItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px auto 24px;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.resultItem:first-child { padding-top: 0; }
.resultItem:last-child { border-bottom: none; padding-bottom: 0; }
.resultText { min-width: 0; }
.resultText strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
}
.resultText span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resultQty {
  position: relative;
}
.resultQty input {
  height: 36px;
  border-radius: 8px;
  font-size: 0.9rem;
  padding-right: 30px;
}
.resultQty span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.resultPrice {
  color: var(--gold-deep);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}
.resultItem button {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #eef5ff;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}
.resultItem button:hover {
  background: var(--gold);
  color: #ffffff;
}
.estimateBox .total {
  margin: 0 16px 16px;
  padding: 18px;
  border-radius: 14px;
  background: #f5f8ff;
  border: 1px solid var(--line);
}
.totalList,
.totalResult {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.totalList + .totalList { margin-top: 10px; }
.totalList .key {
  color: var(--muted);
  font-size: 0.86rem;
}
.totalList .value {
  color: var(--text);
  font-weight: 800;
}
.estimateBox .divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}
.totalResult .key {
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}
.totalResult .key span {
  color: var(--gold);
  font-size: 0.78rem;
}
.totalResult .value {
  color: var(--gold);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: right;
}
.nextCard {
  margin: 0 16px 16px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #ffffff;
}
.nextCard > div {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 14px;
}
.nextCard .linkArr {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .estimateBox { grid-template-columns: 1fr; }
  .estimateBox .right { position: static; }
  .estimateBox .tray { min-height: 0; }
}

@media (max-width: 820px) {
  .estimateBox .tray { grid-template-columns: 1fr; }
  .estimateBox .cate { border-right: none; border-bottom: 1px solid var(--line); }
  .categoryTabs {
    display: flex;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    padding: 12px;
  }
  .categoryTabs li + li { margin-top: 0; }
  .categoryTab { white-space: nowrap; }
  .estimateItemWrap { max-height: none; }
}

@media (max-width: 640px) {
  .estimateBox .content .gridTh { display: none; }
  .estimateItem {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px;
  }
  .inputWrap { max-width: 180px; }
  .rowPlus {
    width: 100%;
    height: 46px;
  }
  .resultItem {
    grid-template-columns: 1fr 80px 24px;
  }
  .resultPrice {
    grid-column: 1 / -1;
    text-align: right;
  }
}

/* completion */
.complete { text-align: center; max-width: 620px; margin-inline: auto; }
.complete .badge { width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; margin: 0 auto 28px; color: var(--gold); }
.complete .badge svg { width: 40px; height: 40px; }
.ref-no { font-family: var(--mono); display: inline-block; margin-top: 22px; padding: 10px 18px; border: 1px solid var(--gold-line); border-radius: 3px; color: var(--gold); letter-spacing: 0.08em; }

@media (max-width: 640px) {
  .input-grid { grid-template-columns: 1fr; }
  .chips.grid { grid-template-columns: 1fr 1fr; }
  .pdot .pl { display: none; }
  .pdot { min-width: 0; }
}

/* ---------------------------------------------------------
   Pricing tables
   --------------------------------------------------------- */
.price-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px,6vw,64px); position: sticky; top: var(--nav-h); background: var(--bg); padding-block: 18px; z-index: 20; border-bottom: 1px solid var(--line); }
.price-nav a { padding: 0.7em 1.3em; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--text-2); transition: 0.3s; }
.price-nav a:hover { border-color: var(--gold); color: var(--gold); }

.price-block { margin-bottom: clamp(56px, 8vw, 96px); scroll-margin-top: calc(var(--nav-h) + 90px); }
.price-block-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.price-block-head .pn { font-family: var(--mono); font-size: 0.9rem; color: var(--gold); }
.price-block-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.price-block-head p { color: var(--text-2); font-size: 0.95rem; }

.ptable { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.ptable thead th { background: var(--surface-2); text-align: left; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.ptable tbody td { padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 0.97rem; vertical-align: middle; }
.ptable tbody tr { transition: background 0.3s; }
.ptable tbody tr:hover { background: var(--surface); }
.ptable tbody tr:last-child td { border-bottom: none; }
.ptable .item { font-weight: 600; color: var(--text); }
.ptable .unit { color: var(--text-2); white-space: nowrap; }
.ptable .price { color: var(--gold-bright); font-weight: 700; white-space: nowrap; }
.ptable .note { color: var(--muted); font-size: 0.86rem; }
.ptable th:nth-child(2), .ptable td:nth-child(2) { text-align: center; }
.ptable th:nth-child(3), .ptable td:nth-child(3) { text-align: right; }

.price-disclaimer { background: var(--surface); border: 1px solid var(--gold-line); border-left: 3px solid var(--gold); border-radius: 3px; padding: 28px 32px; display: flex; gap: 18px; align-items: flex-start; }
.price-disclaimer svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.price-disclaimer h3 { font-size: 1.1rem; margin-bottom: 8px; }
.price-disclaimer p { color: var(--text-2); font-size: 0.95rem; }

@media (max-width: 640px) {
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; }
  .ptable tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .ptable tbody td { padding: 4px 0; border: none; text-align: left !important; }
  .ptable .item { font-size: 1.05rem; margin-bottom: 4px; }
  .ptable td.unit::before { content: "단위 · "; color: var(--muted); }
  .ptable td.price::before { content: "예상단가 · "; color: var(--muted); font-weight: 400; }
  .ptable td.note::before { content: "비고 · "; color: var(--muted); }
}

/* ---------------------------------------------------------
   Portfolio
   --------------------------------------------------------- */
.pf-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(32px,5vw,48px); }
.pf-controls.no-filters { justify-content: flex-end; }
.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-filter { padding: 0.6em 1.2em; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--text-2); background: none; transition: 0.3s; }
.pf-filter:hover { border-color: var(--gold-line); color: var(--text); }
.pf-filter.on { background: var(--gold); color: #ffffff; border-color: var(--gold); }
.pf-search { position: relative; min-width: 240px; }
.pf-search input { width: 100%; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); padding: 0.8em 1em 0.8em 2.6em; border-radius: 999px; font-size: 0.92rem; transition: border-color 0.3s; }
.pf-search input:focus { outline: none; border-color: var(--gold); }
.pf-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }

.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-empty { text-align: center; color: var(--muted); padding: 80px 0; display: none; }
.pf-empty.show { display: block; }
.pf-card { opacity: 1; transition: opacity 0.3s, transform 0.3s; }
.pf-card.hide { display: none; }

.site-gallery-section { overflow: hidden; }
.site-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.site-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 60px -42px rgba(21, 57, 102, 0.42);
}
.site-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
}
.site-photo:hover img {
  transform: scale(1.04);
}
.site-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

@media (max-width: 1080px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1080px) { .site-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pf-grid, .site-gallery { grid-template-columns: 1fr; } .pf-search { width: 100%; } .pf-controls.no-filters { justify-content: center; } }

/* detail */
.detail-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: clamp(40px,6vw,64px); }
.detail-ba figure { margin: 0; }
.detail-ba .ph { aspect-ratio: 4/3; border: 1px solid var(--line); }
.detail-ba .ph.has-image img {
  object-fit: contain;
}
.detail-ba figcaption { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--gold); margin-top: 12px; text-transform: uppercase; }
@media (max-width: 760px) { .detail-ba { grid-template-columns: 1fr; } }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: clamp(32px,5vw,64px); align-items: start; }
.detail-spec { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 8px 28px; position: sticky; top: calc(var(--nav-h) + 24px); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--muted); font-size: 0.88rem; }
.spec-row .v { font-weight: 600; text-align: right; }
.detail-body h3 { font-size: 1.3rem; margin: 36px 0 14px; }
.detail-body h3:first-child { margin-top: 0; }
.detail-body p { color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.detail-body ul { list-style: none; display: grid; gap: 10px; margin: 8px 0 8px; }
.detail-body li { color: var(--text-2); padding-left: 26px; position: relative; }
.detail-body li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } .detail-spec { position: static; } }

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */
.ceo { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px,5vw,64px); align-items: center; }
.ceo .ph { aspect-ratio: 4/5; border: 1px solid var(--line); }
.ceo blockquote { margin: 0; }
.ceo .mark { font-size: 4rem; line-height: 0.5; color: var(--gold); font-family: Georgia, serif; }
.ceo .q { font-size: clamp(1.3rem,2.4vw,1.9rem); font-weight: 700; line-height: 1.5; letter-spacing: -0.02em; margin: 18px 0 28px; }
.ceo .q .gold { color: var(--gold); }
.ceo p { color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.ceo .sign { margin-top: 26px; font-weight: 600; }
.ceo .sign small { display: block; color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; margin-top: 4px; }
@media (max-width: 760px) { .ceo { grid-template-columns: 1fr; } }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.vm-card { background: var(--bg); padding: clamp(32px,4vw,52px); }
.vm-card .tag { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; color: var(--gold); }
.vm-card h3 { font-size: clamp(1.4rem,2.4vw,1.9rem); margin: 16px 0 14px; letter-spacing: -0.02em; }
.vm-card p { color: var(--text-2); line-height: 1.75; }
@media (max-width: 640px) { .vm-grid { grid-template-columns: 1fr; } }

.timeline { border-left: 1px solid var(--line-2); margin-left: 8px; }
.tl-item { position: relative; padding: 0 0 40px 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.tl-item .yr { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.tl-item ul { list-style: none; display: grid; gap: 6px; }
.tl-item li { color: var(--text-2); }

.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node { background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; padding: 16px 28px; text-align: center; min-width: 180px; }
.org-node.top { border-color: var(--gold); background: var(--gold-soft); }
.org-node .t { font-weight: 700; }
.org-node .s { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.org-line { width: 1px; height: 28px; background: var(--line-2); }
.org-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.org-branch { position: relative; }

.equip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.equip { background: var(--bg); padding: 28px 24px; }
.equip .ph { aspect-ratio: 3/2; margin-bottom: 16px; }
.equip h4 { font-size: 1.05rem; }
.equip p { color: var(--muted); font-size: 0.84rem; margin-top: 4px; }
@media (max-width: 860px) { .equip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .equip-grid { grid-template-columns: 1fr; } }

.philo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.philo-item { border-top: 1px solid var(--gold-line); padding-top: 24px; }
.philo-item .no { font-family: var(--mono); color: var(--gold); font-size: 0.85rem; }
.philo-item h4 { font-size: 1.2rem; margin: 14px 0 10px; }
.philo-item p { color: var(--text-2); font-size: 0.93rem; line-height: 1.7; }
@media (max-width: 760px) { .philo { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items: start; }
.contact-info .ci-row { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-row:first-child { padding-top: 0; }
.contact-info .ci-ico { width: 44px; height: 44px; border: 1px solid var(--gold-line); border-radius: 50%; display: grid; place-items: center; color: var(--gold); flex-shrink: 0; }
.contact-info .ci-ico svg { width: 20px; height: 20px; }
.contact-info .ci-k { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.contact-info .ci-v { font-size: 1.15rem; font-weight: 600; margin-top: 4px; }
.contact-info .ci-v.big { font-size: 1.6rem; color: var(--gold); }
.contact-info .ci-s { color: var(--text-2); font-size: 0.9rem; margin-top: 2px; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(28px,4vw,44px); }
.contact-form h2 { margin-bottom: 8px; }
.contact-form .sub { color: var(--text-2); margin-bottom: 28px; font-size: 0.95rem; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.show { display: block; }
.form-success .badge { width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; margin: 0 auto 22px; color: var(--gold); }
.form-success .badge svg { width: 34px; height: 34px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .case-preview, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
}

@media (max-width: 860px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
  .cta-band .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { padding: 20px 0 20px 20px; }
  .hero-stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .svc-grid, .case-preview, .review-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body {
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: center;
    line-height: 1.75;
  }

  .hero .wrap {
    padding-bottom: clamp(64px, 10vh, 110px);
  }

  .process {
    gap: 22px;
    padding-inline: var(--gutter);
  }

  .process::before,
  .step::after {
    display: none;
  }

  .step,
  .step:nth-child(odd),
  .step:nth-child(even) {
    width: 100%;
    justify-self: center;
  }

  .process .step.reveal:nth-child(odd),
  .process .step.reveal:nth-child(even) {
    transform: translateY(24px);
  }

  .process .step.reveal.in {
    transform: none;
  }

  p,
  li,
  .lead,
  .quote,
  .desc,
  .step-desc,
  .hint,
  .footer-brand p,
  .contact-form .sub {
    line-height: 1.85;
  }

  p + p,
  .detail-body p + p,
  .ceo p + p {
    margin-top: 20px;
  }

  .section-head p,
  .page-hero p,
  .estimate-board-head .lead,
  .hero-sub {
    margin-top: 26px;
  }

  .display,
  .h1,
  .h2,
  .h3,
  .lead,
  .section-head,
  .section-head p,
  .page-hero,
  .hero-inner,
  .estimate-board-head,
  .case-body,
  .case-body .meta,
  .hero-stat,
  .stat-item,
  .price-block,
  .price-disclaimer,
  .ptable,
  .step-panel,
  .field,
  .sum-row,
  .result-card,
  .estimateItem,
  .estimateItem .text,
  .resultItem,
  .resultText,
  .totalList,
  .totalResult,
  .spec-row,
  .tl-item,
  .org-node,
  .site-photo,
  .review,
  .step,
  .detail-body,
  .detail-spec,
  .ceo,
  .vm-card,
  .philo-item,
  .equip,
  .contact-info,
  .contact-form,
  .complete {
    text-align: center;
  }

  .display,
  .h1,
  .h2,
  .h3,
  .lead,
  .section-head p,
  .hero-sub,
  .case-body p,
  .detail-body p,
  .detail-body li,
  .ceo p,
  .vm-card p,
  .philo-item p,
  .contact-info .ci-s,
  .footer-brand p {
    text-wrap: balance;
  }

  .section-head,
  .estimate-board-head,
  .hero-inner,
  .hero-sub,
  .page-hero p,
  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .eyebrow,
  .breadcrumb,
  .hero-actions,
  .cta-actions-right,
  .pf-controls,
  .pf-filters,
  .price-nav,
  .price-disclaimer,
  .case-body .meta,
  .stat-item .big,
  .estimateItem .text .top,
  .svc-card .tag-list,
  .input-pyeong,
  .step-nav,
  .sum-row,
  .totalList,
  .totalResult,
  .spec-row,
  .org-row,
  .categoryTabs,
  .chips,
  .dots,
  .footer-bottom,
  .footer-bottom .legal,
  .contact-info .ci-row {
    justify-content: center;
  }

  .eyebrow::before {
    display: none;
  }

  .breadcrumb {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .cta-actions-right {
    align-items: center;
  }

  .hero-stat {
    padding: 24px 8px;
    border-left: none;
  }

  .hero-stat:first-child,
  .hero-stat:nth-child(3) {
    padding-left: 8px;
  }

  .pf-controls {
    flex-direction: column;
    text-align: center;
  }

  .pf-filter,
  .price-nav a,
  .categoryTab,
  .chip,
  .field label,
  .field .hint,
  .input,
  .textarea,
  select.input {
    text-align: center;
    justify-content: center;
  }

  .price-nav {
    position: static;
  }

  .categoryTabs {
    justify-content: center;
    scroll-padding-inline: 50%;
  }

  .categoryTab {
    min-width: max-content;
  }

  .drawer a {
    justify-content: center;
    text-align: center;
  }

  .drawer-foot .phone {
    justify-content: center !important;
  }

  .drawer a .num {
    display: none;
  }

  .svc-card,
  .step,
  .review,
  .case-body,
  .contact-form,
  .detail-spec {
    border-radius: 14px;
  }

  .svc-card .idx,
  .svc-card .arrow,
  .step .dot {
    position: static;
  }

  .svc-card {
    align-items: center;
    min-height: auto;
    padding: 30px 22px;
  }

  .svc-card h3 {
    margin-top: 22px;
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .svc-card p {
    max-width: 18rem;
    font-size: 1.08rem;
    line-height: 1.8;
  }

  .svc-card .idx {
    font-size: 1.04rem;
  }

  .svc-card .tag {
    font-size: 0.94rem;
    padding: 7px 13px;
  }

  .svc-card .tag-list,
  .review .who,
  .price-block-head,
  .footer-bottom,
  .footer-bottom .legal {
    justify-content: center;
  }

  .review .who,
  .price-block-head,
  .contact-info .ci-row,
  .price-disclaimer,
  .sum-row,
  .totalList,
  .totalResult,
  .spec-row {
    flex-direction: column;
    align-items: center;
  }

  .step-nav {
    flex-direction: column;
  }

  .step-nav .spacer {
    display: none;
  }

  .input-pyeong,
  .inputWrap {
    margin-left: auto;
    margin-right: auto;
  }

  .estimateItem .gruop,
  .estimateItem .price-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .resultQty {
    margin-left: auto;
    margin-right: auto;
  }

  .resultPrice,
  .sum-row strong,
  .spec-row .v,
  .totalResult .value {
    text-align: center;
  }

  .ptable thead th,
  .ptable tbody td {
    text-align: center !important;
  }

  .price-disclaimer {
    border-left-width: 1px;
    border-top: 3px solid var(--gold);
  }

  .timeline {
    border-left: none;
    margin-left: 0;
  }

  .tl-item {
    padding-left: 0;
  }

  .tl-item::before {
    position: static;
    display: block;
    margin: 0 auto 12px;
  }

  .detail-body li {
    padding-left: 0;
  }

  .detail-body li::before {
    position: static;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
  }

  .footer,
  .footer h4,
  .footer-links,
  .footer-brand,
  .footer-contact,
  .footer-bottom {
    text-align: center;
  }

  .footer .brand {
    justify-content: center;
  }

  .footer-links {
    justify-items: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-contact {
    text-align: center;
  }
}

/* Mobile layout stabilization */
@media (max-width: 760px) {
  :root {
    --nav-h: 72px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .wrap {
    padding-inline: clamp(18px, 5vw, 24px);
  }

  .nav {
    height: var(--nav-h);
    background: rgba(255,255,255,0.92);
    border-bottom-color: var(--line);
    backdrop-filter: blur(16px);
  }

  .nav .wrap {
    gap: 12px;
  }

  .brand-logo {
    width: 154px;
    height: 58px;
  }

  .footer .brand-logo {
    width: 220px;
    height: 88px;
    margin-inline: auto;
  }

  .hero {
    min-height: auto;
    display: block;
  }

  .hero .wrap {
    padding-top: calc(var(--nav-h) + 44px);
    padding-bottom: 44px;
  }

  .hero-inner {
    width: 100%;
  }

  .hero .display {
    font-size: clamp(2.2rem, 11vw, 3.35rem);
    line-height: 1.14;
  }

  .hero h1.typewriter .br {
    width: auto;
    max-width: none;
    overflow: visible;
    border-right: none;
    white-space: normal;
    animation: none;
  }

  .hero-sub {
    max-width: 22rem;
    margin-bottom: 30px;
  }

  .hero-actions {
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: min(100%, 320px);
  }

  .hero-sites {
    width: 100%;
    margin-top: 28px;
  }

  .hero-site-card {
    width: 136px;
    border-radius: 14px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-stats .wrap {
    gap: 1px;
  }

  .hero-stat {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .section-pad {
    padding-block: clamp(58px, 14vw, 88px);
  }

  .section-head,
  .estimate-board-head {
    max-width: 100%;
    margin-bottom: 34px;
  }

  .case-preview,
  .review-grid,
  .pf-grid,
  .site-gallery,
  .stat-grid,
  .svc-grid,
  .process {
    width: 100%;
  }

  .review-grid {
    margin-inline: -18px;
    padding-inline: 0;
  }

  .review {
    width: min(84vw, 320px);
  }

  .review-body {
    padding: 18px;
  }

  .review-head,
  .review .who {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .case-tags,
  .case-info {
    justify-content: center;
  }

  .case-info {
    grid-template-columns: 1fr;
  }

  .estimateBox {
    display: block;
  }

  .estimateBox .tray {
    display: block;
    min-height: 0;
    border-radius: 18px;
  }

  .estimateBox .cate {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .estimateBox .gridTh {
    min-height: 48px;
    padding-inline: 14px;
  }

  .categoryTabs {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 12px 14px;
    scroll-snap-type: x proximity;
  }

  .categoryTabs li {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .categoryTabs li + li {
    margin-top: 0;
  }

  .categoryTab {
    min-width: auto;
    white-space: nowrap;
    padding: 11px 14px;
    border-radius: 999px;
  }

  .estimateBox .content .gridTh {
    display: none;
  }

  .estimateItemWrap {
    max-height: none;
    overflow: visible;
  }

  .estimateItem {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 16px;
  }

  .estimateItem .text .top {
    justify-content: center;
  }

  .inputWrap {
    width: min(100%, 220px);
  }

  .rowPlus {
    width: min(100%, 260px);
    margin-inline: auto;
  }

  .estimateBox .right {
    position: static;
    margin-top: 18px;
    border-radius: 18px;
  }

  .estimateBox .right > .top {
    flex-direction: column;
    justify-content: center;
    padding: 22px 18px 16px;
    text-align: center;
  }

  .resultList {
    max-height: none;
  }

  .resultItem {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .resultQty {
    width: 120px;
  }

  .resultItem button {
    margin-inline: auto;
  }

  .nextCard .linkArr {
    justify-content: center;
  }

  .price-nav {
    top: auto;
  }

  .ptable tbody tr {
    text-align: center;
  }

  .contact-info .ci-row,
  .footer-top,
  .footer-bottom,
  .footer-bottom .legal {
    justify-items: center;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 138px;
    height: 52px;
  }

  .hero .display {
    font-size: clamp(2rem, 10.5vw, 2.8rem);
  }

  .mobile-bar a {
    font-size: 0.72rem;
  }
}

/* Mobile polish pass */
@media (max-width: 760px) {
  .nav .wrap {
    height: 100%;
    padding-left: 0;
    padding-right: 14px;
  }

  .nav-mobile-call {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    box-shadow: 0 14px 32px -22px rgba(37,99,235,0.9);
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 146px;
    height: 54px;
    margin-left: -8px;
  }

  .nav-cta {
    gap: 0;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 12px 34px -28px rgba(21,57,102,0.55);
  }

  .nav-toggle span {
    width: 22px;
    background: var(--gold-deep);
  }

  .nav-toggle.open span:nth-child(3) {
    width: 22px;
  }

  .drawer {
    background: rgba(255,255,255,0.98);
    padding: calc(var(--nav-h) + 18px) clamp(22px, 7vw, 34px) 34px;
  }

  .drawer a {
    min-height: 58px;
    padding: 0;
    font-size: clamp(1.15rem, 5vw, 1.45rem);
    line-height: 1.25;
    align-items: center;
  }

  .drawer-foot {
    gap: 14px;
  }

  .drawer-foot .phone {
    font-size: 1rem !important;
    font-weight: 900;
  }

  .mobile-bar {
    box-shadow: 0 -12px 34px -26px rgba(21,57,102,0.42);
  }

  .mobile-bar a {
    min-height: 56px;
    border-radius: 12px;
    line-height: 1.25;
  }

  .display,
  .h1 {
    line-height: 1.16;
  }

  .h2,
  .h3 {
    line-height: 1.28;
  }

  .lead,
  p,
  li {
    font-size: clamp(0.96rem, 3.8vw, 1.06rem);
  }

  .btn {
    min-height: 52px;
    border-radius: 14px;
    padding: 1em 1.35em;
  }

  .section-head,
  .estimate-board-head {
    padding-inline: 2px;
  }

  .svc-card,
  .case-card,
  .review,
  .step,
  .contact-form,
  .detail-spec,
  .result-card,
  .estimateBox .tray,
  .estimateBox .right {
    box-shadow: 0 18px 48px -38px rgba(21,57,102,0.38);
  }

  .case-body,
  .review-body,
  .contact-form,
  .detail-spec,
  .estimateBox .total,
  .nextCard {
    padding-inline: 20px;
  }

  .estimate-board-head .lead {
    max-width: 21rem;
    margin-inline: auto;
  }

  .estimateItem .desc {
    font-size: 0.92rem;
  }

  .charge_input,
  .resultQty input {
    height: 48px;
    border-radius: 14px;
    font-size: 1.02rem;
  }

  .rowPlus {
    height: 48px;
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 128px;
    height: 48px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .wrap {
    padding-inline: 16px;
  }
}

/* Trendy mobile navigation */
@media (max-width: 760px) {
  .drawer {
    background:
      radial-gradient(80% 40% at 50% 0%, rgba(37,99,235,0.14), transparent 65%),
      linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,255,0.98));
    gap: 10px;
  }

  .drawer::before {
    content: "MENU";
    display: block;
    margin: 0 auto 10px;
    padding: 6px 12px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    color: var(--gold-deep);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
  }

  .drawer a {
    min-height: 58px;
    border: 1px solid rgba(37,99,235,0.10);
    border-radius: 18px;
    background: rgba(255,255,255,0.78);
    box-shadow: 0 16px 44px -36px rgba(21,57,102,0.42);
    color: #24314a;
    font-size: 1.08rem;
    font-weight: 900;
    backdrop-filter: blur(14px);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  }

  .drawer a:hover,
  .drawer a.active {
    transform: translateY(-2px);
    border-color: var(--gold-line);
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #ffffff;
  }

  .drawer-foot {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .drawer-foot .phone {
    background: rgba(37,99,235,0.08) !important;
    color: var(--gold-deep) !important;
    border: 1px solid var(--gold-line) !important;
  }

  .drawer-foot .btn {
    border-radius: 18px;
    box-shadow: 0 18px 46px -30px rgba(37,99,235,0.58);
  }

  .mobile-bar {
    left: 12px;
    right: 12px;
    bottom: 10px;
    border: 1px solid rgba(37,99,235,0.14);
    border-radius: 22px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 18px 54px -28px rgba(21,57,102,0.42);
    padding: 8px;
  }

  .mobile-bar a {
    min-height: 58px;
    border: none !important;
    border-radius: 16px;
    background: transparent;
    color: #52627a;
    font-weight: 900;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .mobile-bar a:hover {
    transform: translateY(-2px);
  }

  .mobile-bar .mb-est {
    background: rgba(37,99,235,0.08);
    color: var(--gold-deep);
  }

  .mobile-bar .mb-quote {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #ffffff;
    box-shadow: 0 14px 34px -22px rgba(37,99,235,0.8);
  }
}

/* Mobile center-alignment audit */
@media (max-width: 760px) {
  main,
  section,
  .wrap,
  .page-hero .wrap,
  .section-head,
  .estimate-board-head,
  .case-body,
  .case-site-body,
  .review-body,
  .detail-body,
  .detail-spec,
  .contact-info,
  .contact-form,
  .footer,
  .footer-top,
  .footer-brand,
  .footer-contact,
  .price-block,
  .price-disclaimer,
  .step-panel,
  .field,
  .estimateItem,
  .estimateItem .text,
  .resultText,
  .nextCard,
  .complete {
    text-align: center !important;
  }

  .hero-actions,
  .cta-actions-right,
  .pf-controls,
  .price-nav,
  .chips,
  .dots,
  .case-tags,
  .case-info,
  .case-body .meta,
  .review-head,
  .review .who,
  .price-block-head,
  .price-disclaimer,
  .step-nav,
  .sum-row,
  .totalList,
  .totalResult,
  .spec-row,
  .estimateItem .text .top,
  .svc-card .tag-list,
  .contact-info .ci-row,
  .footer-bottom,
  .footer-bottom .legal,
  .org-row {
    justify-content: center !important;
    align-items: center !important;
  }

  .categoryTabs {
    justify-content: flex-start !important;
    text-align: center;
  }

  .categoryTabs li {
    text-align: center;
  }

  .categoryTab,
  .chip,
  .pf-filter,
  .price-nav a,
  .btn,
  .input,
  .textarea,
  select.input,
  .charge_input,
  .resultQty input {
    text-align: center !important;
  }

  .case-tags span,
  .estimateItem .gruop,
  .estimateItem .price-desc,
  .review-badge,
  .ref-no,
  .breadcrumb,
  .price-disclaimer svg,
  .contact-info .ci-ico,
  .complete .badge,
  .form-success .badge {
    margin-left: auto;
    margin-right: auto;
  }

  .ptable,
  .ptable tbody,
  .ptable tr,
  .ptable td,
  .sum-row strong,
  .spec-row .v,
  .resultPrice,
  .totalResult .value {
    text-align: center !important;
  }

  .price-disclaimer,
  .review-head,
  .review .who,
  .price-block-head,
  .contact-info .ci-row,
  .sum-row,
  .totalList,
  .totalResult,
  .spec-row {
    flex-direction: column;
  }

  .detail-body ul,
  .tl-item ul {
    justify-items: center;
  }

  .detail-body li,
  .tl-item li {
    width: 100%;
  }

  .case-preview + *,
  .section-head[style] {
    text-align: center !important;
  }

  .section-head[style] {
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .section-head[style] > div {
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  .section-head[style] .btn {
    margin-inline: auto !important;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
}

/* Self-estimate mobile category picker */
@media (max-width: 820px) {
  .estimateBox .cate {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    padding-bottom: 8px;
  }

  .estimateBox .cate .gridTh {
    min-height: auto;
    justify-content: center;
    padding: 18px 16px 4px;
    background: transparent;
    border-bottom: none;
    text-align: center;
  }

  .categoryTabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
    max-height: none;
    overflow: visible !important;
    overscroll-behavior-x: auto;
    padding: 12px 14px 16px !important;
    scroll-snap-type: none;
  }

  .categoryTabs li {
    width: 100%;
    flex: initial !important;
    scroll-snap-align: unset;
  }

  .categoryTabs li + li {
    margin-top: 0 !important;
  }

  .categoryTab {
    display: flex;
    align-items: center;
    justify-content: center !important;
    width: 100%;
    min-width: 0 !important;
    min-height: 52px;
    padding: 12px 10px !important;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px -20px rgba(21, 57, 102, 0.7);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .categoryTab.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #ffffff;
    box-shadow: 0 16px 34px -22px rgba(37, 99, 235, 0.95);
  }
}

@media (max-width: 360px) {
  .categoryTabs {
    grid-template-columns: 1fr;
  }
}

/* Natural select styling for inquiry/register forms */
select.input {
  appearance: none;
  -webkit-appearance: none;
  min-height: 56px;
  padding: 0 52px 0 18px;
  border-radius: 12px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 6.75L9 11.25L13.5 6.75' stroke='%2352627A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
  color: var(--text);
  line-height: 1.35;
  text-align: left !important;
  text-align-last: left;
  cursor: pointer;
}

select.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

select.input::-ms-expand {
  display: none;
}

@media (max-width: 760px) {
  select.input {
    min-height: 54px;
    padding-left: 16px !important;
    padding-right: 50px !important;
    background-position: right 16px center;
  }
}
