/* Responsive and language support. Original branding and content are retained. */
.language-switch { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; padding: 3px; border: 1px solid rgba(25,60,66,.16); border-radius: 999px; background: #fff; }
.language-option { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; padding: 4px 6px; border: 0; border-radius: 999px; color: #193c42; background: transparent; font: 800 12px/1 Arial,sans-serif; cursor: pointer; }
.language-option.is-active { background: #193c42; color: #fff; }
button:focus-visible, a:focus-visible { outline: 3px solid #188396; outline-offset: 3px; }
body { overflow-wrap: break-word; }
.button { min-width: 0; height: auto; padding-top: 10px; padding-bottom: 10px; text-align: center; line-height: 1.25; white-space: normal; }
.header-top { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; min-width: 0; padding-left: 204px; }
.header-meta { margin-right: auto; white-space: normal; max-width: 240px; }
.desktop-nav { min-width: 0; flex-wrap: wrap; }
.brand { left: 26px; top: 20px; }
.brand img { width: 180px; max-height: 130px; }
.header-consult { width: auto; }
.hero { padding-top: calc(var(--header-height, 172px) + 36px); }
.hero-facts { margin-left: 0; }
.hero-facts span { overflow-wrap: anywhere; }
.specialist-card > div, .specialist-actions, .contacts-box, .contact-footer-actions, .modal-panel > div, .auth-box { min-width: 0; }
.specialist-actions { display: flex; flex-wrap: wrap; }
.specialist-actions .button { flex: 1 1 140px; padding: 10px 12px; }
.review-actions { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.review-card > * { min-width: 0; }
.specialist-card h3 { overflow-wrap: anywhere; }
.contact-footer-actions > .button { max-width: 100%; }
.requisites p { overflow-wrap: anywhere; }
.route-grid b { overflow-wrap: anywhere; }
.sticky-pill { display: flex; flex-wrap: wrap; justify-content: center; border-radius: 28px; gap: 10px 14px; }
.sticky-nav { flex: 1; min-width: 260px; flex-wrap: wrap; }
.sticky-pill .button { white-space: normal; }
.modal-panel { padding-top: 58px; overscroll-behavior: contain; }
.modal-panel h2 { overflow-wrap: anywhere; line-height: 1.15; }
.modal-panel form { min-width: 0; }
.modal-panel input, .modal-panel select, .modal-panel textarea { min-width: 0; max-width: 100%; }
body.has-modal { overflow: hidden; }
.site-header.is-hidden, .sticky-pill:not(.is-visible), .mobile-sticky-bar:not(.is-visible), .mobile-social-bundle:not(.is-open) .mobile-social-drop { visibility: hidden; }
html[lang="zh-CN"] body { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3 { line-height: 1.2; }
.privacy-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.privacy-toolbar .back { padding-top: 10px; padding-bottom: 10px; }
.card h1 { overflow-wrap: anywhere; line-height: 1.1; }
.cabinet-page .site-header { position: relative; top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.cabinet-page .brand { position: static; gap: 16px; }
.cabinet-page .brand img { width: 100px; max-height: 80px; }
.cabinet-page .desktop-nav { display: flex; padding: 0; margin: 0; border: 0; }
.cabinet-page .cabinet-main { padding-top: 48px; }
.auth-card h1, .cabinet-heading { overflow-wrap: anywhere; }
@media (min-width: 981px) and (max-width: 1199px) {
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts span, .hero-facts span:nth-child(n+4) { grid-column: auto; }
}
@media (max-width: 980px) {
  .site-header { padding: 8px 12px; }
  .header-top { display: grid; grid-template-columns: auto 1fr auto; padding: 0; gap: 8px; }
  .brand { position: static; }
  .brand img { width: 108px; max-height: 90px; }
  .header-top > .language-switch { grid-column: 2; grid-row: 1; justify-self: end; }
  .menu-toggle { grid-column: 3; grid-row: 1; min-width: 64px; width: auto; height: 42px; padding: 8px 12px; border-radius: 999px; background: #ef5b2a; color: #fff; }
  .menu-toggle:after { content: none; }
  .mobile-contact-strip { top: calc(var(--header-height, 104px) + 12px); }
  .hero { padding-top: calc(var(--header-height, 104px) + 84px); }
  .sticky-pill { display: none; }
  .site-header.is-menu-open .desktop-nav { max-height: calc(100svh - var(--header-height, 104px) - 24px); overflow-y: auto; }
  .mobile-sticky-bar { position: fixed; left: 8px; right: 8px; top: 6px; z-index: 70; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 7px; min-height: 52px; padding: 6px; border-radius: 999px; background: rgba(18,31,35,.94); color: #fff; box-shadow: 0 18px 52px rgba(0,0,0,.22); transform: translateY(-150%); opacity: 0; pointer-events: none; transition: transform .25s ease,opacity .25s ease; }
  .mobile-sticky-bar.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-sticky-bar .mobile-phone { color: #b8f0f3; padding-left: 8px; font-size: 13px; }
  .mobile-social-bundle { position: relative; }
  .mobile-social-toggle, .mobile-sticky-menu { display: inline-grid; place-items: center; min-width: 48px; min-height: 40px; padding: 8px; border: 0; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }
  .mobile-social-toggle { background: linear-gradient(135deg, var(--pink), var(--aqua)); }
  .mobile-sticky-menu { background: #ef5b2a; }
  .mobile-social-drop { position: absolute; right: 0; top: 48px; display: grid; gap: 7px; padding: 7px; border-radius: 999px; background: rgba(18,31,35,.94); transform: translateY(-8px); opacity: 0; pointer-events: none; }
  .mobile-social-bundle.is-open .mobile-social-drop { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-social-drop a { width: 36px; height: 36px; }
  .mobile-sticky-panel { position: absolute; left: 0; right: 0; top: 62px; display: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 10px; border-radius: 20px; background: rgba(18,31,35,.97); max-height: calc(100svh - 84px); overflow-y: auto; }
  .mobile-sticky-bar.is-menu-open .mobile-sticky-panel { display: grid; }
  .mobile-sticky-panel a, .mobile-sticky-panel > span { min-height: 40px; display: grid; place-items: center; padding: 8px; border-radius: 18px; background: rgba(255,255,255,.12); color: #fff; font-size: 12px; font-weight: 900; text-align: center; }
  .mobile-sticky-panel .mobile-menu-rating { grid-column: 1/-1; background: #ffe86d; color: var(--ink); }
  .mobile-sticky-panel .mobile-menu-meta, .mobile-sticky-panel .language-switch { grid-column: 1/-1; }
  .mobile-sticky-panel .language-switch { justify-self: center; }
}
@media (max-width: 640px) {
  .site-header { padding: 6px 8px; }
  .brand img { width: 86px; max-height: 74px; }
  .header-top { gap: 5px; }
  .header-top > .language-switch .language-option { min-width: 32px; min-height: 34px; }
  .menu-toggle { min-width: 56px; padding: 8px; }
  .specialist-actions { display: grid; grid-template-columns: 1fr; }
  .specialist-card img { object-fit: contain; background: rgba(231,245,242,.35); }
  .hero-kicker { font-size: 12px; line-height: 1.4; }
  .section-head-featured h2 { font-size: clamp(32px, 10.4vw, 48px); overflow-wrap: anywhere; }
  .about-copy span { font-size: clamp(36px, 11vw, 50px); }
  .consult-panel img { max-height: 260px; min-height: 180px; }
  .detail-panel .detail-photo { max-height: 280px; width: 100%; object-fit: contain; }
  .cabinet-page .brand span { max-width: 150px; }
  .cabinet-page .brand img { width: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .sticky-pill, .mobile-sticky-bar, .mobile-contact-strip { transition: none; }
}
