
/* Layout: blunt rectangles from the EM mark — a burgundy slab in the hero, square corners, hairline grids; one big burgundy WhatsApp button that follows the visitor on phones. Single light theme in the clinic's colors. */
:root {
  --bg: #ffffff;
  --surface: #f7f2f2;
  --ink: #2b2d32;
  --muted: #6b676a;
  --line: #e8e1e2;
  --brand: #8b0d1b;
  --brand-dark: #6f0a15;
  --on-brand: #ffffff;
  --todo: #b25f00;
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }

.logo { display: block; background: var(--brand); -webkit-mask: url('/static/logo-mask.png') left center / contain no-repeat; mask: url('/static/logo-mask.png') left center / contain no-repeat; aspect-ratio: 1339 / 198; }
.mark { display: block; -webkit-mask: url('/static/mark-mask.png') center / contain no-repeat; mask: url('/static/mark-mask.png') center / contain no-repeat; aspect-ratio: 414 / 198; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border: 0; cursor: pointer; font: 600 0.95rem/1 var(--font-body); text-decoration: none; background: var(--brand); color: var(--on-brand); transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-xl { padding: 22px 30px; font-size: 1.15rem; gap: 14px; }
.btn-xl .ico { width: 1.6em; height: 1.6em; }
.btn-xl small { display: block; font-weight: 400; font-size: 0.8rem; opacity: .85; margin-top: 4px; }
.btn-xl span { text-align: left; line-height: 1.15; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgb(255 255 255 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.top .logo { width: 190px; flex: none; }
.nav { display: flex; gap: 22px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.top .phone { margin-left: auto; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.top .btn { padding: 11px 16px; }
@media (max-width: 960px) { .nav { display: none; } }
@media (max-width: 640px) { .top .phone { display: none; } .top .btn { margin-left: auto; } .top .logo { width: 150px; } }

/* hero */
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; padding-block: 64px 64px; align-items: stretch; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-block: 18px 22px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 34px; }
.hero .call { font-size: 0.95rem; color: var(--muted); }
.hero .call a { color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.slab { background: var(--brand); color: var(--on-brand); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-width: 0; }
.slab .mark { width: 100%; max-width: 260px; background: var(--on-brand); }
.slab dl { margin: 0; display: grid; gap: 14px; }
.slab dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: .72; }
.slab dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 40px; gap: 32px; } .btn-xl { width: 100%; } }

/* facts */
.facts { border-block: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 24px 20px 24px 0; display: grid; gap: 4px; min-width: 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact b { font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.fact span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 860px) { .facts .wrap { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { padding-left: 0; border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts .wrap { grid-template-columns: 1fr; } .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* sections */
section.block { padding-block: 84px; }
.head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: end; margin-bottom: 36px; }
.head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.head p { color: var(--muted); max-width: 36em; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; gap: 12px; } section.block { padding-block: 56px; } }

/* doctors */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.doc { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.doc .btn { margin-top: auto; }
.doc .meta { margin-bottom: 6px; }
.doc .ph { aspect-ratio: 4 / 5; background: var(--surface); display: grid; place-items: center; border-top: 4px solid var(--brand); }
.doc .ph .mark { width: 42%; background: var(--line); }
.doc h3 { font-size: 1rem; font-weight: 500; }
.doc .spec { color: var(--brand); font-weight: 600; font-size: 0.9rem; }
.doc .meta { color: var(--muted); font-size: 0.88rem; }
.doc .btn { justify-self: start; padding: 10px 14px; font-size: 0.88rem; }
@media (max-width: 960px) { .docs { grid-template-columns: repeat(2, 1fr); } }
.note { margin-top: 22px; font-size: 0.88rem; color: var(--todo); }

/* directions */
.dirs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.dir { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.dir:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.dir h3 { font-size: 1.08rem; font-weight: 500; }
.dir p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .dirs { grid-template-columns: 1fr 1fr; } .dir:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .dir:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); } }
@media (max-width: 560px) { .dirs { grid-template-columns: 1fr; } .dir:nth-child(2n) { padding-left: 0; border-left: 0; } }

.about { background: var(--surface); }
.about .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.about .text { display: grid; gap: 18px; font-size: 1.08rem; max-width: 38em; }
.about .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin-top: 10px; border: 1px solid var(--line); }
.about .pair div { background: var(--bg); padding: 22px; display: grid; gap: 6px; }
.about .pair b { font-family: var(--font-display); font-weight: 500; }
.about .pair span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 480px) { .about .pair { grid-template-columns: 1fr; } }

/* big booking band */
.book { background: var(--brand); color: var(--on-brand); }
.book .wrap { padding-block: 64px; display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: center; }
.book h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.book p { opacity: .85; margin-top: 12px; max-width: 32em; }
.book .btn { background: var(--on-brand); color: var(--brand); }
.book .btn:hover { background: #f3e6e7; }
@media (max-width: 860px) { .book .wrap { grid-template-columns: 1fr; padding-block: 48px; } }

/* contacts */
.contacts { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contacts > div { background: var(--bg); padding: 32px; min-width: 0; }
.rows { display: grid; gap: 22px; margin: 0; }
.row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
.row dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.row dd { margin: 0; font-size: 1.08rem; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.row dd a { text-decoration: none; }
.row dd a:hover { color: var(--brand); }
.row dd small { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; gap: 2px; } }
.route { display: flex; flex-direction: column; gap: 18px; justify-content: space-between; background: var(--surface) !important; }
.route h3 { font-size: 1.3rem; }
.route p { color: var(--muted); }
.route a.maplink { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.route a.maplink:hover { color: var(--brand); }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; } .contacts > div { padding: 24px; } }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 36px 44px; display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: start; }
footer .logo { width: 170px; }
footer .fine { color: var(--muted); font-size: 0.85rem; display: grid; gap: 6px; justify-items: end; text-align: right; }
footer .warn { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
footer .admin { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; } footer .fine { justify-items: start; text-align: left; } }

/* sticky booking on phones */
.sticky-book { display: none; }
@media (max-width: 640px) {
  .sticky-book { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgb(255 255 255 / .96); border-top: 1px solid var(--line); }
  .sticky-book .btn { width: 100%; padding: 16px; font-size: 1.05rem; }
  body { padding-bottom: 80px; }
}

/* ---------- doctor cards as links ---------- */
.doc a.card-link { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.doc a.card-link:hover h3 { color: var(--brand); }
.doc .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc .ph { overflow: hidden; }
.doc .price { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- rooms ---------- */
.rooms { display: grid; gap: 40px; }
.room { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: start; border-top: 2px solid var(--ink); padding-top: 22px; }
.room h3 { font-size: 1.2rem; font-weight: 500; }
.room p { color: var(--muted); margin-top: 8px; }
.room .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.room .shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface); }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } .room .shots { grid-template-columns: 1fr 1fr; } }

