@charset "UTF-8";
/* =============================================================================
   CUSTOM HEADER
   — replaces Divi's native #main-header
============================================================================= */
:root {
  --header-height: 80px;
  --header-color-dark: #0d1317;
  --header-color-accent: #ebd14a;
  --header-color-white: #ffffff;
}

/* Body padding — push content below the fixed header.
   Extra selectors override Divi's body.et_fixed_nav inline styles. */
body,
body.et_fixed_nav,
body.et-fixed-header {
  padding-top: var(--header-height) !important;
}

/* Dark / transparent variants: header overlays the hero, no push needed */
body.home,
body.home.et_fixed_nav,
body.page-id-185,
body.page-id-185.et_fixed_nav,
body.page-id-505,
body.page-id-505.et_fixed_nav,
body.page-id-590,
body.page-id-590.et_fixed_nav,
body.page-id-628,
body.page-id-628.et_fixed_nav {
  padding-top: 0 !important;
}

/* ---- Header wrapper ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--header-height);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.site-header__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Variants ---- */
.site-header--dark {
  background-color: var(--header-color-dark);
}

.site-header--transparent {
  background-color: transparent;
}

.site-header--white {
  background-color: var(--header-color-white);
  box-shadow: 0 1px 0 rgba(13, 19, 23, 0.08);
}

/* ---- Scroll states (toggled by JS) ---- */
.site-header--hidden {
  transform: translateY(-100%);
}

.site-header--sticky {
  background-color: var(--header-color-white) !important;
  box-shadow: 0 2px 24px rgba(13, 19, 23, 0.1) !important;
}

/* ---- Logo ---- */
.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo-img {
  height: 52px;
  width: auto;
  display: block;
}

/* Show white logo on dark/transparent; dark logo on white */
.site-header--dark .site-header__logo-img--dark,
.site-header--transparent .site-header__logo-img--dark {
  display: none;
}

.site-header--white .site-header__logo-img--white {
  display: none;
}

/* When sticky, always dark logo regardless of original variant */
.site-header--sticky .site-header__logo-img--white {
  display: none !important;
}

.site-header--sticky .site-header__logo-img--dark {
  display: block !important;
}

/* ---- Desktop nav wrapper ---- */
.site-header__nav {
  display: flex;
  align-items: center;
}

/* ---- Nav menu list ---- */
.site-header__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Nav links ---- */
.site-header__menu .menu-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  padding: 20px 0;
}

/* Text colour per variant */
.site-header--dark .site-header__menu .menu-item > a,
.site-header--transparent .site-header__menu .menu-item > a {
  color: #fff;
}

.site-header--white .site-header__menu .menu-item > a,
.site-header--sticky .site-header__menu .menu-item > a {
  color: var(--header-color-dark);
}

.site-header__menu .menu-item > a:hover {
  color: var(--header-color-accent) !important;
}

/* ---- Dropdown arrow on parent items ---- */
.site-header__menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.site-header--dark .site-header__menu .menu-item-has-children > a::after,
.site-header--transparent .site-header__menu .menu-item-has-children > a::after {
  filter: brightness(0) invert(1);
}

/* Sticky (scroll up) → dark arrow */
.site-header--sticky .site-header__menu .menu-item-has-children > a::after {
  filter: none;
}

.site-header__menu .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* ---- Dropdown submenu (level 2) ---- */
.site-header__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  /* border-radius: 8px; */
  box-shadow: 0 8px 32px rgba(13, 19, 23, 0.12);
  list-style: none;
  margin: 0;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}

.site-header__menu .menu-item-has-children {
  position: relative;
}

.site-header__menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header__menu .sub-menu .menu-item > a {
  padding: 13px 22px;
  color: var(--header-color-dark) !important;
  font-size: 16px;
}

.site-header__menu .sub-menu .menu-item > a:hover {
  color: var(--header-color-accent) !important;
  background: rgba(13, 19, 23, 0.04);
}

/* ---- Level-2 items that have children: arrow → indicator ---- */
.site-header__menu .sub-menu .menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__menu .sub-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' fill='none'%3E%3Cpath d='M1 1l4 4-4 4' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s ease;
  filter: none;
}

