/* Tech Clinic — 홈·문제 접수 공용 스타일 */

:root {
  --navy-900: #0F2A44;
  --navy-950: #0B1F33;
  --navy-800: #1C3D5E;
  --blue-600: #1B5FAA;
  --teal-500: #0E7C86;
  --teal-700: #0E7C86;
  --teal-300: #3FB3BC;
  --teal-50: #F0F8F8;
  --error: #B42318;
  --ink: #0F1B2D;
  --muted: #5B6B7F;
  --line: #DCE4EE;
  --line-soft: #E8EDF3;
  --bg: #F4F6F9;
  --white: #FFFFFF;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;

  --container: 1240px;
  --gutter: 32px;
  --radius: 10px;
  --radius-lg: 14px;
  --section-y: 112px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: 10px 16px; border-radius: 6px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 8px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { font-size: 18px; }
.btn-primary { background: var(--navy-900); color: var(--white); }
.btn-primary:hover { background: var(--navy-800); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--navy-900);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}
.text-link:hover { color: var(--teal-700); }

/* ---------- 맨 위 안내 띠 ---------- */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.topbar-inner { padding-top: 9px; padding-bottom: 9px; }
.topbar strong { color: var(--teal-700); font-weight: 700; }
.topbar-sep { margin: 0 8px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy-900);
  flex: none;
}
.brand-mark { width: 40px; height: 40px; }
.brand-logo { display: block; height: 48px; width: auto; }
.footer-logo .brand-logo { height: 48px; }
/* 워드마크: Archivo 800 (로고 자리에만). 못 불러오면 굵은 산세리프로 대체 */
.wm {
  font-family: 'Archivo', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap;
  color: var(--navy-900);
}
.wm-accent { color: var(--teal-700); }
.brand-name { font-size: 23px; }

.site-nav { flex: 1; }
.site-nav ul { display: flex; justify-content: center; gap: 40px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: 16px; font-weight: 600; color: var(--ink);
}
.site-nav a:hover { color: var(--teal-700); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  border: 0; background: none; color: var(--navy-900); cursor: pointer; border-radius: 8px;
}
.nav-toggle .icon { font-size: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- 첫 화면 ---------- */
.hero { padding: 40px 0 88px; }
.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1240 / 520;
  background: #1a1d22;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: start;
  margin-top: 52px;
}
.hero h1, .section-title, .page-title, .cta-copy h2 { text-wrap: balance; }
.hero h1 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--navy-900);
}
.hero-lead { font-size: 18px; line-height: 1.75; color: #3E4C5E; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* ---------- 수치 네 칸 ---------- */
.stats-band { padding-bottom: 40px; }

/* ---------- 비유 줄 ---------- */
.analogy-band { border-bottom: 1px solid var(--line-soft); padding-bottom: 56px; }
.analogy {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.analogy li {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px;
  padding: 20px 28px; border-left: 1px solid var(--line);
}
.analogy li:first-child { border-left: 0; padding-left: 0; }
.an-q { font-size: 15px; color: var(--muted); }
.an-arrow { font-size: 15px; color: #8A98A9; align-self: center; }
.an-a { font-size: 18px; font-weight: 700; color: var(--navy-900); }
.analogy .is-ours { background: var(--teal-50); }
.analogy .is-ours .an-a { color: var(--teal-700); font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats > div { padding: 4px 28px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-size: 15px; color: var(--muted); }
.stats dd {
  margin-top: 6px;
  font-size: clamp(30px, 2.8vw, 40px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
  color: var(--navy-900);
}
.stats dd span { margin-left: 4px; font-size: 17px; font-weight: 700; letter-spacing: 0; }

/* ---------- 구역 공통 ---------- */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--bg); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px;
  margin-bottom: 44px;
}
.section-title {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.35; font-weight: 800; letter-spacing: -.02em;
  color: var(--navy-900);
}
.section-sub { margin-top: 10px; font-size: 17px; color: var(--muted); }
.head-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; flex: none;
  font-size: 16px; font-weight: 600; text-decoration: none; color: var(--navy-900);
}
.head-link .icon { font-size: 18px; transition: transform .15s ease; }
.head-link:hover { color: var(--teal-700); }
.head-link:hover .icon { transform: translateX(3px); }

.tag {
  font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: .01em;
  color: var(--teal-700);
}

/* ---------- 카드 ---------- */
.card-grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
}
.card .tag { margin-bottom: 12px; }
.card h3 { font-size: 20px; line-height: 1.45; font-weight: 700; letter-spacing: -.01em; color: var(--navy-900); }
.card h3 + p { margin-top: 12px; color: #4A5868; font-size: 16.5px; line-height: 1.75; }
.card-plain h3 { padding-top: 16px; border-top: 3px solid var(--teal-500); display: inline-block; }

.soon {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 28px; font-size: 16px; color: var(--muted);
}
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid #BFDFE2;
  background: var(--teal-50); color: var(--teal-700);
  font-size: 14px; font-weight: 700;
}
.note { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* ---------- 진행 절차 ---------- */
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.steps { display: grid; gap: 16px; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 30px 28px;
  border: 1px solid var(--line-soft);
}
.step .tag { margin-bottom: 6px; }
.step h3 { font-size: 20px; font-weight: 700; line-height: 1.45; color: var(--navy-900); }
.step h3 + p { margin-top: 6px; color: #4A5868; font-size: 16.5px; }
.process-media {
  position: sticky; top: calc(var(--header-h) + 24px);
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3.3;
  background: #cfd6e4;
}
.process-media img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.process-next {
  margin-top: 32px; padding: 20px 24px;
  border-left: 3px solid var(--teal-500);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px; color: var(--ink);
}

/* ---------- 기술주치의 ---------- */
.doctor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px 56px;
  align-items: start;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #173A5C 0%, var(--navy-900) 70%);
  color: var(--teal-300);
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.portrait-initial {
  position: relative;
  font-size: 84px; font-weight: 800; line-height: 1; color: var(--white);
}
.doctor-card .tag { margin-top: 18px; }
.doctor-name { margin-top: 4px; font-size: 24px; font-weight: 800; color: var(--navy-900); }
.doctor-role { margin-top: 4px; font-size: 16.5px; color: var(--muted); }

.doctor-detail { display: grid; gap: 40px; }
.detail-block { border-top: 2px solid var(--navy-900); padding-top: 22px; }
.mini-title { font-size: 18px; font-weight: 700; color: var(--navy-900); margin-bottom: 14px; }
.career li {
  position: relative; padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
}
.career li::before {
  content: ''; position: absolute; left: 2px; top: 24px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500);
}
.fields { display: flex; flex-wrap: wrap; gap: 10px; }
.fields li {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 16px; background: var(--white);
}

/* ---------- 소개 영상 ---------- */
.video-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-900);
  aspect-ratio: 640 / 268;
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: var(--navy-900); }

