/* [CLAUDE-B] 18.11.2026 · MaxcroW shell: one header row and footer lockup for HoReCa (hub + 10 landings), About and Blog (+ articles).
   Header row = exact Dental geometry: container min(1240px, 100% - 40px) centred; height 67px (62px <=760);
   brand Manrope 800 clamp(22px,2.25vw,30px), mark 1.14em, divider 11+11px (only where the brand has a <small>);
   links 14px with 21px gap (>1100) and 13px/13px (951-1100) in the Dental nav font; CTA 169x44 at the right edge; desktop from 951px
   (/mx-shell/topbar-950.css, portal-header-950.css/.js and the HoReCa topbar script use the same 950/951 breakpoint).
   Colours, accent, mark and CTA skin stay those of each section. */
:root{--pbar-h:67px}
@media (max-width:760px){:root{--pbar-h:62px}}
#topbar{height:var(--pbar-h)}
#topbar .topbar__in{max-width:none;width:min(1240px,calc(100% - 40px));height:var(--pbar-h);padding:0;margin:0 auto;gap:28px}
#topbar .topbar__logo{gap:9px;font-size:clamp(22px,2.25vw,30px);line-height:1.05}
#topbar .topbar__mark{width:1.14em;height:1.14em}
#topbar .topbar__brand{flex-direction:row;align-items:baseline;line-height:1.05}
#topbar .topbar__brand b{font-family:Manrope,"Segoe UI",sans-serif;font-weight:800;font-size:1em;letter-spacing:-.055em;line-height:1.05}
#topbar .topbar__brand small{font-family:Manrope,sans-serif;font-weight:800;font-size:.34em;line-height:1;letter-spacing:.14em;margin:0 0 0 11px;padding:0 0 0 11px;border-left:1px solid rgba(254,139,102,.55)}
@media (min-width:951px){
  #topbar .topbar__nav{gap:21px}
  #topbar .topbar__link{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;font-weight:600;letter-spacing:normal;padding:0;height:var(--pbar-h)}
  #topbar .topbar__cta{box-sizing:border-box;width:169px;min-height:44px;height:44px;padding:8px 12px;justify-content:center;font-size:13px;border-radius:12px}
}
@media (min-width:951px) and (max-width:1100px){
  #topbar .topbar__in{gap:12px}
  #topbar .topbar__nav{gap:13px}
  #topbar .topbar__link{font-size:13px}
}
@media (max-width:950px){
  #topbar .topbar__burger{margin-left:auto}
}
@media (max-width:560px){
  #topbar .topbar__logo{font-size:clamp(19px,5.4vw,24px)}
  #topbar .topbar__brand small{font-size:8px;margin-left:7px;padding-left:7px}
}


