:root {
  --ink: #14261d;
  --muted: #5c6f66;
  --brand: #0f6a45;
  --brand-dark: #0b4e34;
  --brand-soft: #e7f6ee;
  --paper: #eef3f0;
  --card: #ffffff;
  --line: #d5e2db;
  --gold: #8a6410;
  --gold-soft: #fbf3dc;
  --shadow: 0 10px 28px rgba(16, 46, 32, 0.07);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--brand-dark); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -40px; background: #fff; padding: 8px 12px; z-index: 20;
}
.skip:focus { top: 8px; }
.topbar { background: linear-gradient(180deg, #0c5c3c, #0f6a45); color: #fff; }
.topbar-inner {
  max-width: 960px; margin: 0 auto; padding: 14px 16px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 750; text-decoration: none; letter-spacing: -0.01em;
}
.kicker { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 0.82rem; }
.wrap { max-width: 960px; margin: 0 auto; padding: 16px 16px 64px; }
h1 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; overflow-wrap: break-word; }
h2 { overflow-wrap: break-word; }
.lead, .muted, .meta, .rating, .reviews, .hint { color: var(--muted); }
.lead { margin: 0 0 14px; }
.crumbs { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.controls {
  position: sticky; top: 8px; z-index: 4;
  display: grid; gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
}
.loc-row { display: grid; gap: 8px; }
.field { display: grid; gap: 4px; font-size: 0.75rem; font-weight: 750; color: var(--muted); letter-spacing: 0.02em; }
.combo { position: relative; display: block; }
.combo input, .search input, .sheet input[type="search"] {
  width: 100%; min-height: 48px; padding: 10px 40px 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 1rem; font-weight: 550; color: var(--ink);
}
.search input { padding-left: 40px; }
.combo-list {
  display: none; position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 260px; overflow: auto; margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.combo:focus-within .combo-list { display: block; }
.combo-list [role="option"] a, .combo-list [role="option"] button {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 12px;
  border: 0; border-radius: 8px; background: transparent; text-align: left;
  text-decoration: none; color: inherit; font-weight: 600;
}
.combo-list [role="option"].is-active a,
.combo-list [role="option"].is-active button,
.combo-list [role="option"] a:hover,
.combo-list [role="option"] button:hover { background: var(--brand-soft); }
.clear {
  position: absolute; right: 8px; top: 10px; width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.search { position: relative; display: block; }
.search .ico { position: absolute; left: 12px; top: 14px; color: var(--muted); pointer-events: none; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; }
.icon-btn, .tool, .car-btn {
  display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--brand-dark); cursor: pointer;
}
.icon-btn {
  position: relative; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); border-color: transparent;
}
.icon-btn.is-on { background: var(--brand); color: #fff; }
.count-dot {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: #9f2d2d; color: #fff; font-size: 10px; font-weight: 750;
  display: grid; place-items: center;
}
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills:empty { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px;
  border-radius: 999px; border: 1px solid transparent; background: var(--brand-soft); color: var(--brand-dark);
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.count { margin: 12px 0; font-weight: 650; }
.list { display: grid; gap: 10px; }
.card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  box-shadow: var(--shadow); content-visibility: auto; contain-intrinsic-size: auto 132px;
}
.card-link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; min-width: 0;
  text-decoration: none; color: inherit;
}
.card h2 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.card h2:hover { color: var(--brand); }
.card .meta, .card .rating { margin: 2px 0 0; font-size: 0.86rem; }
.clamp {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.avatar {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: hsl(var(--hue), 42%, 92%); color: hsl(var(--hue), 45%, 24%);
  font-weight: 750; font-size: 0.82rem; overflow: hidden;
}
.avatar.sm { width: 36px; height: 36px; border-radius: 12px; font-size: 0.72rem; }
.avatar.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 1rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-tools { display: grid; gap: 6px; }
.tool { width: 40px; height: 40px; border-radius: 12px; text-decoration: none; }
.tool:hover, .icon-btn:hover { border-color: var(--brand); }
.badges, .actions, .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.badges { grid-column: 1 / -1; }
.badge, .chips li {
  display: inline-flex; align-items: center; min-height: 26px; padding: 2px 8px;
  border-radius: 999px; background: #f3f6f4; color: var(--ink); font-size: 0.78rem; font-weight: 700;
}
.badge.is-ppn, .chips li { background: var(--brand-soft); color: var(--brand-dark); }
.badge.is-cash { background: #e7f2f4; color: #0d5c66; }
.badge.is-concierge { background: var(--gold-soft); color: var(--gold); }
.badge.is-ayush { background: #f3eee4; color: #6d4e16; }
.chips { margin: 0; padding: 0; list-style: none; }
.chips .is-best { background: var(--gold-soft); color: var(--gold); }
.near { margin: 4px 0 0; color: var(--brand-dark); font-size: 0.8rem; font-weight: 750; }
.status-warning {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid #e6c98a;
  border-radius: 12px;
  background: #fff6e8;
  color: #6a4b08;
}
.empty {
  background: var(--card); border: 1px dashed var(--line); border-radius: 16px; padding: 18px;
}
.sheet[hidden] { display: none !important; }
.sheet {
  position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 28, 20, 0.46); padding: 12px;
}
.sheet-panel {
  width: min(560px, 100%); max-height: min(88vh, 760px); display: flex; flex-direction: column;
  background: #fff; border-radius: 20px 20px 14px 14px; padding: 8px 16px 16px;
  box-shadow: var(--shadow);
}
.sheet-head, .title-row, .people li { display: flex; align-items: center; gap: 10px; }
.sheet-head { justify-content: space-between; min-height: 48px; }
.sheet-head h2, .panel h2 { font-size: 1rem; margin: 0; }
.sheet-body { overflow: auto; min-height: 0; flex: 1 1 auto; display: grid; gap: 16px; padding-bottom: 12px; }
.icon-text { border: 0; background: transparent; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.stack { display: grid; gap: 8px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
legend { font-weight: 750; padding: 0; }
.choice, .switch {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 0.95rem; font-weight: 650; color: var(--ink);
}
.choice:has(input:checked), .switch:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.primary, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 0;
  background: var(--brand); color: #fff; font-weight: 750; text-decoration: none; cursor: pointer;
}
.primary { width: 100%; min-height: 48px; }
.btn.ghost { background: var(--brand-soft); color: var(--brand-dark); }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.detail { display: flex; flex-direction: column; gap: 12px; }
.detail-main, .detail-side { display: contents; }
.carousel { order: 1; }
.title-block { order: 2; }
#contact { order: 3; }
#specialities { order: 4; }
#map { order: 5; }
#emergency { order: 6; }
#doctors { order: 7; }
#ambulance { order: 8; }
#appointment { order: 9; }
#record { order: 10; }
#reviews { order: 11; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  box-shadow: var(--shadow); display: grid; gap: 8px;
}
.panel h2 { display: flex; align-items: center; gap: 8px; }
.panel h2 .ico { color: var(--brand); }
.title-block h1 { margin: 0; }
.carousel {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 176px; background: #0f6a45;
}
.slide { display: none; min-height: 176px; padding: 20px 52px 32px; align-content: end; color: #fff; }
.carousel:not(.is-ready) .slide:first-child { display: grid; }
.carousel.is-ready .slide.is-on { display: grid; }
.tone-a { background: linear-gradient(145deg, #083d2b, #128055 58%, #c4a35a); }
.tone-b { background: linear-gradient(160deg, #12324a, #1d7a8c); }
.tone-c { background: linear-gradient(160deg, #3d2a12, #8a6410); }
.slide-mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.18); font-weight: 750; font-size: 1rem;
}
.slide-title { margin: 10px 0 0; font-size: 1.35rem; font-weight: 750; letter-spacing: -0.02em; }
.slide p { margin: 2px 0; }
.slide.is-photo { padding: 0; }
.slide.is-photo img { width: 100%; height: 176px; object-fit: cover; display: block; }
.car-btn {
  position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 999px; background: rgba(255, 255, 255, 0.92);
}
.car-prev { left: 8px; }
.car-next { right: 8px; }
.car-prev .ico { transform: rotate(180deg); }
.dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.55); cursor: pointer; }
.dot.is-on { width: 18px; background: #fff; }
.map-link {
  display: grid; gap: 12px; min-height: 168px; padding: 16px; border-radius: 16px;
  text-decoration: none; color: var(--ink); align-content: space-between;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.55), transparent 26%),
    linear-gradient(180deg, rgba(15, 106, 69, 0.05), rgba(15, 106, 69, 0.18)),
    repeating-linear-gradient(0deg, transparent, transparent 17px, rgba(15, 106, 69, 0.14) 18px),
    repeating-linear-gradient(90deg, transparent, transparent 17px, rgba(15, 106, 69, 0.14) 18px),
    #e7f3ec;
}
.map-link:hover { border: 1px solid var(--brand); }
.map-pin {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; justify-self: center;
  background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(15, 106, 69, 0.28);
}
.map-copy { display: grid; gap: 2px; background: rgba(255, 255, 255, 0.94); border-radius: 12px; padding: 8px 10px; }
.map-copy span { color: var(--muted); font-size: 0.82rem; font-weight: 550; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; }
.facts div { min-width: 0; }
.facts .span-2 { grid-column: 1 / -1; }
.facts dt { margin: 0; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.people li span { display: block; }
.foot { margin-top: 28px; color: var(--muted); font-size: 0.88rem; }
.foot a { color: var(--muted); }
[hidden] { display: none !important; }
body.sheet-open { overflow: hidden; }
input[type="search"]::-webkit-search-cancel-button { appearance: none; }
@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 2px; }
  .facts { grid-template-columns: 1fr; }
  .facts .span-2 { grid-column: auto; }
}
@media (min-width: 720px) {
  .loc-row { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.9rem; }
}
@media (min-width: 800px) {
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 20px; }
}
@media (min-width: 880px) {
  .detail { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr); gap: 16px; align-items: start; }
  .detail-main, .detail-side { display: grid; gap: 12px; align-content: start; }
  .detail-side { position: sticky; top: 12px; }
  .carousel, .title-block, .panel { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