/* Active/hovered level-2 parent: yellow text + yellow arrow */
.site-header__menu .sub-menu .menu-item-has-children:hover > a {
  color: var(--header-color-accent) !important;
}

.site-header__menu .sub-menu .menu-item-has-children:hover > a::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' fill='none'%3E%3Cpath d='M1 1l4 4-4 4' stroke='%23ebd14a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---- Flyout submenu (level 3) ---- */
.site-header__menu .sub-menu .sub-menu {
  top: -15px;
  left: 99%;
  min-width: 240px;
  /* border-radius: 0 8px 8px 0; */
  box-shadow: 8px 0 32px rgba(13, 19, 23, 0.08);
  transform: translateX(-6px);
  border-left: 1px solid rgba(13, 19, 23, 0.06);
}

.site-header__menu .sub-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.site-header__menu > .menu-item-has-children > .sub-menu {
  /* border-radius: 8px; */
}

.site-header__menu > .menu-item-has-children > .sub-menu > .menu-item-has-children:first-child:hover ~ .menu-item,
.site-header__menu > .menu-item-has-children > .sub-menu > .menu-item-has-children:hover {
  background: transparent;
}

/* ---- Phone button ---- */
.site-header__menu .phone-btn-menu > a {
  padding: 15px 20px !important;
  border: 1px solid currentColor !important;
  /* border-radius: 4px; */
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.site-header--dark .site-header__menu .phone-btn-menu > a,
.site-header--transparent .site-header__menu .phone-btn-menu > a {
  color: #fff;
}

.site-header--white .site-header__menu .phone-btn-menu > a,
.site-header--sticky .site-header__menu .phone-btn-menu > a {
  color: var(--header-color-dark);
}

.site-header--dark .site-header__menu .phone-btn-menu > a:hover,
.site-header--transparent .site-header__menu .phone-btn-menu > a:hover {
  background: #fff;
  color: var(--header-color-dark) !important;
}

.site-header--white .site-header__menu .phone-btn-menu > a:hover,
.site-header--sticky .site-header__menu .phone-btn-menu > a:hover {
  background: var(--header-color-dark);
  color: #fff !important;
}

/* ---- Language switcher ---- */
.menu-item-lang-switcher {
  position: relative;
  list-style: none;
  padding: 20px 0;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  transition: color 0.2s ease;
}

.site-header--dark .lang-switcher-btn,
.site-header--transparent .lang-switcher-btn {
  color: #fff;
}

.site-header--white .lang-switcher-btn,
.site-header--sticky .lang-switcher-btn {
  color: var(--header-color-dark);
}

.lang-switcher-btn:hover {
  color: var(--header-color-accent);
}

.lang-switcher-btn__arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lang-switcher-btn[aria-expanded=true] .lang-switcher-btn__arrow {
  transform: rotate(180deg);
}

.lang-switcher-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 100px;
  background: #fff;
  /* border-radius: 8px; */
  box-shadow: 0 8px 32px rgba(13, 19, 23, 0.12);
  list-style: none;
  margin: 0;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}

.lang-switcher-btn[aria-expanded=true] ~ .lang-switcher-dropdown,
.menu-item-lang-switcher:hover .lang-switcher-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher-dropdown li {
  list-style: none;
}

.lang-switcher-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--header-color-dark);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switcher-dropdown a:hover {
  color: var(--header-color-accent);
  background: rgba(13, 19, 23, 0.04);
}

/* ---- Mobile lang switcher (hidden on desktop) ---- */
.header-lang-mobile {
  display: none;
}

/* ---- Burger button ---- */
.site-header__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: inherit;
  flex-shrink: 0;
}

.site-header__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.site-header--dark .site-header__burger,
.site-header--transparent .site-header__burger {
  color: #fff;
}

.site-header--white .site-header__burger {
  color: var(--header-color-dark);
}

