/* v7: precise mobile and article fixes. Applied last; original branding retained. */
html,body { max-width:100%; }
/* The Yandex map remains visible in Contacts; one overlay is the only map CTA. */
#map-panel.map-wrap {
  display:block;position:relative;isolation:isolate;
  width:100%;height:clamp(365px,36vw,500px);min-height:365px;
  overflow:hidden;border-radius:22px;background:#e6f0ed;
  border:1px solid #cbd8dd;
}
#map-panel .address-poster,#map-panel #map-toggle {display:none!important;}
#map-panel #clinic-map {
  display:block;position:absolute;inset:0;width:100%;height:100%;
  border:0;filter:none;z-index:0;
}
#map-panel #map-route {
  position:absolute;z-index:4;
  inset:auto 10px 10px 10px;width:auto;min-height:64px;
  padding:16px 20px;border-radius:14px;
  display:flex;align-items:center;gap:14px;
  background:rgba(246,250,250,.98);color:#183d47;
  border:1px solid #fff;
  box-shadow:0 6px 22px rgba(15,38,50,.23);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  text-decoration:none;transform:none;
}
#map-panel #map-route .map-route-label {font-size:clamp(13px,1.3vw,16px);font-weight:700;line-height:1.35}
#map-panel #map-route:focus-visible {outline:3px solid #2f7c9d;outline-offset:-4px}
#map-panel #map-route .yandex-mark {width:27px;height:30px}
/* Gallery: two complete abdominoplasty pictures, no artificial square letterbox. */
.cases-grid .case-card:has(img[data-cms-image="abdo_case"]) img {
  aspect-ratio:unset;height:auto;max-height:none;object-fit:contain;
  background:#f0f4f5;min-height:0;
}
.cases-grid .case-card:has(img[data-cms-image="abdo_case"]) {justify-content:flex-start}
/* Article headers, prices and typographic rhythm. */
.article-header {align-items:center;min-width:0;flex-wrap:nowrap}
.article-header .article-signature {min-width:0;white-space:nowrap}
.article-header > a {min-width:0}
.operation-page {max-width:900px;min-width:0}
.operation-page h1 {overflow-wrap:normal;word-break:normal;hyphens:auto;text-wrap:balance}
.article-price {min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.article-price>.article-amount {display:inline-block;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:clamp(26px,6vw,39px);letter-spacing:-.025em;line-height:1.2}
.article-price small {line-height:1.6;margin-top:0;overflow-wrap:break-word}
.article-body {min-width:0;overflow-wrap:break-word;word-break:normal}
.article-body .article-lead {font-size:clamp(16px,2vw,19px);line-height:1.7;color:#2e4b5c;font-weight:500;margin:0 0 22px}
.article-body .article-disclaimer {font-size:12px;line-height:1.55;color:#728994;margin:0 0 28px}
.article-body h2 {font-size:clamp(24px,3.3vw,30px);line-height:1.24;letter-spacing:-.028em;margin:42px 0 15px;text-wrap:balance}
.article-body h3 {font-size:clamp(18px,2.3vw,22px);line-height:1.32;letter-spacing:-.015em;margin:28px 0 10px;color:#264a5e;text-wrap:balance}
.article-body p {font-size:clamp(14px,1.9vw,16px);line-height:1.75;margin:13px 0;overflow-wrap:break-word}
.article-body .article-inline-link {color:#1c678f;text-decoration:underline;text-decoration-color:#a6ccd7;text-underline-offset:3px;display:inline;white-space:normal;font-weight:600}
.article-body .article-reference {color:#65808f;font-size:12px}
.article-body .article-related-link {color:#466779;font-size:13px}
.article-body .price-sheet {width:100%;max-width:100%;border-collapse:separate;border-spacing:0;margin:20px 0 16px;border:1px solid #d7e4ea;border-radius:16px;overflow:hidden;background:#fff}
.article-body .price-sheet caption {font-size:14px;font-weight:700;text-align:left;color:#2b4a5a;padding:0 0 10px}
.article-body .price-sheet th {font-size:12px;font-weight:650;color:#5a7383;background:#edf3f5;padding:14px;text-align:left}
.article-body .price-sheet td {padding:19px 14px;font-size:14px;line-height:1.55;border-top:1px solid #e6edef;vertical-align:middle;overflow-wrap:break-word}
.article-body .price-sheet td:first-child {width:75%}
.article-body .price-sheet td:last-child {white-space:nowrap;text-align:right;font-weight:750;font-size:clamp(18px,2.8vw,24px);font-variant-numeric:tabular-nums;color:#143f54}
.article-surgeon {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:25px;margin:46px 0;padding:28px;background:linear-gradient(135deg,#e8f0f2,#f7fafb);border:1px solid #d7e4e8;border-radius:22px}
.article-surgeon>* {min-width:0}.article-surgeon .surgeon-identity {padding-right:17px;border-right:1px solid #c7d9de}
.article-body .article-surgeon h2 {margin:0 0 13px;font-size:25px}
.article-body .article-surgeon h3 {font-family:Georgia,serif;font-size:26px;font-weight:500;margin:0 0 12px;line-height:1.15}
.article-body .article-surgeon .surgeon-consult-title {font:600 17px system-ui,sans-serif;margin:0 0 12px}
.article-surgeon .surgeon-role {font-weight:600;color:#365666}
.article-surgeon .surgeon-identity p:last-child {font-size:11px;color:#759099}
.article-body .surgeon-specialties {display:grid;gap:9px;margin:12px 0;padding-left:17px;color:#33586b;font-size:13px;line-height:1.55}
.article-body details {margin:13px 0;border:1px solid #dbe5e9;border-radius:14px;background:#fff;padding:0 18px;overflow:hidden}
.article-body details summary {font-size:clamp(14px,2vw,17px);font-weight:650;line-height:1.5;padding:18px 25px 18px 0;cursor:pointer;color:#24485a;position:relative;list-style:none}
.article-body details summary::-webkit-details-marker {display:none}
.article-body details summary::after {content:'+';position:absolute;right:0;top:14px;font-size:23px;font-weight:400;color:#67818d}
.article-body details[open] summary::after {content:'−'}
.article-body details>p {margin:0 0 18px;padding:0;line-height:1.7}
.article-cta {min-width:0}.article-cta .button {max-width:100%}
@media(max-width:740px) {
  #map-panel.map-wrap {height:clamp(370px,115vw,520px);min-height:370px;border-radius:18px}
  #map-panel #map-route {min-height:62px;bottom:9px;left:9px;right:9px;padding:14px 14px;gap:10px;border-radius:12px}
  #map-panel #map-route .map-route-label {font-size:13px}
  .operation-page {padding:32px max(16px,5vw) 60px}
  .article-header {gap:9px;padding:15px max(14px,4vw)}
  .article-header .article-signature {gap:5px;flex:1 1 auto;font-size:11px;max-width:46%}
  .article-header .brand-symbol {width:31px;height:31px;flex:none}
  .article-header > a:not(.article-signature) {font-size:11px;line-height:1.25;text-align:center;flex:0 0 auto}
  .article-header > a:last-child {border-radius:99px;padding:9px 12px;background:#183b4f;color:#fff}
  .operation-page h1 {font-size:clamp(30px,7.9vw,43px);line-height:1.16;letter-spacing:-.04em;margin:23px 0 24px}
  .article-price {padding:19px 17px;border-radius:14px}
  .article-body {margin-top:28px}
  .article-body .price-sheet {display:block;border-radius:14px}
  .article-body .price-sheet thead {display:none}
  .article-body .price-sheet tbody,.article-body .price-sheet tr,.article-body .price-sheet td {display:block;width:100%!important}
  .article-body .price-sheet td {padding:15px 16px;border-top:0}
  .article-body .price-sheet td:last-child {text-align:left;padding-top:0;padding-bottom:18px;font-size:25px}
  .article-surgeon {display:block;padding:21px 19px;gap:0;margin:36px 0;border-radius:16px}
  .article-surgeon .surgeon-identity {border-right:0;border-bottom:1px solid #c7d9de;padding:0 0 16px}
  .article-surgeon .surgeon-practice {padding-top:18px}
  .article-body .article-surgeon h3 {font-size:22px}
  .article-body details {padding:0 15px}
  .article-cta {padding:22px 18px}
  .article-cta>a {max-width:100%;overflow-wrap:anywhere}
  .cases-grid .case-card:has(img[data-cms-image="abdo_case"]) img {aspect-ratio:auto;max-height:unset}
}
@media(max-width:360px) {
  .article-header {gap:6px}
  .article-header .article-signature {font-size:10px;max-width:40%}
  .article-header > a:not(.article-signature) {font-size:10px}
  .article-header > a:last-child {padding:9px 10px}
}
/* The bottom CTA is deliberately the sole overlay, high enough to cover
   the provider's expandable bottom banner as well as the lower edge. */
#map-panel #map-route {
  left:0;right:0;bottom:0;
  min-height:142px;
  padding:24px clamp(18px,3vw,30px);
  border-radius:0 0 21px 21px;
  background:linear-gradient(165deg,rgba(249,252,251,.99),rgba(228,240,237,.99));
  border:0;border-top:1px solid #c5d8dc;
  box-shadow:0 -8px 25px rgba(13,42,52,.16);
}
#map-panel #map-route .map-route-label {font-size:clamp(14px,1.4vw,18px)}
@media(max-width:740px){
 #map-panel #map-route {
   left:0;right:0;bottom:0;min-height:135px;
   padding:24px clamp(16px,5vw,26px);
   border-radius:0 0 17px 17px;
 }
 #map-panel #map-route .map-route-label {font-size:14px}
}
