html[lang="ru"] body {
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

html[lang="ru"] h1,
html[lang="ru"] h2,
html[lang="ru"] h3,
html[lang="ru"] h4,
html[lang="ru"] .qodef-m-title,
html[lang="ru"] .qodef-e-title {
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: none;
}

html[lang="ru"] .qodef-button.qodef-layout--textual,
html[lang="ru"] .qodef-m-text,
html[lang="ru"] .qodef-menu-item-text,
html[lang="ru"] button,
html[lang="ru"] input[type="submit"] {
  letter-spacing: 0.02em;
}

html[lang="ru"] #qodef-page-header .qodef-header-navigation > ul > li > a {
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 1440px) {
  html[lang="ru"] #qodef-page-header .qodef-header-navigation > ul > li > a {
    padding-left: 11px;
    padding-right: 11px;
    font-size: 14px;
  }
}

@media (max-width: 680px) {
  html[lang="ru"] h1,
  html[lang="ru"] h2,
  html[lang="ru"] h3 {
    overflow-wrap: anywhere;
  }
}

/* The Russian sidebar banner keeps the original minimal star-field design.
   Copy is rendered as real text so its centering and typography stay exact. */
html[lang="ru"] .page-id-651 .elementor-element-f8d47ca .qodef-m-image > a,
html[lang="ru"] .widget_astralla_core_single_image[data-area="horoscope-sidearea"] .qodef-m-image {
  position: relative;
  display: block;
}

html[lang="ru"] .page-id-651 .elementor-element-f8d47ca img,
html[lang="ru"] .widget_astralla_core_single_image[data-area="horoscope-sidearea"] img {
  display: block;
  width: 100%;
  aspect-ratio: 332 / 616;
  object-fit: cover;
}

html[lang="ru"] .page-id-651 .elementor-element-f8d47ca .qodef-m-image > a::after,
html[lang="ru"] .widget_astralla_core_single_image[data-area="horoscope-sidearea"] .qodef-m-image::after {
  content: "БЕСПЛАТНЫЙ\AАСТРОРАЗБОР\AДОСТУПЕН\AСЕЙЧАС";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 7%;
  color: #fff;
  font-family: "EB Garamond", serif;
  font-size: clamp(22px, 2vw, 44px);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: 0.035em;
  text-align: center;
  white-space: pre-line;
  pointer-events: none;
}