/* ---------- 접수 안내 띠 ---------- */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  padding: 80px 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 64px; align-items: center;
}
.cta-copy h2 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.35; font-weight: 800; letter-spacing: -.02em; }
.cta-copy > p { margin-top: 12px; color: #C9D5E3; font-size: 17px; }
.cta-info { margin-top: 28px; }
.cta-info div { display: flex; gap: 24px; font-size: 16px; }
.cta-info dt { color: #9FB0C4; min-width: 40px; }
.cta-info a { color: var(--white); text-underline-offset: 4px; }
.cta-info a:focus-visible, .site-footer a:focus-visible { outline-color: var(--teal-300); }
.cta-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px 36px 38px;
}
.cta-card-text { font-size: 18px; font-weight: 600; line-height: 1.6; color: var(--navy-900); margin-bottom: 24px; }

/* ---------- 지역 ---------- */
.region { background: var(--bg); padding: 36px 0; }
.region-inner { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.region .icon { font-size: 22px; color: var(--teal-700); }
.region p { font-size: 17px; font-weight: 600; color: var(--navy-900); }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--navy-950);
  color: #B7C4D4;
  padding: 64px 0 40px;
  font-size: 15px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.footer-logo .brand-mark { width: 40px; height: 40px; }
.footer-logo .wm { font-size: 23px; color: var(--white); }
.footer-logo .wm-accent { color: var(--teal-300); }
.footer-title { margin-top: 18px; font-size: 17px; font-weight: 700; color: var(--white); }
.footer-brand p + p:not(.footer-title) { margin-top: 6px; }
.site-footer a { color: #E2E9F2; text-underline-offset: 4px; }
.footer-nav-title { font-size: 14px; color: #8EA0B6; margin-bottom: 8px; }
.footer-nav ul { display: grid; gap: 2px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer-nav a:hover { color: var(--teal-300); text-decoration: underline; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 14px; color: #9FB0C4;
}
.footer-operator { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.operator-logo { display: block; height: 40px; width: auto; }

/* ---------- 문제 접수 페이지 ---------- */
.section-contact { padding-top: 72px; background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head form" "aside form";
  grid-template-rows: auto 1fr;
  column-gap: 72px; align-items: start;
}
.contact-head { grid-area: head; }
.contact-form { grid-area: form; }
.contact-aside { grid-area: aside; }
.page-title {
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.32; font-weight: 800; letter-spacing: -.025em;
  color: var(--navy-900);
}
.intro-block { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--navy-900); }
.mini-steps { display: grid; gap: 4px; margin-bottom: 8px; }
.mini-steps li {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 600; color: var(--navy-900);
}
.mini-num {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-700);
  font-size: 14px; font-weight: 800;
}
.intro-info { margin-top: 28px; }
.intro-info div { display: flex; gap: 20px; font-size: 16px; }
.intro-info dt { color: var(--muted); }
.intro-info a { color: var(--navy-900); font-weight: 600; text-underline-offset: 4px; }
.intro-region { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 16px; color: var(--muted); }
.intro-region .icon { font-size: 20px; color: var(--teal-700); margin-top: 4px; }

/* 폼 */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-legend-note { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.req { color: var(--error); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: 15px; }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field > label, .field legend {
  display: block; margin-bottom: 8px; padding: 0;
  font-size: 16px; font-weight: 700; color: var(--navy-900);
}
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #B9C6D6; border-radius: 8px;
  font: inherit; font-size: 17px; color: var(--ink); background: var(--white);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--blue-600); }
.field [aria-invalid="true"], fieldset[aria-invalid="true"] .choice span { border-color: var(--error); }
.field-hint { margin: -2px 0 8px; font-size: 15px; color: var(--muted); }
.field-error {
  margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--error);
}
.field-error::before { content: '! '; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
  border: 1px solid #B9C6D6; border-radius: 999px;
  font-size: 16px; background: var(--white);
}
.choice input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--blue-600); outline-offset: 2px; }

