html[lang="ru"] body {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui,
    sans-serif;
  letter-spacing: 0.01em;
}
html[lang="ru"] h1,
html[lang="ru"] h2,
html[lang="ru"] h3,
html[lang="ru"] .brand,
html[lang="ru"] .primary-nav {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui,
    sans-serif;
}
.zh-site-header {
  border-top: 0;
  box-shadow: 0 8px 24px rgba(7, 31, 59, 0.045);
}
.zh-site-header .nav-inner {
  min-height: 64px;
  gap: 12px;
}
.zh-site-header .brand {
  min-width: 174px;
  gap: 9px;
}
.zh-site-header .brand-mark {
  width: 38px;
  height: 38px;
}
.zh-site-header .brand strong {
  font-size: 13px;
}
.zh-site-header .brand small {
  font-size: 12px;
}
.zh-site-header .primary-nav {
  gap: clamp(16px, 1.6vw, 26px);
}
.zh-site-header .nav-item-mega {
  height: 64px;
}
.zh-site-header .primary-nav > a,
.zh-site-header .primary-nav > .nav-item-mega > a {
  color: #405a76;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.zh-site-header .primary-nav > a:hover,
.zh-site-header .primary-nav > a.is-current,
.zh-site-header .primary-nav > .nav-item-mega > a:hover,
.zh-site-header .primary-nav > .nav-item-mega > a.is-current {
  color: var(--ink);
}
.zh-site-header .primary-nav > a::after,
.zh-site-header .nav-item-mega > a::after {
  bottom: -23px;
}
.zh-site-header .search-trigger {
  width: 36px;
  height: 36px;
}
.zh-site-header .language-button {
  min-width: 60px;
  height: 36px;
  padding: 0 10px;
  font-size: 12px;
}
.zh-site-header .nav-actions {
  gap: 6px;
  margin-left: 0;
}
.zh-site-header .mega-intro small {
  text-transform: none;
}
.zh-site-header .mega-category-grid a {
  font-size: 12px;
}
.zh-site-header .mega-intro strong {
  font-size: 20px;
  line-height: 1.55;
}
html[lang="ru"] .hero-copy h1 {
  max-width: 650px;
  font-size: clamp(3rem, 4.2vw, 4.2rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}
html[lang="ru"] .hero-lede {
  max-width: 570px;
  line-height: 1.9;
}
html[lang="ru"] .section-heading h2,
html[lang="ru"] .page-heading h2 {
  font-size: clamp(2.35rem, 3.2vw, 3.55rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}
html[lang="ru"] .section-heading > p,
html[lang="ru"] .page-heading > p {
  line-height: 1.9;
}
html[lang="ru"] .service-category-card {
  min-height: 94px;
  padding: 14px 38px 14px 14px;
}
html[lang="ru"] .service-category-card strong {
  font-size: 14px;
  line-height: 1.45;
}
html[lang="ru"] .service-category-card small {
  font-size: 12px;
  line-height: 1.5;
}
.zh-letter-icon {
  display: grid !important;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-600);
}
.zh-hospital-logo {
  display: grid !important;
  place-items: center;
  width: auto !important;
  min-width: 62px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-700);
}
.zh-case-grid article > a {
  display: block;
  color: inherit;
}
.zh-case-grid .case-body span {
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 700;
}
.hospital-list article > a {
  display: block;
  height: 100%;
  color: inherit;
}
.hospital-list article {
  overflow: hidden;
}
.hospital-media {
  padding: 0;
  overflow: hidden;
}
.hospital-media img,
.hospital-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hospital-cover::after {
  display: none;
}
.hospital-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hospital-card {
  position: relative;
}
.hospital-rank {
  position: absolute;
  z-index: 3;
  left: 18px;
  top: 18px;
  padding: 7px 11px;
  color: var(--brand-900);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 18px rgba(7, 31, 59, 0.12);
  font-size: 12px;
  font-weight: 700;
}
.zh-hospital-logo {
  padding: 5px !important;
}
.zh-hospital-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hospital-body > p:not(.hospital-location):not(.location) {
  min-height: 84px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.hospital-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}
.hospital-facts span {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.hospital-facts small,
.hospital-facts strong {
  display: block;
}
.hospital-facts small {
  color: var(--muted);
  font-size: 12px;
}
.hospital-facts strong {
  margin-top: 2px;
  color: var(--brand-900);
  font-size: 16px;
}
.hospital-emblem-logo {
  padding: 8px;
  overflow: hidden;
}
.hospital-emblem-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.zh-hospital-logo {
  width: 64px !important;
  min-width: 64px !important;
  height: 64px !important;
}
html[lang="ru"] .process-row h3,
html[lang="ru"] .stage-card h3,
html[lang="ru"] .subcondition-card h3 {
  line-height: 1.5;
}
html[lang="ru"] .process-row p,
html[lang="ru"] .stage-card li {
  line-height: 1.75;
}
html[lang="ru"] .process-steps h3 {
  font-size: 18px;
  line-height: 1.5;
}
html[lang="ru"] .process-steps p {
  font-size: 13px;
  line-height: 1.75;
}
html[lang="ru"] .process-steps small {
  letter-spacing: 0.08em;
}
html[lang="ru"] .video-caption strong {
  font-size: 25px;
  line-height: 1.45;
}
html[lang="ru"] .story-body h3 {
  line-height: 1.55;
}
html[lang="ru"] .story-quote {
  font-size: 23px;
  line-height: 1.45;
}
html[lang="ru"] .page-hero-copy h1,
html[lang="ru"] .detail-hero h1 {
  font-size: clamp(2.9rem, 4.1vw, 4.25rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}
html[lang="ru"] .specialty-name {
  font-size: 12px;
  line-height: 1.55;
}
html[lang="ru"] .specialty-choice {
  min-height: 72px;
}
html[lang="ru"] .care-reason-copy h3 {
  line-height: 1.55;
}
html[lang="ru"] .care-reason-copy p {
  line-height: 2;
}
html[lang="ru"] .form-grid input,
html[lang="ru"] .form-grid select,
html[lang="ru"] .form-grid textarea {
  font-size: 13px;
}
html[lang="ru"] .hospital-grid .hospital-media {
  height: 200px;
}
html[lang="ru"] .hospital-grid .hospital-body {
  padding: 24px 22px 22px;
}
html[lang="ru"] .hospital-grid .hospital-body > .hospital-location {
  min-height: 0 !important;
  width: fit-content !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 0 13px !important;
  padding: 6px 11px !important;
  color: var(--brand-700) !important;
  border: 1px solid #c6daf0 !important;
  border-radius: 999px !important;
  background: #eaf3fc !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
}
html[lang="ru"] .hospital-grid .hospital-location svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[lang="ru"] .hospital-grid .hospital-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.4;
}
html[lang="ru"]
  .hospital-grid
  .hospital-body
  > p:not(.hospital-location):not(.location) {
  min-height: 66px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  -webkit-line-clamp: 3;
}
html[lang="ru"] .hospital-grid .hospital-facts {
  margin: 14px 0;
}
html[lang="ru"] .hospital-grid .hospital-facts span {
  padding: 9px 11px;
}
html[lang="ru"] .hospital-grid .card-actions {
  margin-top: 0;
  padding-top: 14px;
}
html[lang="ru"] .sp-hero-copy h1 {
  font-size: clamp(3rem, 4.2vw, 4.45rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
html[lang="ru"] .sp-heading h2 {
  font-size: clamp(2.35rem, 3.55vw, 3.75rem);
  line-height: 1.26;
  letter-spacing: -0.025em;
}
html[lang="ru"] .sp-card h3,
html[lang="ru"] .sp-service-columns h3 {
  line-height: 1.5;
}
html[lang="ru"] .hospital-title h1 {
  font-size: clamp(2.7rem, 3.7vw, 3.9rem);
  line-height: 1.15;
}
.zh-planning-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}
.zh-planning-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  min-height: 190px;
  padding: 28px;
  border: 1px solid rgba(var(--brand-rgb), 0.13);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(var(--brand-rgb), 0.055);
}
.zh-planning-card:last-child {
  grid-column: 1/-1;
}
.zh-planning-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  font-weight: 800;
}
.zh-planning-card h3 {
  margin: 3px 0 12px;
  font-size: 21px;
}
.zh-planning-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}
.zh-footer .footer-column a {
  line-height: 1.65;
}
.zh-footer .footer-bottom {
  align-items: center;
}
@media (max-width: 1240px) {
  .zh-site-header .brand {
    min-width: 156px;
  }
  .zh-site-header .brand small {
    display: none;
  }
  .zh-site-header .primary-nav {
    gap: 10px;
  }
  .zh-site-header .primary-nav > a,
  .zh-site-header .primary-nav > .nav-item-mega > a {
    font-size: 14px;
  }
}
@media (max-width: 1100px) {
  .zh-site-header .primary-nav {
    top: 64px;
  }
  .zh-site-header .brand small {
    display: block;
  }
  .zh-planning-sections {
    grid-template-columns: 1fr;
  }
  .zh-planning-card:last-child {
    grid-column: auto;
  }
}
@media (max-width: 780px) {
  html[lang="ru"] .hero-copy h1,
  html[lang="ru"] .page-hero-copy h1,
  html[lang="ru"] .detail-hero h1,
  html[lang="ru"] .sp-hero-copy h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.35rem);
  }
  html[lang="ru"] .section-heading h2,
  html[lang="ru"] .page-heading h2,
  html[lang="ru"] .sp-heading h2 {
    font-size: clamp(2rem, 8vw, 2.65rem);
  }
  html[lang="ru"] .service-category-card {
    min-height: 86px;
  }
  .zh-planning-card {
    grid-template-columns: 44px 1fr;
    min-height: 0;
    padding: 22px;
  }
  .zh-planning-card > span {
    width: 40px;
    height: 40px;
  }
}

