/* Language-specific layout tweaks (no effect on EN / TR / CN unless scoped) */

/* Offcanvas mobile menu — Cyrillic / CJK / Turkish strings run wider in Thunder */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  html.site-lang-ru .px-offcanvas-2-wrapper .tp-offcanvas-menu > nav > ul > li > a,
  html.site-lang-cn .px-offcanvas-2-wrapper .tp-offcanvas-menu > nav > ul > li > a,
  html.site-lang-tr .px-offcanvas-2-wrapper .tp-offcanvas-menu > nav > ul > li > a {
    font-size: clamp(36px, 6vw, 50px);
  }
}

@media (max-width: 767px) {
  html.site-lang-ru .px-offcanvas-2-wrapper .tp-offcanvas-menu > nav > ul > li > a {
    font-size: clamp(28px, 8.2vw, 38px);
    letter-spacing: -0.02em;
  }

  html.site-lang-cn .px-offcanvas-2-wrapper .tp-offcanvas-menu > nav > ul > li > a {
    font-size: clamp(30px, 8.5vw, 40px);
    text-transform: none;
    letter-spacing: 0;
  }

  html.site-lang-tr .px-offcanvas-2-wrapper .tp-offcanvas-menu > nav > ul > li > a {
    font-size: clamp(28px, 8vw, 38px);
  }
}

/* Section headings — Cyrillic runs wider in Thunder; scale down for RU on tablet/mobile */
html.site-lang-ru .bf-about-title-wrap .bf-section-title,
html.site-lang-ru .bf-service-subtitle-box .bf-section-title.fs-75,
html.site-lang-ru .des-footer-title,
html.site-lang-ru .des-footer-title a {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 1199px) {
  html.site-lang-ru .bf-about-title-wrap .bf-section-title br {
    display: block;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  html.site-lang-ru .bf-about-title-wrap .bf-section-title {
    font-size: clamp(44px, 4.8vw, 52px);
    letter-spacing: -0.02em;
  }

  html.site-lang-ru .bf-service-subtitle-box .bf-section-title.fs-75 {
    font-size: clamp(42px, 4.5vw, 50px);
    letter-spacing: -0.02em;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  html.site-lang-ru .bf-about-title-wrap .bf-section-title {
    font-size: clamp(38px, 5vw, 46px);
    letter-spacing: -0.02em;
    line-height: 1.05;
  }

  html.site-lang-ru .bf-service-subtitle-box .bf-section-title.fs-75 {
    font-size: clamp(34px, 4.2vw, 42px);
    letter-spacing: -0.02em;
    line-height: 1.05;
  }

  html.site-lang-ru .des-footer-title,
  html.site-lang-ru .des-footer-title a {
    font-size: clamp(72px, 9vw, 140px);
    letter-spacing: -0.03em;
    line-height: 1.05;
  }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
  html.site-lang-ru .bf-about-title-wrap .bf-section-title {
    font-size: clamp(34px, 6.5vw, 42px);
    letter-spacing: -0.02em;
    line-height: 1.05;
  }

  html.site-lang-ru .bf-service-subtitle-box .bf-section-title.fs-75 {
    font-size: clamp(30px, 5.8vw, 38px);
    letter-spacing: -0.02em;
    line-height: 1.08;
  }

  html.site-lang-ru .des-footer-title,
  html.site-lang-ru .des-footer-title a {
    font-size: clamp(44px, 8vw, 64px);
    letter-spacing: -0.03em;
    line-height: 1.05;
  }
}

@media (max-width: 575px) {
  html.site-lang-ru .bf-about-title-wrap .bf-section-title {
    font-size: clamp(30px, 7.5vw, 38px);
    letter-spacing: -0.03em;
    line-height: 1.08;
  }

  html.site-lang-ru .bf-service-subtitle-box .bf-section-title.fs-75 {
    font-size: clamp(26px, 6.5vw, 34px);
    letter-spacing: -0.03em;
    line-height: 1.1;
  }

  html.site-lang-ru .des-footer-title,
  html.site-lang-ru .des-footer-title a {
    font-size: clamp(32px, 8.5vw, 48px);
    letter-spacing: -0.03em;
    line-height: 1.08;
  }
}