/* Burger → X */
.site-header__burger.is-active .site-header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__burger.is-active .site-header__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header__burger.is-active .site-header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================================================
   MOBILE NAVIGATION DRAWER
============================================================================= */
/* Mobile nav panel — opens below the fixed header */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 9998;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 24px 48px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 19, 23, 0.3);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.mobile-nav-open .mobile-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-nav-open {
  overflow: hidden;
}

/* Nav list */
.mobile-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav .menu-item-has-children {
  position: relative;
}

.mobile-nav__menu > .menu-item > a {
  display: flex;
  align-items: center;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--header-color-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 19, 23, 0.08);
  transition: color 0.2s ease;
}

.mobile-nav__menu > .menu-item > a:hover {
  color: var(--header-color-accent);
}

.mobile-nav__menu .menu-item-has-children.is-open > a {
  color: var(--header-color-accent);
}

/* Mobile submenu toggle */
.mob-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
}

.mob-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--header-color-dark);
  border-bottom: 2px solid var(--header-color-dark);
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.menu-item-has-children.is-open > .mob-toggle::after {
  transform: translate(-50%, -30%) rotate(-135deg);
  border-color: var(--header-color-accent);
}

.mobile-nav .menu-item-has-children > a {
  padding-right: 48px !important;
}

/* Sub-menu — works for any nesting depth */
.mobile-nav__menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 16px;
  display: none;
}

.mobile-nav__menu .menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.mobile-nav__menu .sub-menu .menu-item > a {
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--header-color-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 19, 23, 0.06);
}

.mobile-nav__menu .sub-menu .menu-item > a:hover {
  color: var(--header-color-accent);
}

.mobile-nav__menu .sub-menu .menu-item-has-children.is-open > a {
  color: var(--header-color-accent);
}

/* Level 3 */
.mobile-nav__menu .sub-menu .sub-menu {
  padding-left: 16px;
}

.mobile-nav__menu .sub-menu .sub-menu .menu-item > a {
  font-size: 14px;
  font-weight: 400;
  padding: 10px 0;
  border-bottom: 1px solid rgba(13, 19, 23, 0.04);
}

/* Hide lang switcher from mobile nav menu list — it's in the header bar now */
.mobile-nav .menu-item-lang-switcher {
  display: none;
}

/* Mobile phone button */
.mobile-nav .phone-btn-menu > a {
  display: flex;
  justify-content: center;
  padding: 12px 24px !important;
  border: 1px solid var(--header-color-dark) !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--header-color-dark) !important;
  margin-top: 24px;
  text-align: center;
}

/* ---- Header lang switcher (mobile only) ---- */
.header-lang-mobile__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--header-color-dark);
  padding: 4px 0;
  white-space: nowrap;
}

.header-lang-mobile__btn svg {
  transition: transform 0.2s ease;
}

.header-lang-mobile__btn.is-open svg {
  transform: rotate(180deg);
}

.header-lang-mobile__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 80px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(13, 19, 23, 0.12);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: none;
  z-index: 10;
}

.header-lang-mobile__btn.is-open + .header-lang-mobile__dropdown {
  display: block;
}

.header-lang-mobile__dropdown li {
  list-style: none;
}

.header-lang-mobile__dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--header-color-dark);
  text-decoration: none;
}

.header-lang-mobile__dropdown a:hover {
  color: var(--header-color-accent);
}

/* =============================================================================
   RESPONSIVE — show burger, hide desktop nav
============================================================================= */
@media (max-width: 1080px) {
  .site-header__nav {
    display: none;
  }
  .site-header__burger {
    display: flex;
    margin-left: auto;
  }
  .header-lang-mobile {
    display: block;
    position: relative;
    margin-left: 16px;
  }
  .site-header {
    background-color: var(--header-color-white) !important;
    box-shadow: 0 1px 0 rgba(13, 19, 23, 0.08) !important;
    transform: none !important;
  }
  .site-header .site-header__logo-img--white {
    display: none !important;
  }
  .site-header .site-header__logo-img--dark {
    display: block !important;
  }
  .site-header__burger {
    color: var(--header-color-dark) !important;
  }
  body,
  body.et_fixed_nav,
  body.home,
  body.home.et_fixed_nav,
  body.page-id-185,
  body.page-id-185.et_fixed_nav,
  body.page-id-505,
  body.page-id-505.et_fixed_nav,
  body.page-id-590,
  body.page-id-590.et_fixed_nav,
  body.page-id-628,
  body.page-id-628.et_fixed_nav {
    padding-top: var(--header-height) !important;
  }
  .site-header__container {
    padding: 0 24px;
  }
}
/* ── Local_service FAQ toggles — reliable styling (Divi per-module CSS on imported posts
      regenerates incompletely; force the intended look on every toggle). ── */
