@font-face {
  font-family: 'Lab Sans';
  src: url('assets/lab-regular.woff') format('woff');
  font-weight: 400 599;
  font-display: swap;
}

@font-face {
  font-family: 'Lab Sans';
  src: url('assets/lab-bold.woff') format('woff');
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #102741;
  --navy: #081c32;
  --navy-deep: #061528;
  --blue: #0b4f9c;
  --blue-strong: #084689;
  --sky: #5cd1ff;
  --paper: #f5f8fc;
  --muted: #52657a;
  --line: #dbe5ee;
  --white: #fff;
  --header-height: 77px;
  font-family: 'Lab Sans', 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  font-size: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #0088d0; outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--sky);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  color: var(--white);
  background: var(--navy-deep);
  border-bottom: 1px solid #90bad125;
}
.header-inner {
  display: grid;
  min-height: calc(var(--header-height) - 1px);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  font-size: 1.19rem;
  font-weight: 800;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand img { flex: 0 0 auto; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: clamp(26px, 3.25vw, 46px); }
.primary-nav a { color: #dbe7f4; font-size: .95rem; font-weight: 600; }
.primary-nav a:hover { color: var(--sky); }
.header-call {
  display: inline-flex;
  min-height: 44px;
  justify-self: end;
  align-items: center;
  gap: 9px;
  padding: 3px 14px;
  border: 1px solid #5ba2c477;
  border-radius: 8px;
  color: #e7f6fe;
  font-size: 1.04rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.header-call:hover { background: #143651; border-color: #73c9f2; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  color: var(--white);
  background: var(--navy-deep);
  border-bottom: 3px solid #2f9ed9;
}
.hero-visual {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  height: auto;
}
.hero-inner {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  margin: 0;
  padding: 48px 24px 48px max(26px, calc((100vw - 1180px) / 2));
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .045em;
}
.eyebrow::before { width: 23px; height: 2px; content: ''; background: currentColor; }
.hero-eyebrow { color: #7fdcff; }
.hero h1 {
  margin-block: 20px 23px;
  font-size: clamp(3.15rem, 5vw, 4.75rem);
  font-weight: 850;
  line-height: 1.13;
  letter-spacing: -.065em;
  word-break: keep-all;
}
.hero h1 em { color: var(--sky); font-style: normal; }
.hero-description { color: #d3e0ed; font-size: 1.125rem; line-height: 1.8; word-break: keep-all; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .975rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}
.button-primary { color: #06213a; background: var(--sky); }
.button-primary:hover { background: #91e2ff; }
.button-outline { color: #f2f8fe; background: #0a23366e; border-color: #92afca8a; }
.button-outline:hover { background: #143651; border-color: var(--sky); }

.services { padding-top: 68px; }
.section-intro h2 {
  margin-top: 9px;
  font-size: clamp(2rem, 3.45vw, 2.93rem);
  font-weight: 850;
  line-height: 1.23;
  letter-spacing: -.062em;
  word-break: keep-all;
}
.section-intro > p:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.04rem;
  word-break: keep-all;
}
.service-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-block: 26px 20px;
}
.service-tab {
  position: relative;
  display: flex;
  min-height: 87px;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.service-tab:hover { border-color: #79aeda; background: #f8fbff; }
.service-tab[aria-selected="true"] {
  border-color: #1768b1;
  background: #eaf5ff;
  box-shadow: inset 0 0 0 1px #1768b1;
}
.tab-icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  border-radius: 10px;
  background: #edf5fd;
}
.service-tab[aria-selected="true"] .tab-icon { background: #d9edff; }
.tab-text { min-width: 0; }
.tab-text strong, .tab-text small { display: block; }
.tab-text strong { font-size: 1.01rem; line-height: 1.3; letter-spacing: -.045em; }
.tab-text small { margin-top: 4px; color: var(--muted); font-size: .8125rem; line-height: 1.35; word-break: keep-all; }

.service-detail { border-radius: 16px; }
.case-card {
  display: grid;
  grid-template-columns: 46% 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 28px #183c5a0a;
}
.case-media {
  position: relative;
  min-height: 346px;
  overflow: hidden;
  background: #e6f0fa;
}
.case-media > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.case-media > img[src$="/toilet-field.webp"] { object-position: center 77%; }
.case-media > img[src$="/leak-field.webp"] { object-position: center 62%; }
.case-media > img[src$="/sink-drain.webp"] { object-fit: contain; }
.case-media:has(.pressure-comparison:not([hidden])) {
  min-height: 0;
  aspect-ratio: auto;
  align-content: center;
  background: var(--navy-deep);
}
.case-media:has(.pressure-comparison:not([hidden]))::after { display: none; }
.pressure-comparison { --before-width: 50%; }
.pressure-photos { position: relative; }
.pressure-photos img { display: block; width: 100%; height: auto; }
.pressure-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--before-width)) 0 0);
}
.pressure-divider {
  position: absolute;
  inset-block: 0;
  left: var(--before-width);
  border-left: 2px solid white;
  transform: translateX(-1px);
  pointer-events: none;
}
.pressure-control {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  color: var(--white);
  font-weight: 700;
}
.pressure-control input {
  direction: rtl;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  accent-color: #7fdcff;
}
.case-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 65px;
  content: '';
  background: linear-gradient(0deg, #06152866, transparent);
  pointer-events: none;
}
.case-media:has(.case-illustration:not([hidden]))::after { display: none; }
.case-caption {
  position: absolute;
  z-index: 1;
  inset: auto auto 16px 17px;
  padding: 4px 10px;
  border: 1px solid #ffffff30;
  border-radius: 5px;
  color: var(--white);
  background: #0c1e30e6;
  font-size: .82rem;
}
.case-illustration {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(#7fa5c82a 1px, transparent 1px) center / 26px 26px,
    linear-gradient(90deg, #7fa5c82a 1px, transparent 1px) center / 26px 26px,
    radial-gradient(ellipse at 45% 50%, #f3faff, #d6e8f8);
}
.case-illustration img {
  width: 154px;
  height: 154px;
  padding: 24px;
  border: 1px solid #bdd8ee;
  border-radius: 32px;
  background: #f2f9ff;
  box-shadow: 0 10px 35px #14477520;
}
.case-copy { align-self: center; padding: clamp(25px, 3.4vw, 48px); }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
}
.case-kind {
  padding: 4px 9px;
  border-radius: 5px;
  color: #08478e;
  background: #e7f3ff;
  font-weight: 750;
}
.case-kind.is-example { color: #365574; background: #ecf1f7; }
.case-copy h3 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 2.55vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -.052em;
  word-break: keep-all;
}
.case-description { margin-top: 12px; color: var(--muted); word-break: keep-all; }
.symptom-box {
  margin-top: 22px;
  padding: 12px 16px;
  border-left: 3px solid #429ddb;
  border-radius: 0 7px 7px 0;
  background: #f0f6fc;
}
.symptom-box h4 { color: var(--blue-strong); font-size: .91rem; font-weight: 750; }
.symptom-box ul {
  margin-top: 4px;
  padding-left: 17px;
  color: #354d65;
  font-size: .925rem;
  line-height: 1.65;
  word-break: keep-all;
}
.symptom-box li::marker { color: #2374b4; }
.related-case {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 7px;
  color: var(--blue-strong);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workflow { padding-block: 65px 74px; }
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 25px;
  padding: 0;
  list-style: none;
}
.workflow-steps li {
  padding: 20px 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #0d549c;
  background: #e8f3fe;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.workflow-steps h3 { margin-top: 12px; font-size: 1.05rem; line-height: 1.45; letter-spacing: -.035em; }
.workflow-steps p { margin-top: 6px; color: var(--muted); font-size: .95rem; word-break: keep-all; }

.symptom-guide { border-block: 1px solid #dce7f2; background: #edf4fb; }
.guide-inner {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.45fr);
  gap: clamp(24px, 6vw, 93px);
  padding-block: 53px 58px;
}
.questions {
  border: 1px solid #dbe6f0;
  border-radius: 12px;
  background: var(--white);
}
.questions details + details { border-top: 1px solid var(--line); }
.questions summary {
  position: relative;
  padding: 17px 50px 17px 21px;
  color: #173550;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
  word-break: keep-all;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::before, .questions summary::after {
  position: absolute;
  inset: 28px 21px auto auto;
  width: 12px;
  height: 2px;
  content: '';
  background: #1c65a5;
}
.questions summary::after { transform: rotate(90deg); }
.questions details[open] summary::after { transform: none; }
.questions details[open] { padding-bottom: 13px; }
.questions details p { padding: 0 21px 5px; color: var(--muted); word-break: keep-all; }
.guide-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-left: 21px;
  color: var(--blue-strong);
  font-size: .925rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-section { padding-block: 50px; }
.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 34px clamp(24px, 3.65vw, 49px);
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(108deg, #081c32, #0c3a61);
}
.contact-card h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.28; letter-spacing: -.05em; word-break: keep-all; }
.contact-card p { margin-top: 8px; color: #d1e3f1; word-break: keep-all; }
.contact-button { flex-shrink: 0; }
.site-footer { color: #c8d9e8; background: var(--navy-deep); }
.footer-inner {
  display: flex;
  min-height: 90px;
  justify-content: space-between;
  align-items: center;
  gap: 10px 22px;
  padding-block: 15px;
  font-size: .875rem;
}
.footer-brand { color: var(--white); font-size: 1.04rem; }
.official-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.official-links a { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1050px) {
  .service-tab { gap: 8px; padding-inline: 9px; }
  .tab-icon { width: 38px; height: 38px; flex-basis: 38px; }
}
@media (max-width: 840px) {
  .shell { width: calc(100% - 52px); }
  .service-tabs { gap: 8px; }
  .service-tab { flex-direction: column; align-items: flex-start; padding: 10px; }
  .hero h1 { font-size: clamp(2.35rem, 5.2vw, 3.15rem); }
  .case-card { grid-template-columns: 42% 1fr; }
  .guide-inner { gap: 22px; }
}
@media (max-width: 620px) {
  :root { --header-height: 64px; }
  .shell { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .brand { gap: 8px; font-size: 1rem; }
  .brand img { width: 36px; height: 36px; }
  .primary-nav { display: none; }
  .header-call { padding-inline: 9px; font-size: .875rem; }
  .header-call img { width: 15px; height: 15px; }

  .hero { display: block; }
  .hero-inner { padding: 28px 18px 38px; }
  .hero h1 { margin-block: 16px 19px; font-size: clamp(2.5rem, 8.7vw, 3.4rem); }
  .hero-description { font-size: 1rem; }
  .hero-actions { gap: 8px; margin-top: 24px; }
  .hero-actions .button { min-height: 49px; padding-inline: 12px; font-size: .91rem; }

  .services { padding-top: 43px; }
  .section-intro h2 { font-size: clamp(1.72rem, 6vw, 2.25rem); }
  .section-intro > p:last-child { margin-top: 8px; font-size: 1rem; }
  .service-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 19px 15px; }
  .service-tab { min-height: 69px; flex-direction: row; align-items: center; border-radius: 10px; }
  .service-tab:last-child { grid-column: 1 / -1; }
  .tab-text small { font-size: .775rem; }
  .case-card { grid-template-columns: minmax(0, 1fr); border-radius: 12px; }
  .case-media { min-height: 0; aspect-ratio: 1.73; }
  .case-illustration img { width: 112px; height: 112px; border-radius: 22px; }
  .case-copy { padding: 21px 18px; }
  .case-copy h3 { font-size: 1.53rem; }
  .symptom-box { margin-top: 16px; }

  .workflow { padding-block: 43px 48px; }
  .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 17px; }
  .workflow-steps li { padding: 13px 11px 15px; }
  .workflow-steps h3 { margin-top: 8px; }
  .workflow-steps p { font-size: .875rem; }

  .guide-inner { grid-template-columns: minmax(0, 1fr); gap: 19px; padding-block: 34px 40px; }
  .desktop-break { display: none; }
  .questions summary { padding-left: 14px; }
  .questions details p { padding-inline: 14px; }
  .guide-link { margin-left: 14px; }

  .contact-section { padding-block: 33px; }
  .contact-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 23px 18px; }
  .footer-inner { min-height: 0; flex-wrap: wrap; }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 28px); }
  .tab-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .tab-icon img { width: 23px; height: 23px; }
  .tab-text strong { font-size: .93rem; }
  .hero-actions .button { padding-inline: 9px; font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