/* English-specific typography и overflow protection. */
html[lang="ru"] body,
html[lang="ru"] button,
html[lang="ru"] input,
html[lang="ru"] select,
html[lang="ru"] textarea {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}
html[lang="ru"] h1,
html[lang="ru"] h2,
html[lang="ru"] h3,
html[lang="ru"] .brand,
html[lang="ru"] .primary-nav {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.025em;
}
html[lang="ru"] .primary-nav {
  gap: clamp(14px, 1.55vw, 25px);
  font-size: 13px;
}
html[lang="ru"] .brand-name {
  font-size: 14px;
  white-space: nowrap;
}
html[lang="ru"] .brand-tagline {
  font-size: 9px;
  letter-spacing: .08em;
}
html[lang="ru"] .hero-copy h1,
html[lang="ru"] .page-hero-copy h1,
html[lang="ru"] .detail-hero h1,
html[lang="ru"] .sp-hero-copy h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  max-width: 13ch;
}
html[lang="ru"] .section-heading h2,
html[lang="ru"] .page-heading h2,
html[lang="ru"] .sp-heading h2,
html[lang="ru"] .faq-intro h2,
html[lang="ru"] .contact-panel h2,
html[lang="ru"] .sp-cta h2,
html[lang="ru"] .sp-editorial h2 {
  font-size: clamp(32px, 3.65vw, 52px);
  line-height: 1.08;
  max-width: 18ch;
}
html[lang="ru"] .specialty-name,
html[lang="ru"] .filter-chip,
html[lang="ru"] .directory-card h3,
html[lang="ru"] .hospital-card h3,
html[lang="ru"] .expert-card h3,
html[lang="ru"] .subcondition-card h3,
html[lang="ru"] .care-service-card h3,
html[lang="ru"] .team-card h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}
html[lang="ru"] .specialty-name {
  font-size: 12px;
  line-height: 1.25;
}
html[lang="ru"] .specialty-choice {
  min-height: 76px;
  padding-inline: 13px;
}
html[lang="ru"] .specialty-page-link,
html[lang="ru"] .button,
html[lang="ru"] .btn,
html[lang="ru"] .card-actions a,
html[lang="ru"] .card-actions button {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
html[lang="ru"] .directory-filter-bar button,
html[lang="ru"] .filter-chip {
  min-height: 38px;
  line-height: 1.2;
}
html[lang="ru"] .care-stage-tabs button {
  min-height: 74px;
  padding-inline: 18px;
}
html[lang="ru"] .care-journey-summary,
html[lang="ru"] .planning-intro,
html[lang="ru"] .sp-hero-copy > p {
  max-width: 66ch;
}
html[lang="ru"] .sp-hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1.04;
}
html[lang="ru"] .page-hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(40px, 4.35vw, 58px);
  line-height: 1.04;
}
html[lang="ru"] .page-hero-copy h1 em,
html[lang="ru"] .sp-hero-copy h1 em,
html[lang="ru"] .page-hero-copy h1 .en-accent {
  display: block;
}
html[lang="ru"] .page-hero-copy h1 .en-accent {
  color: var(--brand-600);
}
html[lang="ru"] .info-hero h1 {
  max-width: 18ch;
  font-size: clamp(40px, 4.5vw, 60px);
  line-height: 1.06;
}
html[lang="ru"] .section-heading h2,
html[lang="ru"] .sp-heading h2 {
  font-size: clamp(31px, 2.9vw, 44px);
  line-height: 1.12;
}
html[lang="ru"] .section-heading h2 {
  max-width: none;
}
html[lang="ru"] .sp-heading h2 {
  max-width: 26ch;
}
html[lang="ru"] .section-heading {
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .35fr);
  gap: clamp(36px, 4vw, 64px);
}
html[lang="ru"] .section-heading > p {
  max-width: 380px;
  color: #71839a;
  font-size: 15px;
  line-height: 1.75;
}
html[lang="ru"] .zh-site-header .primary-nav {
  gap: clamp(13px, 1.15vw, 20px);
}
html[lang="ru"] .zh-site-header .primary-nav > a,
html[lang="ru"] .zh-site-header .primary-nav > .nav-item-mega > a {
  color: #697d93;
  font-size: 12px;
  font-weight: 450;
}
html[lang="ru"] .zh-site-header .primary-nav > a:hover,
html[lang="ru"] .zh-site-header .primary-nav > a.is-current,
html[lang="ru"] .zh-site-header .primary-nav > .nav-item-mega > a:hover,
html[lang="ru"] .zh-site-header .primary-nav > .nav-item-mega > a.is-current {
  color: #284867;
}
html[lang="ru"] .footer-grid {
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(145px, .72fr));
  gap: clamp(28px, 4vw, 64px);
}
@media (max-width: 1120px) {
  html[lang="ru"] .primary-nav { gap: 12px; font-size: 12px; }
  html[lang="ru"] .language-button { padding-inline: 10px; }
  html[lang="ru"] .specialty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 981px) и (max-width: 1439px) {
  html[lang="ru"] .zh-site-header .shell {
    max-width: none;
    padding-inline: 20px;
  }
  html[lang="ru"] .zh-site-header .brand {
    min-width: 148px;
    gap: 7px;
  }
  html[lang="ru"] .zh-site-header .brand-mark {
    width: 34px;
    height: 34px;
  }
  html[lang="ru"] .zh-site-header .brand strong {
    font-size: 12px;
  }
  html[lang="ru"] .zh-site-header .brand small {
    display: none;
  }
  html[lang="ru"] .zh-site-header .primary-nav {
    gap: 12px;
  }
  html[lang="ru"] .zh-site-header .primary-nav a {
    color: #718398;
    font-size: 10.5px;
    font-weight: 450;
  }
  html[lang="ru"] .zh-site-header .search-trigger {
    width: 32px;
    height: 32px;
  }
  html[lang="ru"] .zh-site-header .language-button {
    min-width: 46px;
    height: 32px;
    padding-inline: 8px;
  }
}
@media (min-width: 981px) и (max-width: 1120px) {
  html[lang="ru"] .zh-site-header .shell {
    padding-inline: 14px;
  }
  html[lang="ru"] .zh-site-header .brand {
    min-width: 132px;
  }
  html[lang="ru"] .zh-site-header .primary-nav {
    gap: 8px;
  }
  html[lang="ru"] .zh-site-header .primary-nav a {
    font-size: 10px;
  }
  html[lang="ru"] .zh-site-header .search-trigger {
    display: none;
  }
}
@media (min-width: 1200px) и (max-width: 1439px) {
  html[lang="ru"] .zh-site-header .primary-nav {
    gap: 14px;
  }
  html[lang="ru"] .zh-site-header .primary-nav a {
    font-size: 11.5px;
  }
}
@media (max-width: 760px) {
  html[lang="ru"] .hero-copy h1,
  html[lang="ru"] .page-hero-copy h1,
  html[lang="ru"] .detail-hero h1,
  html[lang="ru"] .sp-hero-copy h1 { font-size: clamp(38px, 12vw, 54px); }
  html[lang="ru"] .specialty-grid { grid-template-columns: 1fr; }
  html[lang="ru"] .footer-grid { grid-template-columns: 1fr 1fr; }
  html[lang="ru"] .specialty-explorer-heading {
    flex-direction: column;
  }
  html[lang="ru"] .specialty-heading-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  html[lang="ru"] .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* Dynamic English CMS: five-column footer и resilient long labels. */
html[lang="ru"] .footer-grid,
html[lang="ru"] .updated-footer {
  grid-template-columns: minmax(220px, 1.25fr) repeat(4, minmax(128px, .7fr));
  gap: clamp(24px, 3vw, 48px);
}
html[lang="ru"] .cms-directory-card h2,
html[lang="ru"] .cms-profile-page h1,
html[lang="ru"] .expert-hospital-name {
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (max-width: 1080px) {
  html[lang="ru"] .footer-grid,
  html[lang="ru"] .updated-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[lang="ru"] .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  html[lang="ru"] .footer-grid,
  html[lang="ru"] .updated-footer { grid-template-columns: 1fr; }
}

/* Russian text-length adaptation; visual tokens come from cms-visual.css. */
html[lang="ru"] .zh-site-header .primary-nav { gap: clamp(7px, .75vw, 13px); }
html[lang="ru"] .zh-site-header .primary-nav > a,
html[lang="ru"] .zh-site-header .primary-nav > .nav-item-mega > a { font-size: 13px; }
html[lang="ru"] .zh-site-header .brand { min-width: 142px; }
html[lang="ru"] .page-heading h2,
html[lang="ru"] .section-heading h2,
html[lang="ru"] .sp-heading h2 { max-width: 30ch; text-wrap: balance; }
html[lang="ru"] .service-team-card h3,
html[lang="ru"] .cms-hospital-card h3,
html[lang="ru"] .directory-expert-card h2 { overflow-wrap: anywhere; hyphens: auto; }
html[lang="ru"] .service-team-card p,
html[lang="ru"] .cms-hospital-card p { overflow-wrap: anywhere; }
html[lang="ru"] .service-category-card small,
html[lang="ru"] .cms-specialty-panel .specialty-detail-summary p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
html[lang="ru"] .cms-service-doctors .expert-role,
html[lang="ru"] .cms-directory-doctors .expert-role {
  display: -webkit-box;
  max-height: 3.3em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
html[lang="ru"] .zh-cms-home .hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(40px, 4.4vw, 60px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
html[lang="ru"] .zh-cms-home .service-category-card small {
  max-height: 3.2em;
  -webkit-line-clamp: 2;
}
@media (min-width: 981px) and (max-width: 1240px) {
  html[lang="ru"] .zh-site-header .brand small { display: none; }
  html[lang="ru"] .zh-site-header .brand { min-width: 112px; }
  html[lang="ru"] .zh-site-header .primary-nav { gap: 6px; }
  html[lang="ru"] .zh-site-header .primary-nav > a,
  html[lang="ru"] .zh-site-header .primary-nav > .nav-item-mega > a { font-size: 12px; }
}
@media (max-width: 980px) {
  html[lang="ru"] .zh-site-header .brand { min-width: 0; }
  html[lang="ru"] .section-heading { grid-template-columns: 1fr; }
}