body.single-local_service .et_pb_toggle {
  border: 0 !important;
  border-bottom: 2px solid #D1D1D1 !important;
  background-color: transparent !important;
  padding: 25px 20px 25px 0 !important;
  box-shadow: none !important;
}

body.single-local_service .et_pb_toggle .et_pb_toggle_title,
body.single-local_service .et_pb_toggle_close .et_pb_toggle_title,
body.single-local_service .et_pb_toggle_open .et_pb_toggle_title {
  font-family: "DIN Condensed", Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 40px !important;
  color: #0D1317 !important;
  line-height: 1.1em !important;
}

@media (max-width: 980px) {
  body.single-local_service .et_pb_toggle .et_pb_toggle_title {
    font-size: 28px !important;
  }
}
/* ── Hero title (.service-title-h1, an <h2>): the section H2s render large (80px, like the
      parent practice pages), but the hero is a long multi-word string ("Personal Injury
      Attorney in {City}") that looks oversized at the raw Divi ~96px. Cap ONLY the hero so
      it reads in fewer lines; section H2s are NOT inside .service-title-h1 and stay 80px. ── */
body.single-local_service .service-title-h1 h1,
body.single-local_service .service-title-h1 h2 {
  font-size: 64px !important;
  line-height: 0.98em !important;
}

@media (max-width: 980px) {
  body.single-local_service .service-title-h1 h1,
  body.single-local_service .service-title-h1 h2 {
    font-size: 48px !important;
  }
}
@media (max-width: 767px) {
  body.single-local_service .service-title-h1 h1,
  body.single-local_service .service-title-h1 h2 {
    font-size: 34px !important;
  }
}
/* ── Long-form left H1 ("Personal Injury Attorney in {City}", et_pb_text_32) renders
      in a light weight; make it bold (700) to match the section H2s. ── */
body.single-local_service .et_pb_text_32 h1,
body.single-local_service .et_pb_text_32 h1 strong {
  font-weight: 700 !important;
}

/* ── Hero subhead (.service-semibold-p, an <h5>): the imported local_service module
      ships no font rule, so match the other service pages' subhead exactly —
      Inter 700, 20px (cf. /car-accidents/ .et_pb_text_2 h5). ── */
body.single-local_service .service-semibold-p h5,
body.single-local_service .service-semibold-p {
  font-family: "Inter", Helvetica, Arial, Lucida, sans-serif !important;
  font-weight: 700 !important;
}

/* ── Internal links inside the local_service SEO long-form (.ds-longform) read as
      plain text otherwise; make them visibly links in the brand gold. ── */
body.single-local_service .ds-longform a,
body.single-local_service .ds-longform a:link,
body.single-local_service .ds-longform a:visited {
  color: #b89f1f !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  font-weight: 700 !important;
}

body.single-local_service .ds-longform a:hover {
  color: #0D1317 !important;
}

/* ── Same brand-gold treatment for the SEO long-form internal links on the
      service / practice pages (post_type=page, all languages EN/RU/ES/CR). The
      long-form section's text modules carry module_class="ds-longform". ── */
.ds-longform a,
.ds-longform a:link,
.ds-longform a:visited,
.et_pb_text.ds-longform .et_pb_text_inner a,
#page-container .et_pb_text.ds-longform .et_pb_text_inner a,
#page-container .et_pb_text.ds-longform .et_pb_text_inner a:link,
#page-container .et_pb_text.ds-longform .et_pb_text_inner a:visited {
  color: #b89f1f !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  font-weight: 700 !important;
}

