:root {
  --ink: #202124;
  --ink-soft: #3c4043;
  --muted: #5f6368;
  --line: #e8eaed;
  --surface: #ffffff;
  --bg: #f8f9fa;
  --accent: #9a4d56;
  --accent-deep: #7a3640;
  --accent-soft: #f6eef0;
  --shadow-sm: 0 1px 2px rgba(32,33,36,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Google Sans Display', 'Google Sans Text', system-ui, sans-serif;
  --font-text: 'Google Sans Text', 'Google Sans Display', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-text);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.555;
  letter-spacing: normal;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  border-radius: 999px; font-weight: 500; font-size: 16px;
  transition: background 0.2s, transform 0.2s, color 0.2s; border: none; cursor: pointer;
  font-family: var(--font-text);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); }

.page-strip {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-strip .eyebrow {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-strip h1,
.page-hero h1,
.about-treatments h2,
.category-label h2,
.detail-content h2,
.cta-banner h2,
.no-results h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-strip h1 {
  font-size: clamp(48px, 7vw, 60px);
  line-height: 1.2;
  color: #000;
  margin-bottom: 16px;
}

.page-strip p {
  font-family: var(--font-text);
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.555;
  max-width: 640px;
}

.breadcrumb {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 16px; font-weight: 400; color: var(--muted); margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent); }

.search-bar {
  padding: 14px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 72px; z-index: 900;
}
.search-wrap { max-width: 720px; }
.search-wrap label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.search-input-row {
  display: flex; align-items: center;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s; overflow: hidden;
}
.search-input-row:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154,77,86,0.12); background: var(--surface);
}
.search-input-row svg { margin-left: 14px; flex-shrink: 0; color: var(--muted); width: 18px; height: 18px; }
#treatmentSearch {
  flex: 1; border: none; outline: none; padding: 12px 14px;
  font-size: 16px; font-weight: 400; font-family: inherit; color: var(--ink); background: transparent;
}
#treatmentSearch::placeholder { color: #9aa0a6; font-weight: 400; }
.search-clear {
  background: none; border: none; padding: 10px 14px; cursor: pointer;
  color: var(--muted); font-size: 20px; font-weight: 400; display: none;
}
.search-clear.visible { display: block; }
.search-meta {
  margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--muted);
}
.search-meta:empty { display: none; }

.treatments-section { padding: 16px 0 40px; }
.directory {
  display: flex; flex-direction: column; gap: 8px;
}
.category-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: #ffffff;
}
.category-block.hidden { display: none; }
.category-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(32,33,36,0.08);
}
.category-solo .category-label {
  margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}

.category-label h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.25;
  color: #000;
  letter-spacing: -0.3px;
}

.category-label h2 a:hover { color: var(--accent); }

.category-link {
  font-size: 14px; font-weight: 400; color: var(--accent-deep); white-space: nowrap;
}
.category-link:hover { text-decoration: underline; }

.treatment-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
}
.treatment-list a,
.treatment-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  border-radius: 6px;
  background: #f7f3f4;
  border: 1px solid rgba(32,33,36,0.06);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.35;
}
.treatment-list a:hover,
.treatment-link:hover {
  background: var(--accent-soft); color: var(--accent-deep); border-color: #e0b8bd;
}
.treatment-list a svg,
.treatment-link svg { flex-shrink: 0; color: var(--muted); opacity: 0.7; width: 16px; height: 16px; }
.treatment-list a:hover svg,
.treatment-link:hover svg { color: var(--accent); opacity: 1; }
.treatment-link.hidden,
.treatment-list li.hidden { display: none; }
.category-solo .treatment-list { display: none; }

.no-results {
  display: none; text-align: center; padding: 56px 24px; color: var(--muted);
}
.no-results.visible { display: block; }
.no-results h3 {
  color: #000; margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.25;
}
.no-results p { font-size: 18px; font-weight: 400; }

.about-treatments {
  padding: 48px 0 56px;
  background: #202124;
  color: rgba(255,255,255,0.88);
}
.about-treatments .container { max-width: 800px; }
.about-treatments .eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: #d4a0a6; margin-bottom: 12px;
}
.about-treatments h2 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.25;
  color: #fff;
  margin-bottom: 14px;
}
.about-treatments p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin-bottom: 10px;
}
.about-treatments .notice {
  margin-top: 20px; padding: 14px 16px; border-left: 3px solid #d4a0a6;
  background: rgba(255,255,255,0.06); font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.85);
}
.about-treatments .btn-primary {
  margin-top: 20px; background: #fff; color: var(--ink); font-weight: 500;
}
.about-treatments .btn-primary:hover { background: var(--accent-soft); color: var(--accent-deep); }

.page-hero {
  background: #202124;
  position: relative; padding: 80px 0 88px; text-align: left;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(48px, 7vw, 60px);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
  max-width: 860px;
}
.page-hero p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.555;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
}
.page-hero .breadcrumb { color: rgba(255,255,255,0.55); margin-bottom: 24px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-hero .breadcrumb a:hover { color: #fff; }

.medical-notice {
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 18px 22px; border-radius: var(--radius);
  font-size: 16px; font-weight: 400; line-height: 1.55;
  max-width: 900px; margin: 28px auto 0; border: 1px solid #e8d0d3;
}
.medical-notice svg { vertical-align: middle; margin-right: 8px; }

.detail-section { padding: 56px 0 88px; }
.detail-content {
  max-width: 760px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 44px;
  box-shadow: var(--shadow-sm);
}
.detail-content h2 {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.25;
  color: #000;
  margin-bottom: 20px;
}
.detail-content p {
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.555;
  margin-bottom: 16px;
}

.detail-figure {
  margin: 8px 0 24px;
}

.detail-figure img,
.detail-figure video {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0b1f2c;
  display: block;
}

.detail-figure video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.detail-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0b1f2c;
}

.detail-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.detail-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.detail-content ul {
  margin: 0 0 20px 22px;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 400;
}
.detail-content li { margin-bottom: 10px; line-height: 1.555; }
.detail-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 500;
  font-size: 14px; padding: 8px 14px; border-radius: 999px; margin-bottom: 22px;
}
.related-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.related-list a {
  padding: 10px 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 16px; font-weight: 400; color: var(--ink);
}
.related-list a:hover { border-color: #d0a3a8; background: var(--accent-soft); color: var(--accent-deep); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.cta-banner {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 48px 32px; text-align: center; margin-top: 12px;
}
.cta-banner h2 {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.25;
  margin-bottom: 12px;
  color: #000;
}
.cta-banner p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.555;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 24px;
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .search-bar { top: 64px; padding: 12px 0; }
  .treatment-list { grid-template-columns: 1fr; }
  .detail-content { padding: 28px 20px; }
  .page-hero { padding: 56px 0 64px; }
  .category-block { padding: 12px 14px; }
  .page-strip { padding: 32px 0 20px; }
  .treatments-section { padding: 12px 0 32px; }
  .page-strip p,
  .about-treatments p,
  .detail-content p,
  .page-hero p { font-size: 16px; }
}
