/* Small additions needed by the React port (loaded after the original stylesheets). */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* WOW.js hid .wow elements before first paint; do the same until the React port initialises.
   The inline head script removes this after 4s if scripts fail to run. */
html.js:not(.wow-ready) .wow {
  visibility: hidden;
}

/* Inline `!important` declarations of the original markup (React inline styles cannot carry them). */
.header__services-title {
  color: #fff !important;
}

/* Icons of the "Дополнительные возможности" block: the originals had no CSS size,
   so the img gets an explicit size that follows the container breakpoints. */
.additions___item-icon img {
  display: block;
  width: 7rem;
  height: 7rem;
  object-fit: contain;
}
@media screen and (max-width: 499px) {
  .additions___item-icon img {
    width: 5rem;
    height: 5rem;
  }
}
.hero__slide {
  display: flex !important;
}

/* react-slick writes an inline `display: block` on the dots list; the original
   stylesheet lays the hero dots out as a flex row. */
.hero__slider .slick-dots {
  display: flex !important;
}

/* jQuery slick subtracts slide margins from the computed slide width; react-slick
   does not. Turning the 8px side margins of the service thumbnails into padding
   gives the same 173px cards on the same 189px step as the original. */
.modern__slider .slick-slide {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 1rem;
  box-sizing: border-box;
}
@media screen and (max-width: 1535px) {
  .modern__slider .slick-slide {
    padding: 0 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wow,
  .animated {
    animation: none !important;
  }
}