.ds-longform a:hover,
#page-container .et_pb_text.ds-longform .et_pb_text_inner a:hover {
  color: #0D1317 !important;
}

/* ── Long-form SEO body weight: normalize the whole block to the site body
      weight (Divi global Inter 600). Some long-forms had modules set to Inter
      500 AND text wrapped in inline font-weight:400 spans, so they rendered
      thinner than other pages. Override the inline spans too so every long-form
      reads at a consistent 600. Links stay 700 (rule below wins by specificity). ── */
#page-container .et_pb_text.ds-longform .et_pb_text_inner,
#page-container .et_pb_text.ds-longform .et_pb_text_inner p,
#page-container .et_pb_text.ds-longform .et_pb_text_inner li,
#page-container .et_pb_text.ds-longform .et_pb_text_inner span {
  font-weight: 600 !important;
}

#page-container .et_pb_text.ds-longform .et_pb_text_inner a,
#page-container .et_pb_text.ds-longform .et_pb_text_inner a span {
  font-weight: 700 !important;
}

/* ── "Approach" card titles (Individual strategy / Continuous support / Maximum
      compensation) render in dark text modules; their markup is inconsistent
      (<b> on only the first), so force the card titles bold wherever the section
      appears. Only the approach cards use dark-layout <h3>. ── */
.et_pb_bg_layout_dark .et_pb_text_inner h3,
.et_pb_text_inner h3 b,
.et_pb_text_inner h3 strong {
  font-weight: 700 !important;
}

/* ── RU local pages: long-form section H2/H3 render at near-H1 size (Cyrillic
      makes it look oversized) — shrink them. Scoped to RU so the live EN pages
      are untouched. ── */
html[lang=ru] body.single-local_service .ds-longform h2,
html[lang=ru] body.single-local_service .ds-longform h2 strong,
html[lang=ru] body.single-local_service .ds-longform h3,
html[lang=ru] body.single-local_service .ds-longform h3 strong {
  font-size: 32px !important;
  line-height: 1.2 !important;
}

@media (max-width: 767px) {
  html[lang=ru] body.single-local_service .ds-longform h2,
  html[lang=ru] body.single-local_service .ds-longform h2 strong {
    font-size: 26px !important;
  }
}
/* ── RU local pages: "How we handle" card titles (modules 18/20/22; the 01/02/03
      numbers are 17/19/21 and stay) — long Cyrillic words ("Профессиональные
      переговоры") overflow, so shrink the titles to fit. ── */
html[lang=ru] body.single-local_service .et_pb_text_18 .et_pb_text_inner h3,
html[lang=ru] body.single-local_service .et_pb_text_20 .et_pb_text_inner h3,
html[lang=ru] body.single-local_service .et_pb_text_22 .et_pb_text_inner h3 {
  font-size: 42px !important;
  line-height: 1.1 !important;
}

/* ── RU local headings must never break a word mid-character (Divi sets
      overflow-wrap:break-word, which orphaned the last letter — e.g. the CTA
      "Не откладывайт/е" because that heading's text module is narrower on the
      local pages than on the practice pages). Keep whole words; they fit the
      wider column. ── */