/* ---------- doctor page ---------- */
.crumbs { font-size: 0.9rem; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }
.dpage { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; padding-block: 28px 84px; align-items: start; }
.dpage .ph { aspect-ratio: 4 / 5; background: var(--surface); border-top: 6px solid var(--brand); overflow: hidden; display: grid; place-items: center; }
.dpage .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dpage .ph .mark { width: 40%; background: var(--line); }
.dpage .spec { color: var(--brand); font-weight: 600; letter-spacing: .02em; }
.dpage h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-block: 10px 22px; }
.dpage .kv { display: grid; gap: 12px; margin: 0 0 28px; padding: 20px 0; border-block: 1px solid var(--line); }
.dpage .kv div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
.dpage .kv dt { font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.dpage .kv dd { margin: 0; font-weight: 500; }
.dpage h2 { font-size: 1.15rem; margin: 28px 0 12px; }
.dpage ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.dpage .bio { display: grid; gap: 12px; max-width: 40em; }
.dpage .btn-xl { margin-top: 32px; }
@media (max-width: 820px) { .dpage { grid-template-columns: 1fr; gap: 24px; } .dpage .ph { max-width: 420px; } .dpage .kv div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- login ---------- */
.login { max-width: 420px; margin: 72px auto 96px; display: grid; gap: 18px; }
.login h1 { font-size: 1.6rem; }
.login p { color: var(--muted); }
.login label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 500; }
.login input { font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.login input:focus { outline: none; border-color: var(--brand); }
.login .err { color: var(--brand); font-weight: 500; min-height: 1.4em; }

/* ---------- admin ---------- */
.adminbar { background: var(--ink); color: #fff; font-size: 0.9rem; }
.adminbar .wrap { display: flex; gap: 16px; align-items: center; padding-block: 8px; flex-wrap: wrap; }
.adminbar b { font-weight: 600; }
.adminbar button, .adminbar a { margin-left: auto; background: none; border: 1px solid rgb(255 255 255 / .4); color: #fff; font: inherit; padding: 5px 10px; cursor: pointer; text-decoration: none; }
.edit-btn { font: 500 0.8rem/1 var(--font-body); background: var(--ink); color: #fff; border: 0; padding: 8px 10px; cursor: pointer; }
.edit-btn:hover { background: var(--brand); }
.add-tile { border: 2px dashed var(--line); background: none; min-height: 160px; font: 600 0.95rem var(--font-body); color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 20px; }
.add-tile:hover { border-color: var(--brand); color: var(--brand); }
.admin-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.is-hidden { opacity: .45; }
.hidden-badge { font-size: .75rem; color: var(--brand); font-weight: 600; }
dialog.ed { border: 0; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
dialog.ed::backdrop { background: rgb(20 10 12 / .55); }
.ed form { display: grid; gap: 16px; padding: 24px; }
.ed h2 { font-size: 1.25rem; }
.ed label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; }
.ed label small { font-weight: 400; color: var(--muted); }
.ed input[type=text], .ed textarea { font: inherit; font-size: .95rem; padding: 10px 12px; border: 1.5px solid var(--line); width: 100%; }
.ed textarea { min-height: 110px; resize: vertical; }
.ed input:focus, .ed textarea:focus { outline: none; border-color: var(--brand); }
.ed .check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.ed .photos { display: flex; gap: 8px; flex-wrap: wrap; }
.ed .photos figure { margin: 0; position: relative; width: 96px; height: 120px; background: var(--surface); }
.ed .photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed .photos figure button { position: absolute; top: 4px; right: 4px; border: 0; background: rgb(0 0 0 / .65); color: #fff; width: 24px; height: 24px; cursor: pointer; }
.ed .upl { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 120px; border: 2px dashed var(--line); color: var(--muted); cursor: pointer; font-size: .8rem; text-align: center; padding: 6px; }
.ed .upl:hover { border-color: var(--brand); color: var(--brand); }
.ed .upl input { display: none; }
.ed .row-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.ed .row-btns .del { margin-left: auto; background: none; border: 0; color: var(--brand); font: 500 .9rem var(--font-body); cursor: pointer; }
.ed .msg { color: var(--brand); font-size: .9rem; min-height: 1.2em; }

/* ---------- Instagram news ---------- */
.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
@media (max-width: 960px) { .news { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }
.post { display: grid; gap: 8px; align-content: start; min-width: 0; }
.post-link { text-decoration: none; display: grid; gap: 8px; }
.post .pic { position: relative; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; }
.post .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.post-link:hover .pic img { transform: scale(1.03); }
.post .play, .post .multi { position: absolute; top: 10px; right: 10px; background: rgb(0 0 0 / .55); color: #fff; width: 32px; height: 32px; display: grid; place-items: center; font-size: .85rem; }
.post time { font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.post p { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-link:hover p { color: var(--brand); }
.ig-status { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; background: var(--surface); padding: 16px 18px; margin-bottom: 24px; font-size: .92rem; }
.ig-err { color: var(--brand); font-weight: 500; }
dialog.ig-dlg { border: 0; padding: 0; width: min(420px, calc(100vw - 24px)); background: var(--bg); overflow: visible; }
dialog.ig-dlg::backdrop { background: rgb(15 8 10 / .75); }
.ig-dlg iframe { display: block; width: 100%; height: min(720px, calc(100vh - 110px)); border: 0; background: var(--surface); }
.ig-dlg .ig-close { position: absolute; top: -44px; right: 0; width: 38px; height: 38px; border: 0; background: var(--bg); color: var(--ink); font-size: 1.5rem; cursor: pointer; }
.ig-dlg .ig-open { display: block; padding: 12px 16px; font-weight: 500; text-decoration: none; color: var(--brand); }
@media (max-height: 600px) { .ig-dlg .ig-close { top: 6px; right: 6px; z-index: 2; } }

/* ---------- admin bar links ---------- */
.adminbar .ab-links { margin-left: auto; display: flex; gap: 8px; }
.adminbar .ab-links a, .adminbar .ab-links button { margin-left: 0; }

/* ---------- stats ---------- */
.st { padding-bottom: 84px; }
.st-group { margin-bottom: 40px; min-width: 0; }
.st-group h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 14px; }
.st-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.st-tile { background: var(--bg); padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.st-tile span { font-size: .85rem; color: var(--muted); min-height: 2.8em; }
.st-tile b { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .st-tiles { grid-template-columns: 1fr 1fr; } }
.st-chart { display: grid; grid-template-columns: auto 1fr; gap: 10px; height: 220px; }
.st-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.st-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; align-items: end; border-bottom: 1px solid var(--muted); background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 50%; }
.st-col { position: relative; height: 100%; display: flex; align-items: flex-end; cursor: default; outline: none; }
.st-bar { width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 0; }
.st-col.is-today .st-bar { background: var(--ink); }
.st-col:hover .st-bar, .st-col:focus .st-bar { opacity: .8; }
.st-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .8rem; padding: 8px 10px; white-space: nowrap; z-index: 2; pointer-events: none; }
.st-col:hover .st-tip, .st-col:focus .st-tip { display: block; }
.st-col:nth-child(-n+4) .st-tip { left: 0; transform: none; }
.st-col:nth-last-child(-n+4) .st-tip { left: auto; right: 0; transform: none; }
.st-xlab { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin: 6px 0 0 34px; }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .st-two { grid-template-columns: 1fr; gap: 0; } }
.st-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.st-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.st-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.st-empty { color: var(--muted); }
.st-note { background: var(--surface); padding: 16px 18px; font-size: .92rem; }

/* ---------- share ---------- */
.share { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--line); color: var(--ink); font: 500 .9rem var(--font-body); padding: 9px 14px; cursor: pointer; }
.share:hover { border-color: var(--brand); color: var(--brand); }
.share .ico { width: 1.05em; height: 1.05em; }
.share-sm { padding: 9px 10px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .btn { margin-top: 0; }
.post .share-sm { justify-self: start; padding: 6px 8px; }
.share-pop { position: absolute; z-index: 50; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 10px 30px rgb(0 0 0 / .15); display: grid; min-width: 210px; }
.share-pop a, .share-pop button { padding: 12px 16px; text-decoration: none; color: var(--ink); background: none; border: 0; text-align: left; font: 500 .95rem var(--font-body); cursor: pointer; }
.share-pop a + a, .share-pop button { border-top: 1px solid var(--line); }
.share-pop a:hover, .share-pop button:hover { background: var(--surface); color: var(--brand); }
.st-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.share-pop[hidden], [hidden] { display: none !important; }

/* ---------- doctor gallery & certificates ---------- */
.dgal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dgal img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--surface); }
.dcerts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dcerts a { background: var(--surface); padding: 6px; border: 1px solid var(--line); display: block; }
.dcerts a:hover { border-color: var(--brand); }
.dcerts img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; display: block; }
.dcerts-hint { font-size: .85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 560px) { .dgal { grid-template-columns: 1fr 1fr; } .dcerts { grid-template-columns: repeat(3, 1fr); } }
a.zoom { cursor: zoom-in; }
.room .shots a { display: block; }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lb::backdrop { background: rgb(12 8 9 / .92); }
.lb img { position: absolute; inset: 56px 16px; margin: auto; max-width: calc(100% - 32px); max-height: calc(100% - 112px); object-fit: contain; }
.lb button { position: absolute; background: rgb(255 255 255 / .12); color: #fff; border: 0; width: 48px; height: 48px; font-size: 1.8rem; cursor: pointer; }
.lb button:hover { background: rgb(255 255 255 / .25); }
.lb .lb-x { top: 8px; right: 8px; }
.lb .lb-p { left: 8px; top: 50%; transform: translateY(-50%); }
.lb .lb-n { right: 8px; top: 50%; transform: translateY(-50%); }
.lb .lb-c { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; }
.ed .photos figure .mv { left: 4px; right: auto; }
.ed .photos .cnt { align-self: end; color: var(--muted); }

/* ---------- departments ---------- */
.deps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.dep { position: relative; display: grid; gap: 12px; align-content: start; padding: 32px; background: var(--brand); color: var(--on-brand); text-decoration: none; transition: background .15s ease; }
.dep:hover { background: var(--brand-dark); }
.dep h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.dep p { opacity: .9; max-width: 34em; }
.dep .dep-promo { opacity: 1; font-weight: 600; font-size: 1.1rem; background: rgb(255 255 255 / .14); padding: 10px 14px; justify-self: start; }
.dep .dep-more { font-weight: 600; margin-top: 4px; }
.promo-badge { justify-self: start; background: var(--on-brand); color: var(--brand); font: 700 .75rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; }
.deps .add-tile { min-height: 180px; }
.dep-hero .wrap { padding-block: 40px 48px; }
.promo-slab { justify-content: center; gap: 16px; }
.promo-slab .promo-text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; }
.promo-slab .promo-until { opacity: .8; }
.dep-body { padding-bottom: 48px; }
.dsec { padding-block: 28px; border-top: 1px solid var(--line); min-width: 0; }
.dsec h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 18px; }
.dabout { display: grid; gap: 14px; font-size: 1.1rem; max-width: 44em; border-top: 0; }
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.dgrid:empty { display: none; }
@media (max-width: 760px) { .dgrid { grid-template-columns: 1fr; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--brand); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { counter-increment: s; background: var(--bg); padding: 20px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--brand); }
.dprice { font-size: 1.1rem; max-width: 44em; }
.faq { display: grid; border-top: 1px solid var(--line); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* ---------- reviews ---------- */
.revs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: start; }
.rev { margin: 0; background: var(--surface); padding: 24px; display: grid; gap: 16px; border-top: 4px solid var(--brand); }
.rev blockquote { margin: 0; display: grid; gap: 10px; }
.rev blockquote p:first-child::before { content: "«"; } .rev blockquote p:last-child::after { content: "»"; }
.rev figcaption { display: grid; gap: 2px; }
.rev figcaption span { font-size: .85rem; color: var(--muted); }
.revs .add-tile { min-height: 160px; }
.ed select, .ed input[type=date] { font: inherit; font-size: .95rem; padding: 10px 12px; border: 1.5px solid var(--line); width: 100%; background: var(--bg); }
.promo-slab .promo-badge { align-self: flex-start; }
.nav a { white-space: nowrap; }
@media (max-width: 1100px) { .nav { gap: 16px; font-size: .9rem; } }
.rev-shot { display: block; position: relative; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.rev-shot img { display: block; width: 100%; max-height: 420px; object-fit: cover; object-position: top; }
.rev-shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgb(255 255 255 / .96) 55%); font-size: .85rem; font-weight: 600; color: var(--brand); text-align: center; }
.rev.has-shot blockquote p:first-child::before, .rev.has-shot blockquote p:last-child::after { content: none; }

/* ---------- instagram links ---------- */
.ig-link { margin-left: auto; display: inline-flex; color: var(--ink); padding: 6px; }
.ig-link .ico { width: 1.45em; height: 1.45em; }
.ig-link:hover { color: var(--brand); }
.top .ig-link + .phone { margin-left: 0; }
@media (max-width: 640px) { .top .ig-link { margin-left: auto; } .top .ig-link ~ .btn { margin-left: 0; } }
.ig-hero { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.ig-hero .ico { width: 1.9em; height: 1.9em; color: var(--brand); }
.ig-hero small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.ig-hero:hover span { color: var(--brand); }
.ig-foot { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; text-decoration: none; }
.ig-foot .ico { color: var(--brand); width: 1.2em; height: 1.2em; }
@media (max-width: 640px) { .top .wrap { gap: 10px; } .top .logo { width: 132px; } .top .btn { padding: 10px 12px; font-size: .88rem; } }
@media (max-width: 360px) { .top .btn .ico { display: none; } }

/* ---------- price ---------- */
.price { padding-bottom: 56px; }
.price-tools { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 69px); z-index: 5; background: var(--bg); padding-block: 12px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.price-search input { width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px; border: 1.5px solid var(--line); background: var(--surface); }
.price-search input:focus { outline: none; border-color: var(--brand); background: var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.price-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.price-nav a { flex: none; text-decoration: none; font-size: .85rem; font-weight: 500; padding: 7px 12px; border: 1px solid var(--line); white-space: nowrap; }
.price-nav a:hover { border-color: var(--brand); color: var(--brand); }
.psec { padding-top: 36px; scroll-margin-top: 190px; }
.psec h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 14px; }
.ptable { border-top: 2px solid var(--ink); }
.prow { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prow:hover { background: var(--surface); }
.pname { min-width: 0; }
.pname small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.pprice { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pprice.free { color: var(--brand); }
.pprice.ask { color: var(--muted); font-weight: 500; }
.psub { padding: 18px 0 6px; font-weight: 600; color: var(--brand); font-size: .9rem; letter-spacing: .02em; border-bottom: 1px solid var(--line); }
.price-empty { padding: 24px 0; color: var(--muted); }
.price-note { margin-top: 32px; font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) { .price-tools { top: calc(env(safe-area-inset-top, 0px) + 61px); } }
@media (max-width: 1320px) { .top .phone { display: none; } .nav { gap: 14px; font-size: .9rem; } .top .wrap { gap: 18px; } }

/* ---------- doctor services from price ---------- */
.dprices { display: grid; gap: 18px; }
.dps h3 { font-size: .95rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; font-family: var(--font-body); }
.pp { border: 1.5px solid var(--line); max-height: 360px; overflow-y: auto; }
.pp-q { width: 100%; border: 0 !important; border-bottom: 1px solid var(--line) !important; padding: 10px 12px; font: inherit; font-size: .9rem; position: sticky; top: 0; background: var(--bg); z-index: 1; }
.pp-sec { border-bottom: 1px solid var(--line); }
.pp-sec summary { padding: 10px 12px; cursor: pointer; background: var(--surface); list-style: none; }
.pp-sec summary::-webkit-details-marker { display: none; }
.pp-sec summary small { color: var(--muted); font-weight: 400; }
.pp-row { display: grid !important; grid-template-columns: auto 1fr auto; gap: 8px; padding: 7px 12px; font-weight: 400 !important; font-size: .88rem; align-items: baseline; }
.pp-row em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.pp-row input:disabled + span { color: var(--muted); }
.pp-sub { padding: 8px 12px 2px; font-size: .78rem; font-weight: 600; color: var(--brand); }
.pp-lost { padding: 10px 12px; background: #fff4e5; font-size: .85rem; display: grid; gap: 6px; }
.pp-row[hidden], .pp-sub[hidden], .pp-sec[hidden] { display: none !important; }

/* ---------- director ---------- */
.director .wrap { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: start; }
.dir-photo { margin: 0; aspect-ratio: 4 / 5; background: var(--surface); border-top: 6px solid var(--brand); overflow: hidden; position: sticky; top: 100px; }
.dir-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dir-body { display: grid; gap: 18px; min-width: 0; }
.dir-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.dir-text { display: grid; gap: 14px; font-size: 1.08rem; max-width: 40em; }
.dir-sign { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line); }
.dir-sign b { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; padding-top: 12px; }
.dir-sign span { color: var(--muted); font-size: .92rem; }
.dir-contact { display: grid; gap: 8px; background: var(--surface); padding: 20px; }
.dir-contact > span:first-child { color: var(--muted); font-size: .92rem; }
.dir-phone { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.dir-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 860px) { .director .wrap { grid-template-columns: 1fr; gap: 24px; } .dir-photo { position: static; max-width: 420px; } }
