/* Design system layer: one role = one look on every page. Loaded last (after brand-scale.css and brand-fixes.css).
   Roles follow the brandbook p.15/22 and the accepted service reference «Профессиональная гигиена».
   Weights: 600 headings, names, prices · 500 buttons, menu, price-list names · 400 text, roles, captions.
   The source stylesheets use 2-3 class selectors, so the defining properties here carry !important on purpose:
   this file is the final authority for the roles it lists. */

/* ---- 1. Weights ------------------------------------------------------------------------------------------- */
/* Full price list: names like the service price panels (500), only the amount is bold (was 600 on every row) */
html body .care-price-row > dt { font-weight: 500 !important; }
html body .care-price-row > dd { font-weight: 600 !important; }
/* Doctor role under the name is a caption, not a second name */
html body .editorial-doctor-role { font-weight: 400 !important; color: var(--dp-color-muted, #5b5870); }
/* doctor profile (Elementor template): the role under the H1 looked like a second name (28/600) */
html body .dp-fallback-profile-meta .elementor-widget-heading .elementor-heading-title {
  font-size: 20px !important; font-weight: 400 !important; line-height: 1.3; color: var(--dp-color-muted, #5b5870);
}
/* An accent inside running text is medium, not a heading-weight blot */
html body main p strong, html body main p b, html body main li > strong, html body main li > b,
html body .elementor-icon-list-text > b { font-weight: 500 !important; }
/* Every button and button-like link: medium (brandbook .btn 17/500) */
html body :is(.btn, .template-button, .elementor-button, a.dp-doctor-button, a.dp-service-button, a.dp-service-jump,
  .dp-ratings-control, .dp-case-fullscreen, a.chip, a.book, .editorial-read, .home-post-more, form button[type="submit"]),
html body :is(.btn, .elementor-button) :is(span, .elementor-button-text) { font-weight: 500 !important; }

/* ---- 2. Buttons: four types ------------------------------------------------------------------------------- */
/* Primary «Записаться»: green, 54 px (doctor pages had a small black pill with a border) */
html body a.dp-doctor-button {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px !important; padding: 0 26px !important; box-sizing: border-box;
  border: 0 !important; border-radius: 999px !important;
  background: var(--dp-color-green, #00D88A) !important; color: var(--dp-color-green-ink, #00140C) !important;
  font-size: 17px; text-decoration: none; white-space: nowrap;
}
html body a.dp-doctor-button:hover { filter: brightness(.94); }

/* Secondary: white pill with the same 1 px border and the same height as the primary next to it */
html body :is(a.dp-service-jump, .btn.white, .template-button.template-button--outline, a.dp-service-button.dp-service-button-secondary) {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-height: 54px !important; padding: 0 24px !important; box-sizing: border-box;
  border: 1px solid var(--dp-line-strong, #8E8AA6) !important; border-radius: 999px !important;
  background: #fff !important; color: #000 !important; font-size: 17px; text-decoration: none;
}
html body :is(a.dp-service-jump, .btn.white, .template-button--outline, a.dp-service-button-secondary):hover { border-color: #000 !important; }

/* Dark: black pill, 54 px (site search, rating form, «Все статьи» on inner pages) */
html body .dp-interior-content form button[type="submit"], html body p > a.btn.dark,
html body .template-card > a.template-button--dark {
  min-height: 54px !important; padding: 0 26px !important; box-sizing: border-box;
  border: 0 !important; border-radius: 999px !important; background: #000 !important; color: #fff !important; font-size: 17px;
}

/* Small: chips, ratings, filters, viewer controls — 44 px */
html body :is(.dp-team-ratings > a, a.chip.line, .dp-ratings-control, .dp-case-fullscreen, .editorial-reading-block .editorial-doctor-meta > a) {
  min-height: 44px !important; box-sizing: border-box;
}
html body a.chip.line { display: inline-flex; align-items: center; padding: 0 18px !important; }

/* «Показать все» toggles (price list, doctors of the direction): one look, as in the reference price panel */
html body :is(.dp-price-more, .dp-team-more) > summary {
  display: inline-flex !important; align-items: center; gap: 12px; min-height: 48px !important; padding: 0 22px !important;
  box-sizing: border-box; border: 1px solid #000 !important; border-radius: 999px !important; background: #fff;
  font-size: 17px; font-weight: 500 !important; cursor: pointer; list-style: none;
}
/* «Оставить отзыв» next to the green booking button on doctor pages is a secondary button */
html body .dp-interior--profile a.elementor-button:not([href="#booking"]) {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 54px !important; padding: 0 24px !important;
  box-sizing: border-box; border: 1px solid var(--dp-line-strong, #8E8AA6) !important; border-radius: 999px !important;
  background: #fff !important; color: #000 !important;
}

/* Keyboard focus is visible on every button and link-button */
html body :is(.btn, .template-button, a.dp-service-jump, a.dp-doctor-button, .elementor-button, form button[type="submit"]):focus-visible {
  outline: 2px solid #000; outline-offset: 3px;
}
html body :is(a, summary, button, input, select, textarea):focus-visible { outline: 2px solid #000; outline-offset: 3px; }
html body header.nav:not(.light) :is(a, button):focus-visible { outline-color: #fff; } /* on the home hero photo */

/* ---- 3. Header: the same links on every page (mockup 19 px -> scale 20, regular) ------------------------- */
html body header .nav-links a, html body [data-template-header] .nav .nav-links a,
html body div.wrap header.nav.light nav.nav-links a, html body header.nav nav.nav-links a, html body div.nav-links a {
  font-size: 20px !important; font-weight: 400 !important;
}
/* the booking pill stays in the header on phones on the home page too (inner pages already show it) */
@media (max-width: 767px) {
  html body header.nav .nav-right a.pill-glass:not(.burger) { display: inline-flex !important; }
}

/* ---- 3a. Green is only for booking, prices and the active state (brandbook p.10) --------------------------- */
/* one accordion icon everywhere: white circle with a thin border and a black +/− (was green, a chevron, or a tiny +) */
html body :is(.clinic-details summary, .clinic-document-index summary, .care-detail > summary, .care-price-sheet .care-detail > summary)::after {
  content: "+"; display: grid; place-items: center; flex: 0 0 36px; inline-size: 36px; block-size: 36px; aspect-ratio: 1;
  margin: 0; box-sizing: border-box; border: 1px solid var(--dp-line-strong, #8E8AA6); border-radius: 50%;
  background: #fff; color: #000; font-size: 20px; font-weight: 400; line-height: 1; transform: none;
}
html body :is(.clinic-details details[open] summary, .clinic-document-index details[open] summary, .care-detail[open] > summary, .care-price-sheet .care-detail[open] > summary)::after {
  content: "−"; transform: none;
}
/* direction cards in the services catalogue: black arrow circle instead of seven green ones per screen */
html body .care-arrow { background: #000; color: #fff; }
/* a map link is not the booking action: secondary button */
html body a.template-button--dark[href*="yandex.ru/maps"] {
  background: #fff !important; color: #000 !important; border: 1px solid var(--dp-line-strong, #8E8AA6) !important;
}
html body a.template-button--dark[href*="yandex.ru/maps"]::after { content: "↗"; }

/* ---- 3b. Cards ------------------------------------------------------------------------------------------ */
/* A price panel that stands on its own is a card like every other section card (same colour, same radius) */
html body .dp-price-panel { background: var(--dp-color-surface, #FCFCFE); border-radius: 32px; padding: clamp(24px, 4vw, 48px); }
/* «Лечение кариеса», «Лечение пульпита»: the panel sat transparent straight on the lavender page — give it the card back */
html body main.dp-interior--editorial-service [class*="dp-remaining-content"] > .dp-price-panel {
  margin-block: 16px; padding: clamp(24px, 4vw, 48px); border-radius: 32px; background: var(--dp-color-surface, #FCFCFE);
}
@media (max-width: 767px) { html body .dp-price-panel { border-radius: 28px; } }

/* ---- 3c. Before/after on doctor pages: the plugin's comparison styles never reached the static build, so every
   case showed two 1280 px photos one under the other with a bare range slider. Same look as the service comparisons. */
html body .dp-doctor-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { html body .dp-doctor-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { html body .dp-doctor-case-grid { grid-template-columns: minmax(0, 1fr); } }
html body .dp-doctor-case-card { min-width: 0; margin: 0; }
html body .dp-doctor-case-card h3 { margin: 12px 0 0; font-size: 20px !important; font-weight: 600; line-height: 1.3; }
html body .dp-before-after { --dp-case-position: 50%; position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 24px; background: #000; }
html body .dp-before-after img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body .dp-before-after-result { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--dp-case-position)) 0 0); }
html body .dp-before-after-divider { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--dp-case-position); width: 2px; background: #fff; transform: translateX(-50%); }
html body .dp-before-after-divider::after {
  content: "↔"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: #fff; color: #000; font-size: 17px; transform: translate(-50%, -50%);
}
html body .dp-before-after-label { position: absolute; z-index: 2; top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 14px; font-weight: 500; }
html body .dp-before-after-label-before { left: 12px; }
html body .dp-before-after-label-after { right: 12px; }
html body .dp-before-after input[type="range"] { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
html body .dp-before-after:has(input:focus-visible) { outline: 2px solid #000; outline-offset: 3px; }

/* doctor page reviews: the ProDoktorov widget script does not run in the static build, only its name link was left;
   show the logo and one secondary button in a row */
html body .dp-doctor-review-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
html body .dp-doctor-review-panel .pd_widget_footer { display: none; }
html body .dp-doctor-review-panel .pd_powered_by { margin: 0; }
html body .dp-doctor-review-panel a.dp-doctor-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 54px; margin: 0; padding: 0 24px; box-sizing: border-box;
  border: 1px solid var(--dp-line-strong, #8E8AA6); border-radius: 999px; background: #fff; color: #000;
  font-size: 17px; font-weight: 500; text-decoration: none;
}
/* doctor fact chips: caption smaller than the value (the scale had made «практики» 20 under a 17 value) */
html body main.dp-interior--profile div.elementor-icon-box-content p.elementor-icon-box-description,
html body main.dp-interior--profile .elementor-icon-box-description { font-size: 14px !important; line-height: 1.3; color: var(--dp-color-muted, #5b5870); }
html body main.dp-interior--profile div.elementor-icon-box-content .elementor-icon-box-title,
html body main.dp-interior--profile div.elementor-icon-box-content .elementor-icon-box-title span { font-size: 17px !important; line-height: 1.3; }

/* ---- 3d. Section headings: one size per width on every inner page (home and implantation have no <main> and keep
   their mockup). Reference «Профгигиена»: H2 40 on desktop. Card titles inside lists stay small (excluded). */
@media (min-width: 1280px) {
  html body main :is(h2, h2.template-section-heading, p.template-section-heading):not(.care-price-content h2, .editorial-case-subheading, .editorial-doctor-link h2, .editorial-story-content h2, .dp-post-title h2, .dp-doctor-section:has(.dp-doctor-button) h2, summary h2) {
    font-size: 40px !important; line-height: 1.12 !important;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  html body main :is(h2, h2.template-section-heading, p.template-section-heading):not(.care-price-content h2, .editorial-case-subheading, .editorial-doctor-link h2, .editorial-story-content h2, .dp-post-title h2, .dp-doctor-section:has(.dp-doctor-button) h2, summary h2) {
    font-size: 28px !important; line-height: 1.18 !important;
  }
}
@media (max-width: 767px) {
  html body main :is(h2, h2.template-section-heading, p.template-section-heading):not(.care-price-content h2, .editorial-case-subheading, .editorial-doctor-link h2, .editorial-story-content h2, .dp-post-title h2, .dp-doctor-section:has(.dp-doctor-button) h2, summary h2) {
    font-size: 20px !important; line-height: 1.25 !important;
  }
}
/* price list categories are accordion rows: every category title 20/600 (the first one was 40 and touched the card top) */
html body main summary h2 { font-size: 20px !important; line-height: 1.25 !important; margin: 0; }
/* H1 per width on inner pages: 60 / 40 / 28 */
@media (min-width: 1280px) { html body main h1 { font-size: 60px !important; } }
@media (min-width: 768px) and (max-width: 1279px) { html body main h1 { font-size: 40px !important; } }
@media (max-width: 767px) { html body main h1 { font-size: 28px !important; } }
/* news list card titles: Lead size like the journal cards (were 22) */
html body .dp-post-title h2, html body .dp-post-title h2 a { font-size: 20px !important; line-height: 1.3; }

/* ---- 3e. Small consistency fixes from the design review --------------------------------------------------- */
/* search fields are pills of the same height as the button next to them */
html body :is(#price-search, #dp-search-page-query, .dp-price-search) {
  box-sizing: border-box; height: 54px; padding: 0 20px; border: 1px solid var(--dp-line-strong, #8E8AA6);
  border-radius: 999px; background: #fff; font: inherit; font-size: 17px; color: #000;
}
html body :is(#price-search, #dp-search-page-query) ~ button, html body form[role="search"] button[type="submit"] {
  min-height: 54px !important; border-radius: 999px !important;
}
/* «Врач: …» under a before/after photo stuck to the image */
html body figure:has(.dp-case-compare) + p, html body .dp-case-compare + p { margin-top: 12px; }
/* doctors catalogue: names as card titles (20/600) like the doctor cards on service pages, not 28 in two lines */
html body .editorial-doctor-link > h2, html body .editorial-doctor-link > strong:not(.editorial-doctor-role) { font-size: 20px !important; line-height: 1.3; }
/* news list: cards without link underlines on date and title (journal cards have none) */
html body .dp-post-title :is(h2, a), html body [class*="elementor-post-info"] :is(a, span, time) { text-decoration: none !important; }
html body [class*="elementor-post-info"] :is(a, span, time) { font-size: 14px !important; color: var(--dp-color-muted, #5b5870) !important; }
/* breadcrumbs: one height everywhere (21 on three pages, 44 elsewhere) so the first card starts at the same line */
html body nav.crumbs, html body nav.template-crumbs { min-height: 44px; align-items: center !important; box-sizing: border-box; }
/* phones: a long trail wraps to a second line instead of being cut mid-word */
@media (max-width: 767px) {
  html body nav.crumbs, html body nav.template-crumbs {
    display: block !important; min-height: 0; padding-block: 12px; overflow: visible !important; line-height: 1.5; white-space: normal !important;
  }
  html body nav.crumbs > *, html body nav.template-crumbs > * { display: inline !important; white-space: normal !important; }
  html body nav.crumbs > span[aria-hidden="true"], html body nav.template-crumbs > span[aria-hidden="true"] { margin: 0 6px; }
}
/* service pages: the location note with a green bar is a card like «Записаться онлайн» on the reference */
html body .dp-service-copy > p:first-child:has(a[href*="kontakty"]) {
  max-width: none !important; margin: 0 0 16px; padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 48px); border: 0 !important;
  border-radius: 32px; background: var(--dp-color-surface, #FCFCFE);
}

/* ---- 4. Sizes left off the scale ------------------------------------------------------------------------- */
html body nav.crumbs > *, html body nav.template-crumbs > * { font-size: 14px !important; }   /* template pages had 15 */
html body .editorial-story-title, html body .editorial-story-title a { font-size: 20px !important; } /* journal cards had 22 */
/* journal: article cards had 28, news cards 20 — one card title size for both lists */
html body .editorial-story-content h2, html body .editorial-story-content h2 a { font-size: 20px !important; line-height: 1.25 !important; }

/* «Лечение кариеса»: case examples stood in one narrow column with empty space on the right */
html body section:has(> article.dp-therapy-case) {
  display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 24px; align-items: start;
}
@media (min-width: 768px) {
  html body section:has(> article.dp-therapy-case) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* doctor pages: case captions in the works library were 28/400, larger than the section text — caption size like other cases */
html body .dp-doctor-cases .elementor-heading-title { font-size: 17px !important; line-height: 1.35 !important; font-weight: 500 !important; }
html body .dp-doctor-cases .elementor-widget-heading { margin-top: 12px; }
html body section:has(> article.dp-therapy-case) > :not(article.dp-therapy-case) { grid-column: 1 / -1; }
html body article.dp-therapy-case .dp-case-compare { max-inline-size: none; }


/* home «Наши преимущества»: two narrow columns broke words with hyphens on phones (обору-дование) */
html body .home-benefits li { hyphens: manual; }
@media (max-width: 520px) { html body .home-benefits { grid-template-columns: minmax(0, 1fr); } }

/* ---- 5. Text wrapping: no single dangling word in headings, calmer paragraph endings ---------------------- */
html body h1, html body h2, html body h3 { text-wrap: balance; }
html body main p, html body main li { text-wrap: pretty; }

/* ---- 6. Services menu (tools/services_menu.py): hover/focus panel on desktop, tap list in the burger menu ---- */
.dp-nav-drop { position: relative; display: inline-flex; align-items: center; }
.dp-nav-drop > a .dp-nav-chevron { width: 16px; height: 16px; transition: transform .2s ease; }
.dp-nav-drop:hover > a .dp-nav-chevron, .dp-nav-drop:focus-within > a .dp-nav-chevron { transform: rotate(180deg); }
.dp-nav-panel {
  position: absolute; top: 100%; left: -24px; z-index: 60; padding-top: 16px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.dp-nav-drop:hover .dp-nav-panel, .dp-nav-drop:focus-within .dp-nav-panel {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.dp-nav-panel-in {
  display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: var(--dp-space-24) var(--dp-space-32);
  width: min(760px, calc(100vw - 64px)); padding: var(--dp-space-32);
  background: var(--dp-color-surface); color: var(--dp-color-text);
  border: 1px solid var(--dp-color-border); border-radius: var(--dp-radius-detail-panel);
  box-shadow: 0 18px 48px rgba(30, 20, 80, .14);
}
.dp-nav-group ul { list-style: none; margin: var(--dp-space-10) 0 0; padding: 0; display: grid; gap: var(--dp-space-8); }
html body .nav-links div.dp-nav-panel div.dp-nav-panel-in a {
  display: inline; font-size: 15px !important; font-weight: 400; line-height: 1.35; color: var(--dp-color-text-secondary);
  text-decoration: none;
}
html body .nav-links div.dp-nav-panel div.dp-nav-panel-in a.dp-nav-group-title {
  font-size: 17px !important; font-weight: 500; color: var(--dp-color-text);
}
html body .nav-links div.dp-nav-panel div.dp-nav-panel-in a:hover,
html body .nav-links div.dp-nav-panel div.dp-nav-panel-in a:focus-visible { color: var(--dp-color-black); text-decoration: underline; text-underline-offset: 3px; }
html body .nav-links div.dp-nav-panel div.dp-nav-panel-in a.dp-nav-all {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--dp-space-24); border: 1px solid var(--dp-color-text); border-radius: var(--dp-radius-pill);
  font-size: 15px !important; font-weight: 500; color: var(--dp-color-text); text-decoration: none;
}
@media (prefers-reduced-motion: reduce) { .dp-nav-panel, .dp-nav-drop > a .dp-nav-chevron { transition: none; } }

.dp-menu-services { border-bottom: 1px solid #dcd8f2; }
.dp-menu-services > summary {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 4px; cursor: pointer;
  font-size: 17px; font-weight: 500; color: #000; list-style: none;
}
.dp-menu-services > summary::-webkit-details-marker { display: none; }
.dp-menu-services > summary::after { content: ""; width: 9px; height: 9px; margin-right: 6px; border: solid currentColor;
  border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); transition: transform .2s ease; }
.dp-menu-services[open] > summary::after { transform: rotate(-135deg); }
.dp-menu-services-list { display: flex; flex-direction: column; padding: 0 0 8px 12px; }
html body div.menu-sheet div.menu-panel .dp-menu-services-list a { border-bottom: 0; padding: 8px 4px; font-size: 16px !important; font-weight: 500; }
html body div.menu-sheet div.menu-panel .dp-menu-services-list a.dp-menu-sub { padding-left: 20px; font-weight: 400; color: var(--dp-color-text-secondary); }

/* ---- 7. Home first screen: one photograph (tools/replace_images.py) instead of lawn + cut-out girl ---------- */
.hero .hero-photo { position: absolute; inset: 0; display: block; }
.hero .hero-photo .hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero .hero-kid-space { display: none; }
@media (min-width: 761px) and (max-width: 1180px) {
  .hero .hero-kid-space { display: block; grid-area: portrait; min-height: 380px; }
  .hero .hero-photo .hero-bg { object-position: 40% 50%; }
}
@media (max-width: 760px) {
  .hero .hero-kid-space { display: block; height: 300px; }
  .hero .hero-photo .hero-bg { object-position: 50% 62%; }
}

/* booking dialog after a sent request: only the thank-you and the Telegram link (booking-submit.js) */
.dp-booking-done { display: none; }
html body .dp-booking--done > :not(.dp-booking-done):not(.dp-booking-close) { display: none !important; }
html body .dp-booking--done > .dp-booking-done {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0 4px;
}
.dp-booking-done-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px;
  border-radius: 50%; background: #00D88A; color: #00140C;
}
html body .dp-booking-done .dp-booking-done-title { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.2; outline: none; }
.dp-booking-done-text { margin: 0; font-size: 17px; line-height: 1.5; color: #00140C; }
.dp-booking-done-text + .dp-booking-done-text { color: #4D5A55; }
html body .dp-booking-done .dp-booking-done-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 12px; padding: 0 28px;
  border-radius: 999px; background: #000; color: #fff; font-size: 17px; font-weight: 500; text-decoration: none;
}
.dp-booking-done-link:hover { background: #0B3B2A; }
.dp-booking-done-link:focus-visible { outline: 2px solid #00D88A; outline-offset: 3px; }
@media (max-width: 599px) {
  html body .dp-booking-done .dp-booking-done-title { font-size: 20px; }
  html body .dp-booking-done .dp-booking-done-link { align-self: stretch; }
}

/* map placeholder until «Показать карту» (map_facade.py): no Yandex cookies before the click */
.dp-map-facade {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
  height: 100%; min-height: 280px; padding: 32px; box-sizing: border-box; background: var(--bg, #EFEDFB);
}
.dp-map-facade-pin {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px;
  border-radius: 50%; background: #00D88A; color: #00140C;
}
html body .dp-map-facade p { margin: 0; }
html body .dp-map-facade .dp-map-facade-title { font-size: 20px; font-weight: 600; line-height: 1.3; color: #00140C; }
html body .dp-map-facade .dp-map-facade-text { font-size: 17px; line-height: 1.5; color: #00140C; }
html body .dp-map-facade .dp-map-facade-button {
  min-height: 54px; margin-top: 12px; padding: 0 28px; border: 1px solid #00140C; border-radius: 999px;
  background: #fff; color: #00140C; font: inherit; font-size: 17px; font-weight: 500; cursor: pointer;
}
.dp-map-facade-button:hover { background: #00140C; color: #fff; }
.dp-map-facade-button:focus-visible { outline: 2px solid #00D88A; outline-offset: 3px; }
html body .dp-map-facade .dp-map-facade-note { font-size: 14px; line-height: 1.4; color: #4D5A55; }
@media (max-width: 599px) {
  .dp-map-facade { padding: 24px 16px; }
  html body .dp-map-facade .dp-map-facade-button { align-self: stretch; }
}

/* first screen: a ~300-byte blurred copy of the photo shows at once instead of a flat green field */
.hero .hero-photo { background: #3E7F2C url("data:image/webp;base64,UklGRhIBAABXRUJQVlA4IAYBAADwBgCdASowACAAPu1kqk4ppaQiKrgN+TAdiWI8hRzBLUFD6NZnWXROHgXzx9bm3rD37F90L3WFP+vO5iYlCXWgAP7jE0YQGLiZbZls+0NHUYe7bAH36f8W9Wu67eMYOBJWp/fah9wP1nTqHECIwge1rG8QV0R+1JT1xjSjtWfz8LwzbMXQkIruHUr2t7F5FKCz1yBKJP8G/JgCJcuszJ0YZxSZNKnrE/NpFOnSKMMUlrvG88pCHLIbJkFu6zoGBCfX6PyDygcnu7/DdCb/UOOnZXu7MsnnxFCfmmH4hdDNgiy6+C0WuzlqReUhwvpchH/prjl96yPgggNGQ7cqkAQat5ffsQAA") 60% 45% / cover no-repeat; }
@media (max-width: 760px) {
  .hero .hero-photo { background-image: url("data:image/webp;base64,UklGRgwBAABXRUJQVlA4IAABAAAwBgCdASogADAAPu1kq1AppSOiqrgMATAdiUqZzAByJDP7BBVxONolUQmgyRjN2BwsMNPMQgHAAy6AAP7pksXLt3MnC0Gjb1P9Cvkz7rl7sOTa64E881I1VO4zykK6ne2DNsSE93D0ur5gHukGfQNALItWYIiSqHoD+TKRq0AUSaDZPltST6MPuqGTqWjRV80+9Gb8JFDHBXEL4QzW68OqnwgPOmVwjx9CGyN3s4dDkdEGjRxd9x0FIoNw9Xauv5hO1WB/VydyKl5TDBupyMU9ODUcxUGZGUpvr7CQQQj1tTbM/KNzuZdgLPmnrxpqzbEK5PIu2WzbkrdEmS8cUAAA"); background-position: 50% 62%; }
}
@media (min-width: 761px) and (max-width: 1180px) { .hero .hero-photo { background-position: 40% 50%; } }
/* tablets and unfolded phones (761–1180): the phone does not fit beside the button and wrapped inside the pill;
   the phone stays in the menu, the pill holds only the booking button */
@media (min-width: 761px) and (max-width: 1180px) {
  html body .hero .hero-cta { width: fit-content; flex-wrap: nowrap; }
  html body .hero .hero-cta > a:not(.btn) { display: none; }
}
/* service first screen on tablets / unfolded phones: three buttons did not fit one row and «Врачи» dropped alone;
   same as phones: booking on the full width, «Цены» and «Врачи» side by side */
@media (min-width: 601px) and (max-width: 1180px) {
  html body .dp-service-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 560px; }
  html body .dp-service-hero-actions > .dp-service-call-link { grid-column: 1 / -1; justify-content: center; }
  html body .dp-service-hero-actions > a { width: 100%; margin: 0; }
}