.consent { padding: 18px 20px; background: var(--bg); border-radius: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--navy-900); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--navy-900); flex: none; }
.consent-detail { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

.form-status {
  margin-top: 20px; padding: 18px 20px; border-radius: 8px; font-size: 16px;
}
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--blue-600); }
.form-status .status-title { font-weight: 700; }
.form-status p + p { margin-top: 6px; }
.form-status a { color: inherit; font-weight: 600; text-underline-offset: 3px; word-break: break-all; }
.form-status.is-success { background: var(--teal-50); color: #075F57; border: 1px solid #A7DDD6; }
.form-status.is-info { background: #EAF1FA; color: var(--navy-900); border: 1px solid #C3D5EC; }
.form-status.is-error { background: #FDF0EF; color: var(--error); border: 1px solid #F1C3BF; }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .site-nav ul { gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --section-y: 88px; --gutter: 24px; --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(10, 37, 64, .08);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav a { display: flex; min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .site-nav li:last-child a { border-bottom: 0; }
  .header-inner { position: relative; }
  .site-nav ul { padding-left: 0; padding-right: 0; }
  .site-nav { padding: 0 var(--gutter); }

  .hero-body { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: 1fr; }
  .process-media { position: static; order: -1; aspect-ratio: 16 / 8; }
  .doctor-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 36px; }
  .cta-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; grid-template-areas: "head" "form" "aside"; grid-template-rows: none; row-gap: 32px; }
  .intro-block { margin-top: 8px; }
}

@media (max-width: 720px) {
  :root { --section-y: 72px; --gutter: 20px; }
  .topbar { font-size: 13px; }
  .hero { padding: 20px 0 64px; }
  .hero-media { aspect-ratio: 16 / 9; border-radius: var(--radius); }
  .hero-lead { font-size: 17px; }
  .stats-band { padding-bottom: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stats > div { padding: 0 20px; }
  .stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .analogy-band { padding-bottom: 40px; }
  .analogy { grid-template-columns: repeat(2, 1fr); }
  .analogy li { padding: 16px 14px; flex-direction: column; align-items: flex-start; row-gap: 2px; }
  .analogy li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .analogy li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .an-arrow { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 24px 22px 26px; }
  .step { padding: 22px 22px 24px; }
  .process-media { aspect-ratio: 16 / 9; }
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-card { display: grid; grid-template-columns: 120px 1fr; column-gap: 20px; align-items: center; }
  .doctor-card .portrait { grid-row: span 3; aspect-ratio: 1 / 1.15; }
  .doctor-card .tag { margin-top: 0; align-self: end; }
  .doctor-role { align-self: start; }
  .portrait-initial { font-size: 48px; }
  .cta-band { padding: 64px 0; }
  .cta-card { padding: 28px 24px; }
  .cta-card .btn { width: 100%; }
  .section-contact { padding-top: 48px; }
  .contact-form { padding: 28px 20px; border-radius: var(--radius); }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 20px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-logo { height: 40px; }
  .btn-sm { padding: 0 14px; font-size: 14.5px; }
  .header-inner { gap: 10px; }
  .topbar-sep { margin: 0 6px; }
  .btn-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
