@font-face {
  font-family: 'Noto Sans Thai';
  src: url('/assets/fonts/noto-sans-thai-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --jade: #138b78;
  --jade-dark: #076958;
  --ink: #29253e;
  --muted: #70747b;
  --line: #e8eceb;
  --paper: #ffffff;
  --soft: #f4f8f6;
  --radius: 20px;
  color-scheme: light;
  font-family: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; font-size: 15px; line-height: 1.8; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--jade-dark); }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.03em; line-height: 1.35; }
h1 { font-size: clamp(30px, 4vw, 52px); }
h2 { font-size: clamp(23px, 2.5vw, 32px); }
h3 { font-size: 19px; }
p + p { margin-top: 15px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #c08c54; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.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: fixed; top: -100px; left: 16px; z-index: 200; padding: 10px 20px; background: var(--jade-dark); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: var(--jade-dark); font-weight: 600; }
.muted { color: var(--muted); font-size: 13px; }
.lead { font-size: 17px; line-height: 1.95; }
.long-copy { white-space: pre-line; overflow-wrap: anywhere; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border-radius: 10px; padding: 13px 22px; font-size: 14px; font-weight: 600; border: 1px solid transparent; min-height: 48px; line-height: 1.6; transition: background .18s ease, transform .18s ease; }
.button-primary { color: #fff; background: var(--jade); }
.button-primary:hover { color: #fff; background: var(--jade-dark); }
.button-secondary { color: var(--jade-dark); background: #fff; border-color: #cbded7; }
.button-secondary:hover { background: var(--soft); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--jade-dark); font-size: 13px; font-weight: 650; }
.image-placeholder { display: flex; justify-content: center; align-items: center; text-align: center; color: #6d8078; background: linear-gradient(135deg, #edf4ef, #f8f9f7); padding: 12px; font-size: 11px; }

/* Brand navigation remains compact on mobile, with real language and currency controls. */
#site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 90px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; }
.brand-wordmark { width: 183px; height: 55px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 28px; margin-left: auto; font-size: 13px; }
.primary-nav a { padding-block: 25px; white-space: nowrap; }
.primary-nav a[aria-current='page'] { color: var(--jade-dark); }
.preferences { display: flex; gap: 8px; }
.preferences select { width: 92px; max-width: 110px; padding: 8px 18px 8px 9px; color: #48504e; border: 1px solid #e4eae6; background: #fff; border-radius: 8px; font-size: 12px; min-height: 40px; }
.preferences label:last-child select { width: 76px; }
.menu-toggle { display: none; border: 0; background: var(--soft); width: 40px; height: 40px; border-radius: 9px; padding: 0; font-size: 18px; }
.data-notice { margin-top: 16px; color: #65766d; background: #f5f8f5; border: 1px solid #e9eeea; border-radius: 10px; padding: 9px 14px; font-size: 11px; line-height: 1.8; }

/* Photography, calm editorial copy and a restrained autoplay story. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 440px; margin-block: 26px 18px; border-radius: 18px; background: #126b73; color: #fff; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 27%; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #0d4f60c9 0%, #105c6c91 38%, #14515a08 65%); }
.hero-copy { position: relative; width: 51%; padding: 40px 38px 44px; }
.hero .eyebrow { color: #e7f7f6; font-size: 10px; }
.hero h1 { white-space: pre-line; margin: 14px 0 18px; font-weight: 650; font-size: clamp(35px, 3.8vw, 48px); line-height: 1.4; }
.hero-intro { font-size: 14px; color: #effbfc; max-width: 420px; margin-bottom: 24px; line-height: 1.95; }
.hero .button-secondary { border-color: #ffffffb0; background: #ffffffed; color: #155e65; }
.hero .button-secondary:hover { background: #fff; color: #0b4850; }
.hero-disclosure { position: absolute; right: 14px; bottom: 12px; margin: 0; padding: 3px 7px; border-radius: 4px; color: #fff; background: #063e4d9c; font-size: 9px; line-height: 1.5; }
.hospital-tour { padding-block: 8px 32px; }
.hospital-tour .section-heading { margin-bottom: 17px; }
.hospital-tour .section-heading h2 { margin-top: 0; }
.tour-intro { color: var(--muted); font-size: 13px; margin-top: 9px; }
.hospital-tour .story-viewport { aspect-ratio: 2.25; }
.story-carousel { position: relative; min-width: 0; border-radius: 24px; overflow: hidden; background: var(--soft); }
.story-viewport { position: relative; aspect-ratio: 1.18; }
.story-slide { width: 100%; height: 100%; position: absolute; inset: 0; }
.story-photo { width: 100%; height: 100%; object-fit: cover; }
.story-slide::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, #122824c9, transparent); pointer-events: none; }
.story-caption { position: absolute; bottom: 76px; left: 30px; right: 30px; z-index: 2; color: #fff; }
.story-caption h2 { margin: 5px 0 12px; font-size: clamp(22px, 2.4vw, 31px); }
.story-location { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; opacity: .9; }
.story-link { display: inline-flex; font-size: 12px; border-bottom: 1px solid #ffffff90; padding-bottom: 2px; color: #fff; }
.story-link:hover { color: #fff; }
.story-controls { position: absolute; bottom: 16px; left: 24px; right: 18px; display: flex; align-items: center; gap: 7px; z-index: 3; color: #fff; }
.story-dots { display: flex; gap: 5px; align-items: center; margin-right: auto; }
.story-dots button { width: 18px; height: 32px; padding: 0; background: transparent; border: 0; position: relative; }
.story-dots button::before { content: ''; position: absolute; left: 5px; top: 13px; border-radius: 5px; width: 6px; height: 6px; background: #ffffff80; }
.story-dots button[aria-pressed='true']::before { background: #fff; width: 12px; left: 2px; }
.story-counter { font-size: 11px; margin-right: 5px; }
.round-control { display: inline-flex; justify-content: center; align-items: center; width: 35px; height: 35px; border: 1px solid #ffffff55; color: #fff; background: #ffffff18; border-radius: 50%; padding: 0; font-size: 13px; }
.round-control:hover { background: #ffffff30; }
.page-heading { padding-top: 45px; padding-bottom: 24px; }
.page-heading h1 { margin: 12px 0 14px; }
.page-heading > p:last-child { max-width: 700px; color: var(--muted); }
.discovery { padding-top: 15px; }
.search-form { display: flex; gap: 8px; align-items: center; background: #f2f5f4; border: 1px solid #e9eeeb; padding: 7px 8px 7px 19px; border-radius: 14px; }
.search-icon { color: var(--jade-dark); font-size: 27px; line-height: 1; }
.search-form input { min-width: 0; flex: 1; width: 100%; color: var(--ink); background: transparent; border: 0; padding: 10px; outline-offset: -2px; font-size: 14px; }
.search-form input::placeholder { color: #8b9294; }
.search-form .button { min-height: 42px; padding: 10px 24px; }
.category-list { display: flex; gap: 14px; padding: 23px 0 29px; overflow-x: auto; scrollbar-width: thin; }
.category-button { min-width: 94px; border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.category-icon { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e5ece7; border-radius: 17px; font-size: 30px; line-height: 1; color: #4b7e70; background: #f9fbfa; transition: background .2s; }
.category-button[aria-pressed='true'] { color: var(--jade-dark); font-weight: 650; }
.category-button[aria-pressed='true'] .category-icon { background: #e6f4ed; border-color: #accec0; color: var(--jade-dark); }
.category-button:hover .category-icon { background: #edf5f0; }

/* Three facility photographs always share one horizontal row. */
.catalog-section { padding-top: 12px; padding-bottom: 48px; scroll-margin-top: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin-top: 7px; }
.section-heading .text-link { white-space: nowrap; padding-bottom: 4px; }
.hospital-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.hospital-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; min-width: 0; }
.hospital-card:hover { box-shadow: 0 10px 34px #15362a0c; transform: translateY(-2px); }
.card-photo-link { display: block; }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.photo-slot { width: 100%; height: 100%; aspect-ratio: 1.12; object-fit: cover; min-width: 0; }
.photo-row > .image-placeholder { aspect-ratio: 1.12; line-height: 1.6; }
.card-body { padding: 22px; }
.card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.hospital-logo { flex-shrink: 0; width: 48px; height: 48px; object-fit: contain; border: 1px solid #eef0ee; border-radius: 12px; background: #fff; padding: 4px; }
.hospital-initial { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; background: var(--soft); border-radius: 12px; font-family: Georgia, serif; font-size: 24px; color: var(--jade-dark); }
.card-heading .eyebrow { font-size: 10px; margin-bottom: 4px; }
.card-heading h3 { font-size: 19px; }
.card-summary { font-size: 13px; color: #70757a; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.8em; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 18px; }
.tags > * { font-size: 11px; color: #648073; background: #f1f7f3; padding: 4px 9px; border-radius: 5px; line-height: 1.5; }
.card-body > .text-link { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid #eff2ef; }
.empty-state { padding-block: 70px; text-align: center; min-height: 300px; }
.empty-state p { margin: 16px 0 22px; color: var(--muted); }
.empty-state .button { margin: 12px; }
.empty-state > a:not(.button) { display: block; color: var(--jade-dark); margin-top: 20px; }
.empty-state h1 { font-size: 26px; max-width: 720px; margin-inline: auto; }
.loading-message { padding-block: 24px; color: var(--muted); }
.currency-tool { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; padding: 30px 36px; margin-bottom: 55px; border-radius: 18px; background: var(--soft); }
.currency-tool h2 { font-size: 23px; margin: 7px 0 10px; }
.currency-tool p { font-size: 13px; color: var(--muted); }
.currency-tool label { display: block; font-size: 12px; margin-bottom: 7px; }
.currency-tool input { width: 100%; min-height: 48px; border: 1px solid #dce7df; border-radius: 8px; background: #fff; padding: 10px 14px; }
.conversion-result { padding-top: 12px; }
.price-block { display: flex; flex-direction: column; gap: 4px; }
.price { font-size: 19px; font-weight: 650; color: var(--jade-dark); }
.price-note { display: block; font-size: 11px; color: #78837a; line-height: 1.7; }
.price-original { font-size: 12px; color: #7b827e; }

/* Hospital detail pages share the same real data source as the catalog. */
.profile-wrap { padding-top: 27px; padding-bottom: 55px; }
.back-link { display: inline-flex; color: #658074; font-size: 12px; margin-bottom: 23px; }
.profile-heading { display: flex; gap: 23px; align-items: center; margin-bottom: 26px; }
.profile-logo { width: 80px; height: 80px; object-fit: contain; padding: 9px; border: 1px solid var(--line); border-radius: 16px; flex-shrink: 0; }
.profile-heading h1 { font-size: clamp(28px, 3vw, 40px); margin: 8px 0; }
.profile-heading .tags { margin: 9px 0 0; }
.profile-heading > .button { margin-left: auto; max-width: 240px; }
.profile-gallery { border-radius: 20px; overflow: hidden; }
.profile-gallery .photo-row { gap: 6px; }
.profile-gallery .photo-slot { aspect-ratio: 1.25; }
.photo-button { border: 0; padding: 0; background: var(--soft); min-width: 0; }
.profile-tabs { display: flex; gap: 34px; border-bottom: 1px solid var(--line); margin-top: 26px; overflow-x: auto; }
.profile-tabs a { padding: 16px 0; white-space: nowrap; font-size: 14px; }
.profile-tabs a:hover { box-shadow: inset 0 -2px var(--jade); }
.profile-content { max-width: 1020px; margin-inline: auto; }
.profile-section { padding-top: 40px; padding-bottom: 35px; border-bottom: 1px solid var(--line); scroll-margin-top: 25px; }
.profile-section > h2 { margin-bottom: 23px; }
.profile-section > p { max-width: 940px; }
.profile-section > .long-copy { margin-top: 18px; color: #646970; }
.service-list { display: grid; gap: 12px; margin-bottom: 20px; }
.service-card { display: grid; grid-template-columns: 1fr 210px; gap: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.service-card h3 { margin-bottom: 10px; font-size: 17px; }
.service-card p { color: #6e7478; font-size: 13px; }
.service-card .price-block { border-left: 1px solid var(--line); padding-left: 24px; justify-content: center; }
.doctor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.doctor-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.doctor-photo { width: 100%; aspect-ratio: .95; object-fit: cover; object-position: center top; }
.doctor-copy { padding: 20px; font-size: 12px; }
.doctor-copy h3 { font-size: 18px; margin-bottom: 7px; }
.doctor-specialty { color: var(--jade-dark); }
.doctor-copy > .long-copy { margin-top: 13px; color: #72767c; }
.doctor-copy details { margin-top: 15px; }
.doctor-copy summary { cursor: pointer; color: var(--jade-dark); }
.doctor-copy details p { margin-top: 10px; }
.location-section p { margin-bottom: 14px; color: #69716e; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.image-dialog { width: min(1000px, calc(100% - 30px)); max-height: 92vh; padding: 20px; border: 0; border-radius: 15px; background: #fff; color: var(--ink); }
.image-dialog::backdrop { background: #102920c9; }
.image-dialog p { font-size: 12px; padding: 12px 4px 0; }
.dialog-image { max-height: 78vh; object-fit: contain; margin-inline: auto; }
.dialog-close { position: absolute; z-index: 2; right: 27px; top: 27px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ddd; background: #fff; font-size: 25px; }

/* Requests contain contact details only; the website never pretends a slot is confirmed. */
.consult-wrap { max-width: 900px; padding-bottom: 65px; }
.inquiry-form { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: block; min-width: 0; }
.form-field > span { display: block; margin-bottom: 8px; font-size: 13px; color: #505954; }
.form-field input, .form-field select { display: block; width: 100%; min-height: 49px; border: 1px solid #dce4df; background: #fff; padding: 10px 13px; border-radius: 8px; font-size: 15px; color: var(--ink); }
.form-field input:focus, .form-field select:focus { border-color: var(--jade); }
.inquiry-form > .muted { margin-top: 14px; }
.consent-label { display: flex; align-items: start; gap: 11px; margin: 25px 0 15px; font-size: 12px; }
.consent-label input { margin-top: 5px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--jade); }
.consent-label a { text-decoration: underline; color: var(--jade-dark); }
.medical-notice { padding: 13px 15px; background: #fbf7ef; color: #7f6b49; font-size: 12px; border-radius: 8px; }
.setup-notice { color: #7f6b49; font-size: 13px; margin: 18px 0; }
.security-widget { margin-block: 20px; max-width: 100%; overflow: hidden; }
#inquiry-status { font-size: 13px; color: #7a493c; margin-block: 18px; overflow-wrap: anywhere; }
#inquiry-status code { color: #355d4a; }
.success-message { color: var(--jade-dark); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { margin-top: 24px; padding: 23px 30px; background: var(--soft); border-radius: 14px; }
.contact-aside h2 { font-size: 18px; margin-bottom: 9px; }
.contact-aside a { font-size: 14px; color: var(--jade-dark); overflow-wrap: anywhere; }
.privacy-wrap { max-width: 800px; padding-block: 48px 70px; }
.privacy-wrap h1 { margin: 12px 0 20px; }
.privacy-wrap > p { margin-top: 22px; color: #656d68; }
.privacy-wrap a { color: var(--jade-dark); }

#site-footer { border-top: 1px solid var(--line); background: #fafbf9; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 80px; padding-block: 35px; }
.footer-wordmark { width: 160px; height: 47px; object-fit: contain; object-position: left center; margin-bottom: 12px; }
.footer-inner p { font-size: 11px; color: #8a928d; max-width: 600px; }
.footer-links { display: flex; flex-direction: column; justify-content: center; align-items: end; gap: 8px; font-size: 12px; color: #6c7b70; }
.footer-links span { font-size: 10px; opacity: .7; }

@media (max-width: 1000px) {
  .header-inner { gap: 18px; }
  .primary-nav { gap: 18px; font-size: 12px; }
  .brand-wordmark { width: 150px; }
  .preferences select { width: 82px; }
  .hero { min-height: 420px; }
  .hero-copy { width: 55%; padding: 35px 28px 40px; }
  .hero h1 { font-size: 39px; }
  .hero-intro { font-size: 14px; }
  .category-button { min-width: 84px; }
  .doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 77px; gap: 9px; flex-wrap: wrap; }
  .brand-wordmark { width: 140px; height: 44px; }
  .preferences { margin-left: auto; gap: 5px; }
  .preferences select { width: 76px; max-width: 86px; font-size: 10px; min-height: 36px; padding: 7px 12px 7px 6px; }
  .preferences label:last-child select { width: 63px; }
  .menu-toggle { display: inline-flex; justify-content: center; align-items: center; width: 34px; height: 36px; font-size: 16px; }
  .primary-nav { display: none; order: 4; width: 100%; margin: 0; justify-content: start; border-top: 1px solid var(--line); padding-block: 12px; gap: 20px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 5px 0; }
  .data-notice { margin-top: 12px; font-size: 10px; padding: 8px 11px; }
  .hero { display: flex; flex-direction: column; gap: 0; min-height: 0; margin-block: 18px 12px; padding: 0; border-radius: 16px; }
  .hero-media { position: relative; z-index: 0; width: 100%; height: clamp(250px, 72vw, 380px); object-position: 74% 24%; }
  .hero::after { display: none; }
  .hero-copy { width: 100%; padding: 24px 24px 28px; }
  .hero h1 { font-size: 32px; line-height: 1.4; margin: 10px 0 12px; }
  .hero-intro { max-width: 520px; font-size: 13px; margin-bottom: 18px; line-height: 1.9; }
  .hero .button { font-size: 12px; min-height: 42px; padding: 10px 18px; }
  .hero h1 br { display: none; }
  .hero-disclosure { top: 12px; bottom: auto; right: 12px; font-size: 8px; }
  .hospital-tour { padding-block: 4px 24px; }
  .hospital-tour .story-viewport { aspect-ratio: 1.25; }
  .tour-intro { font-size: 12px; }
  .story-carousel { border-radius: 20px; }
  .story-viewport { aspect-ratio: 1.25; }
  .story-caption { left: 23px; right: 23px; bottom: 68px; }
  .story-caption h2 { font-size: 25px; }
  .story-controls { left: 20px; }
  .round-control { width: 33px; height: 33px; }
  .discovery { padding-top: 13px; }
  .search-form { padding: 5px 5px 5px 12px; gap: 4px; border-radius: 12px; }
  .search-form input { padding: 9px 5px; font-size: 12px; }
  .search-form .button { font-size: 12px; min-height: 40px; padding: 8px 15px; }
  .category-list { gap: 12px; margin-right: -18px; padding: 19px 18px 22px 0; }
  .category-button { min-width: 68px; font-size: 11px; gap: 7px; }
  .category-icon { width: 55px; height: 55px; border-radius: 15px; }
  .section-heading { align-items: center; gap: 12px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading .text-link { font-size: 11px; padding: 0; }
  .catalog-section { padding-top: 10px; padding-bottom: 30px; }
  .hospital-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hospital-card { border-radius: 16px; }
  .card-body { padding: 19px; }
  .card-heading h3 { font-size: 19px; }
  .card-summary { font-size: 12px; }
  .photo-slot, .photo-row > .image-placeholder { aspect-ratio: 1.02; }
  .photo-row .image-placeholder { font-size: 9px; padding: 8px; }
  .tags { margin-block: 13px 16px; }
  .tags > * { font-size: 10px; }
  .currency-tool { grid-template-columns: 1fr; gap: 20px; padding: 23px; margin-bottom: 35px; border-radius: 16px; }
  .currency-tool h2 { font-size: 21px; }
  .page-heading { padding-top: 30px; padding-bottom: 20px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading > p:last-child { font-size: 13px; }
  .profile-wrap { padding-top: 20px; }
  .back-link { margin-bottom: 19px; }
  .profile-heading { gap: 14px; flex-wrap: wrap; }
  .profile-logo { width: 62px; height: 62px; padding: 6px; border-radius: 13px; }
  .profile-heading > div { flex: 1; min-width: 220px; }
  .profile-heading h1 { font-size: 27px; }
  .profile-heading > .button { margin-left: 0; width: 100%; max-width: none; font-size: 13px; }
  .profile-gallery { border-radius: 13px; }
  .profile-gallery .photo-row { gap: 3px; }
  .profile-gallery .photo-slot { aspect-ratio: .85; }
  .profile-tabs { margin-top: 14px; gap: 25px; }
  .profile-tabs a { font-size: 12px; padding: 13px 0; }
  .profile-section { padding-top: 29px; padding-bottom: 27px; }
  .profile-section > h2 { font-size: 25px; margin-bottom: 20px; }
  .lead { font-size: 15px; }
  .profile-section > .long-copy { font-size: 13px; }
  .service-card { grid-template-columns: 1fr; gap: 16px; padding: 19px; }
  .service-card .price-block { padding: 13px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .service-card h3 { font-size: 16px; }
  .service-card p { font-size: 12px; }
  .doctor-grid { gap: 14px; }
  .doctor-photo { aspect-ratio: .85; }
  .doctor-copy { padding: 15px; font-size: 11px; }
  .doctor-copy h3 { font-size: 16px; }
  .action-row .button { width: 100%; }
  .consult-wrap { padding-bottom: 40px; }
  .inquiry-form { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .contact-aside { padding: 22px; }
  .privacy-wrap { padding-block: 30px 45px; }
  .privacy-wrap h1 { font-size: 29px; }
  .privacy-wrap > p { font-size: 13px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 27px; }
  .footer-wordmark { width: 145px; }
  .footer-links { align-items: start; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .brand-wordmark { width: 118px; }
  .header-inner { gap: 5px; }
  .preferences select { width: 72px; }
  .preferences label:last-child select { width: 60px; }
  .hero h1 { font-size: 32px; }
  .doctor-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
