.list-spacer li {margin-bottom: 12px }

/* Allow Zero Block text to wrap on mobile instead of overflowing when
   translated strings are longer than the designed width. Also cap element
   width so absolutely-positioned items don't overflow the viewport. */
@media (max-width: 479px) {
  .tn-atom { white-space: normal !important; word-wrap: break-word; overflow-wrap: break-word; }
  .t396__elem { max-width: calc(100vw - 20px) !important; }
  /* Shift rider portrait left so it isn't covered by the RU/ENG switcher */
  #rec1070593216 .tn-elem[data-elem-id="1748694301789"] {
    left: 154px !important;
  }
}

/* Photo gallery (T979) — justified-row layout, replaces deleted Tilda gallery JS.
   Each row has a fixed height; items flex-grow proportional to their aspect
   ratio so rows fill full width. Aspect ratios are set as inline flex-grow
   by lightbox.js (reads img width/height attrs). */
.t979__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  overflow: visible;
  height: auto !important;
}
.t979__grid-item {
  position: static !important;
  top: auto !important; left: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden;
}
.t979__grid-item > a {
  display: block;
  width: 100%;
  height: 100%;
}
.t979__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Language switcher (RUS/ENG) — pinned top-right */
.pg-lang-switch {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 99999;
  font: 500 13px 'Inter', Arial, sans-serif;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.9);
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pg-lang-switch a {
  color: #888;
  text-decoration: none;
  padding: 0 4px;
}
.pg-lang-switch a:hover { color: #000 }
.pg-lang-switch .pg-lang-switch__active {
  color: #000;
  font-weight: 700;
}
.pg-lang-switch span {
  color: #bbb;
  padding: 0 2px;
}
@media (max-width: 479px) {
  .pg-lang-switch {
    top: 8px;
    right: 8px;
    padding: 3px 7px;
    font-size: 11px;
    letter-spacing: 0.3px;
  }
}

/* Lightbox */
.lb-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.94);
  display: none;
  align-items: center; justify-content: center;
  z-index: 999999;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.lb-overlay.lb-open { display: flex; opacity: 1; }
.lb-overlay img {
  max-width: 95vw; max-height: 92vh;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  cursor: default; user-select: none;
}
.lb-btn {
  position: absolute;
  background: none; border: 0;
  color: #fff; cursor: pointer;
  font-family: sans-serif;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 10px 18px;
}
.lb-btn:hover { opacity: 1 }
.lb-close { top: 12px; right: 18px; font-size: 38px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 52px; line-height: 1; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
@media (max-width: 600px) { .lb-nav { font-size: 38px; padding: 8px 12px; } }

/* EN-only: "Equestrian sports" wraps to two lines on mobile; widen the
   services block and its title so the downstream items don't get pushed down. */
@media (max-width: 479px) {
  html[lang="en"] #rec1070833706 .tn-elem[data-elem-id="1748695578247"] {
    width: 340px !important;
    left: 25px !important;
  }
  html[lang="en"] #rec1070833706 .tn-elem[data-elem-id="1748695651204"] {
    width: 283px !important;
  }
}