/* footer brand lockup (accepted HoReCa footer): mark + name before the description; colours follow the footer */
.foot-lockup{display:inline-flex;align-items:center;gap:10px;text-decoration:none;margin:0 0 14px;color:inherit}
.foot-lockup .topbar__mark{display:inline-flex;width:34px;height:34px;flex:none}
.foot-lockup .topbar__mark img{width:100%;height:100%;display:block}
.foot-lockup .topbar__brand{display:inline-flex;align-items:baseline;gap:0}
.foot-lockup .topbar__brand b{font-family:Manrope,"Segoe UI",sans-serif;font-weight:800;font-size:18px;letter-spacing:-.02em;color:inherit}
.foot-lockup .topbar__brand small{font-weight:800;text-transform:uppercase;color:var(--accent,#fe8b66)}

/* About/Blog footer only: three real columns on desktop (brand · sections · contacts), contacts column ends at the container edge;
   below 1081px the existing studio.css tablet/mobile grid applies unchanged */
@media (min-width:1081px){
  .foot--portal .foot-grid{grid-template-columns:minmax(230px,1.25fr) minmax(170px,.85fr) minmax(300px,1fr)}
  .foot--portal .foot-col--contacts{justify-self:stretch}
}

/* 320px: long API names and links in article text, unbreakable article titles, the /med/ display line (pre-existing overflow, audit D-07) */
.bp-body :is(p, li, td) :is(code, a), .bp-body :is(p, li) code { overflow-wrap: anywhere; }
.bp-title { overflow-wrap: break-word; hyphens: auto; }
/* [CLAUDE-B] 19.11 · mobile article H1: whole words, balanced lines; only an over-long word may break */
@media (max-width: 760px) { .bp-title { -webkit-hyphens: manual; hyphens: manual; text-wrap: balance; } }
@media (max-width: 380px) { .display { overflow-wrap: break-word; hyphens: auto; } }

/* /kejsy/: the brand caption over the real case cover (the template already styles `.agp-case__image img` with its gradient) */
.agp-case__poster--photo { background: none !important; }
.agp-case__poster--photo::before, .agp-case__poster--photo::after { display: none; }

/* [CLAUDE-B] 19.11 · «Читайте также»: air between the note and the cards and before the footer, equal card heights */
.bp-related { padding-bottom: clamp(48px, 6vw, 80px); }
.bp-related > h2 { margin-bottom: 10px; }
.bp-related .bp-rel-note { margin: 0 0 clamp(20px, 2.4vw, 28px); max-width: 64ch; }
.bp-related__grid { align-items: stretch; }
.bp-related__grid .bp-rel { height: 100%; box-sizing: border-box; }

/* [CLAUDE-B] 19.11 · article share: VK, OK, Telegram links, copy-link and system share buttons in one row */
.bp-share .bp-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 10px;
  background: var(--white, #fff); border: 1px solid var(--line-strong, #c9c1b4); color: var(--ink-2, #2b2620); cursor: pointer; font: inherit; }
.bp-share .bp-share__btn:hover { border-color: var(--accent, #fe8b66); color: var(--accent-deep, #c2502b); }
.bp-share .bp-share__btn svg { width: 18px; height: 18px; }
.bp-share .bp-share__btn[hidden] { display: none; }
.bp-share a:focus-visible, .bp-share .bp-share__btn:focus-visible { outline: 3px solid var(--accent, #fe8b66); outline-offset: 2px; }
.bp-share .bp-share__status { font-weight: 600; }
.bp-share .bp-share__status:empty { display: none; }

/* [CLAUDE-B] 19.11 · legal pages: the two buttons at the end in the MaxcroW action style (face, ink, edge and the light step with its thin edge) */
.legalpage .back .lbtn { white-space: normal; text-align: center; line-height: 1.3; }
.legalpage .back .lbtn--p { background: var(--action-face, #fe8b66); border-color: var(--action-edge, #171411); color: var(--action-ink, #171411);
  box-shadow: 6px 6px 0 var(--action-back, #fff), 7px 7px 0 color-mix(in srgb, var(--action-edge, #171411) 42%, transparent); }
.legalpage .back .lbtn--p:hover { background: var(--action-face, #fe8b66); color: var(--action-ink, #171411); transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--action-back, #fff), 5px 5px 0 color-mix(in srgb, var(--action-edge, #171411) 42%, transparent); }
.legalpage .back .lbtn--g { background: var(--action-back, #fff); border-color: var(--action-edge, #171411); color: var(--action-ink, #171411);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--action-face, #fe8b66) 40%, #fff), 7px 7px 0 color-mix(in srgb, var(--action-edge, #171411) 42%, transparent); }
.legalpage .back .lbtn--g:hover { color: var(--action-ink, #171411); border-color: var(--action-edge, #171411); transform: translate(2px, 2px); }
@media (max-width: 560px) { .legalpage .back { flex-direction: column; align-items: stretch; } .legalpage .back .lbtn { width: 100%; } }

/* [CLAUDE-B] 19.11 · team detail (/about/, MED services) has a single lead profile now: it takes the whole row; its inner portrait grid stays */
.team-detail .team-detail__layout { grid-template-columns: minmax(0, 1fr); }