html[lang=ru] body.single-local_service h1,
html[lang=ru] body.single-local_service h2,
html[lang=ru] body.single-local_service h3 {
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* ── Local-service "case cards" row carries the (otherwise undefined) .ds-flex-grid
      class. Programmatically-created RU posts don't get Divi's per-post column-width
      CSS, so the columns collapse. Define .ds-flex-grid as an explicit grid so the
      cards render correctly regardless of Divi's per-post CSS generation. ── */
body.single-local_service .ds-flex-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

body.single-local_service .ds-flex-grid > .et_pb_column {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

@media (max-width: 980px) {
  body.single-local_service .ds-flex-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  body.single-local_service .ds-flex-grid {
    grid-template-columns: 1fr;
  }
}
/* ── RU local pages: match the RU practice pages (e.g. /ru/practice/car-accidents/).
      Section H2s stay at the natural 60px and case cards at 42px (same as the
      practice page); ONLY the two elements that rendered LARGER than the practice
      page are brought down to the practice size: the hero (.service-title-h1, was
      64px) and the "personalized solutions" title (.solutions__title, was 80px) →
      60px. RU-scoped, so the live EN pages are untouched. ── */
html[lang=ru] body.single-local_service .service-title-h1 h1,
html[lang=ru] body.single-local_service .service-title-h1 h2 {
  font-size: 60px !important;
  line-height: 1.05em !important;
}

@media (max-width: 980px) {
  html[lang=ru] body.single-local_service .service-title-h1 h1,
  html[lang=ru] body.single-local_service .service-title-h1 h2 {
    font-size: 44px !important;
  }
}
@media (max-width: 767px) {
  html[lang=ru] body.single-local_service .service-title-h1 h1,
  html[lang=ru] body.single-local_service .service-title-h1 h2 {
    font-size: 34px !important;
  }
}
/* "Мы предлагаем … юридические решения" (.solutions__title) — components.css sets
   80px via a high-specificity rule; bring it to the practice page's 60px. */
html[lang=ru] body.single-local_service .solutions__title,
html[lang=ru] .et-db #et-boc .et-l h2.solutions__title {
  font-size: 60px !important;
  line-height: 1.05em !important;
}

/* ── RU local pages: FORCE the full heading type-scale to MATCH the RU service /
      practice template (e.g. /ru/practice/car-accidents/). The programmatically-
      created local_service posts get inconsistent Divi per-module CSS — section
      H2s render 80px on prod vs 60px on the service pages — so set them explicitly
      instead of relying on Divi's generation. RU-scoped; EN pages untouched. ── */
/* section headings: we-handle / how-we-handle / free-eval / compensation / FAQ /
   time-limited / practice-areas  →  60px (service-page size) */
html[lang=ru] body.single-local_service .et_pb_text_inner h2 {
  font-size: 60px !important;
  line-height: 1.05em !important;
}

@media (max-width: 980px) {
  html[lang=ru] body.single-local_service .et_pb_text_inner h2 {
    font-size: 44px !important;
  }
}
@media (max-width: 767px) {
  html[lang=ru] body.single-local_service .et_pb_text_inner h2 {
    font-size: 32px !important;
  }
}
/* case-card titles  →  42px (service-page size) */
html[lang=ru] body.single-local_service .ds-flex-grid h3 {
  font-size: 42px !important;
  line-height: 1.05em !important;
}

/* in-article long-form subheads stay small (doubled class wins over the H2 rule above) */
html[lang=ru] body.single-local_service .ds-longform.ds-longform h2,
html[lang=ru] body.single-local_service .ds-longform.ds-longform h2 strong,
html[lang=ru] body.single-local_service .ds-longform.ds-longform h3,
html[lang=ru] body.single-local_service .ds-longform.ds-longform h3 strong {
  font-size: 30px !important;
  line-height: 1.25 !important;
}

/* ── EN heading-size flattening REMOVED 2026-06-16: EN local service pages must render
      at the SAME larger heading scale as their parent practice pages (section H2 80px,
      case-card H3 / longform subheads at Divi defaults), not the previous 60px/42px/30px.
      Divi's per-module CSS supplies the larger sizes (verified to match /practice/*).
      RU local pages keep their own RU-scoped flatten above. ── */
/* never break a word mid-character on any local page heading */
body.single-local_service h1,
body.single-local_service h2,
body.single-local_service h3 {
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* solutions title 60px override REMOVED 2026-06-16 (EN) — let it render at the parent
   practice-page size (80px). RU keeps its own scoped rule above. */
/* ── CTA "Don't delay / Не откладывайте" heading module is hard-capped at
      max_width:400px in the Divi module — in RU the long heading wraps into 4
      cramped lines. Let it fill its column (≈610px) so it reads in 2 lines. ── */
body.single-local_service .et_pb_text_28 {
  max-width: none !important;
}