/*
 * Site fixes for the Bitrix-exported landing markup.
 * Loaded by scripts/detox-bitrix.js (see scripts/) on every static page.
 */

/* ----- carousels (replacement for the removed slick/jQuery stack) ----- */
.js-carousel {
  position: relative;
}
.sva-carousel__viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.sva-carousel__viewport::-webkit-scrollbar {
  display: none;
}
.sva-carousel .js-slide {
  flex: 0 0 calc(100% / var(--sva-show, 1)) !important;
  max-width: calc(100% / var(--sva-show, 1)) !important;
  scroll-snap-align: start;
  float: none !important;
}
.sva-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #3949a0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, color 0.2s ease;
}
.sva-carousel__arrow:hover {
  background: #3949a0;
  color: #fff;
}
.sva-carousel__arrow--prev {
  left: -14px;
}
.sva-carousel__arrow--next {
  right: -14px;
}
@media (max-width: 575.98px) {
  .sva-carousel__arrow {
    display: none;
  }
}
.sva-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.sva-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(57, 73, 160, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.sva-carousel__dot.is-active {
  background: #3949a0;
  transform: scale(1.25);
}
.g-theme-architecture-bg-blue-dark-v3 .sva-carousel__dot {
  background: rgba(255, 255, 255, 0.4);
}
.g-theme-architecture-bg-blue-dark-v3 .sva-carousel__dot.is-active {
  background: #fff;
}
/* fade mode (Благодарности): stacked slides */
.sva-carousel__viewport--fade {
  display: block;
  overflow: hidden;
  scroll-snap-type: none;
  position: relative;
  transition: height 0.3s ease;
}
.sva-carousel--fade .js-slide {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  max-width: 100% !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.sva-carousel--fade .js-slide.is-active {
  position: relative !important;
  opacity: 1;
  visibility: visible;
}

/* ----- uniform project card images ----- */
.landing-block-node-card .landing-block-node-card-img {
  height: 240px;
  object-fit: cover;
}
@media (max-width: 575.98px) {
  .landing-block-node-card .landing-block-node-card-img {
    height: 180px;
  }
}

/* ----- uniform gratitude-letter scans ----- */
.landing-block-card-person .landing-block-node-person-photo {
  height: 460px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}
@media (max-width: 991.98px) {
  .landing-block-card-person .landing-block-node-person-photo {
    height: 340px;
  }
}
@media (max-width: 575.98px) {
  .landing-block-card-person .landing-block-node-person-photo {
    height: 280px;
  }
}

/* keep partner logos tidy inside slides */
.js-carousel .landing-block-node-carousel-img {
  margin: 0 auto;
}

/* ----- page hero overlays ----- */
/* Static Bitrix shell pages can lose --bg-overlay during detox, so keep the
   original 50% darkening explicit instead of relying on an inherited var. */
.landing-block-node-img.u-bg-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.5) !important;
}
.landing-block-node-img.u-bg-overlay {
  position: relative;
  isolation: isolate;
}
.landing-block-node-img.u-bg-overlay > .u-bg-overlay__inner {
  position: relative;
  z-index: 1;
}

/* ----- entrance animations for .js-animation blocks ----- */
.sva-anim .js-animation {
  opacity: 0;
}
.sva-anim .js-animation.sva-anim-play {
  opacity: 1;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.sva-anim .js-animation.fadeInDown {
  transform: translateY(-18px);
}
.sva-anim .js-animation.fadeInUp {
  transform: translateY(18px);
}
.sva-anim .js-animation.fadeInLeft {
  transform: translateX(-18px);
}
.sva-anim .js-animation.zoomIn {
  transform: scale(0.96);
}
.sva-anim .js-animation.sva-anim-play.fadeInDown,
.sva-anim .js-animation.sva-anim-play.fadeInUp,
.sva-anim .js-animation.sva-anim-play.fadeInLeft,
.sva-anim .js-animation.sva-anim-play.zoomIn {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .sva-anim .js-animation {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ----- icon fonts (fa-* icons and the legacy icon-* set) ----- */
@font-face {
  font-family: 'SVA-Icon';
  src: url('fonts/icon-main.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'SVA-Far';
  src: url('fonts/icon-far.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
i[class*="fa-"],
i.icon,
.fa {
  font-family: 'FontAwesome' !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
}
/* Bitrix's `far` family points at a partial custom font without these glyphs. */
i.far[class*="fa-"] {
  font-family: 'FontAwesome' !important;
}
.fa-phone-square::before { content: '\f098' !important; }
.fa-envelope::before { content: '\f0e0' !important; }
.fa-globe::before { content: '\f0ac' !important; }
.fa-user::before { content: '\f007' !important; }
.fa-at::before { content: '\f1fa' !important; }
.fa-home::before { content: '\f015' !important; }
.fa-clock-o::before { content: '\f017' !important; }
.fa-cog::before { content: '\f013' !important; }
.fa-cogs::before { content: '\f085' !important; }
.fa-flag-o::before { content: '\f11d' !important; }
.fa-image::before { content: '\f03e' !important; }
.fa-lightbulb-o::before { content: '\f0eb' !important; }
.fa-line-chart::before { content: '\f201' !important; }
.fa-random::before { content: '\f074' !important; }
.fa-sliders::before { content: '\f1de' !important; }
.fa-street-view::before { content: '\f21d' !important; }
.fa-check-square::before { content: '\f14a' !important; }
.fa-child::before { content: '\f1ae' !important; }
.fa-link::before { content: '\f0c1' !important; }
.icon-user::before { content: '\e005' !important; font-family: 'SVA-Icon' !important; }
.icon-calendar::before { content: '\e075' !important; font-family: 'SVA-Icon' !important; }
.icon-settings::before { content: '\e09a' !important; font-family: 'SVA-Icon' !important; }
.icon-diamond::before { content: '\e043' !important; font-family: 'SVA-Icon' !important; }
.icon-call-in::before { content: '\e047' !important; font-family: 'SVA-Icon' !important; }
.icon-badge::before { content: '\e028' !important; font-family: 'SVA-Icon' !important; }
.fa-house-window::before { content: '\e3b3' !important; font-family: 'SVA-Icon' !important; }

/* ----- navbar collapse (guarantees the burger works at narrow widths) ----- */
.collapse:not(.show) {
  display: none;
}
/* the burger icon itself: the hamburger css lived in the removed widget bundle */
.navbar-toggler {
  align-items: center;
  justify-content: center;
}
.navbar-toggler .hamburger-inner,
.navbar-toggler .hamburger-inner::before,
.navbar-toggler .hamburger-inner::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navbar-toggler .hamburger-inner {
  position: relative;
}
.navbar-toggler .hamburger-inner::before,
.navbar-toggler .hamburger-inner::after {
  content: "";
  position: absolute;
  left: 0;
}
.navbar-toggler .hamburger-inner::before {
  top: -7px;
}
.navbar-toggler .hamburger-inner::after {
  top: 7px;
}
@media (max-width: 991.98px) {
  .navbar-expand-lg .navbar-toggler {
    display: flex;
  }
  .navbar-expand-lg .navbar-collapse:not(.show) {
    display: none !important;
  }
}
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
}
