/* Homepage opening section only. Loaded from index.html. */

.mx-hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mx-index-hero.bf-hero-spacing {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 120px;
  padding-bottom: 0;
}

.mx-index-hero > .container-fluid {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 0;
}

.mx-index-hero .bf-hero-top {
  width: 100%;
  margin-bottom: 0;
}

.mx-index-hero .bf-hero-video,
.mx-index-hero .bf-hero-right-content {
  margin-bottom: 0;
}

.mx-index-hero .bf-hero-video video {
  display: block;
  width: min(720px, 100%);
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
}

@media (min-width: 992px) {
  .mx-index-hero .bf-hero-top > .row {
    align-items: center;
    flex-wrap: nowrap;
  }

  .mx-index-hero .bf-hero-top > .row > [class*="col-"]:first-child {
    flex: 0 0 auto;
    width: auto;
    max-width: calc(100% - 440px);
  }

  .mx-index-hero .bf-hero-top > .row > [class*="col-"]:last-child {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .mx-index-hero .bf-hero-video video {
    width: min(720px, 100%);
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 480px;
  }
}

@media (min-width: 1200px) and (min-height: 760px) {
  .mx-index-hero .bf-hero-video video {
    width: 720px;
    height: 480px;
  }
}

@media (max-width: 991px) {
  .mx-index-hero.bf-hero-spacing {
    padding-top: 108px;
  }

  .mx-index-hero .bf-hero-top > .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .mx-index-hero .bf-hero-video {
    margin-bottom: 28px;
  }

  .mx-index-hero .bf-hero-video video {
    width: 100%;
    max-width: 720px;
    height: auto;
    max-height: none;
  }
}

.mx-index-hero .bf-hero-right-content ul,
.mx-index-hero .bf-hero-right-content li,
.mx-index-hero .bf-hero-right-content a {
  overflow: visible;
}

.mx-index-hero .bf-hero-right-content > ul > li {
  margin-bottom: 18px;
}

.mx-index-hero .bf-hero-right-content > ul > li > a {
  font-size: 31.2px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #141414;
  perspective: 160px;
}

.mx-index-hero .bf-hero-right-content > ul > li > a:hover,
.mx-index-hero .bf-hero-right-content > ul > li > a:focus-visible {
  color: #141414;
}

.mx-index-hero .bf-hero-right-content > ul > li > a .explore-text {
  line-height: 1;
  transition: transform 0.5s;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}

.mx-index-hero .bf-hero-right-content > ul > li > a .explore-text::before {
  text-align: right;
  transition: color 0.5s;
}

.mx-index-hero .bf-hero-right-content > ul > li > a:hover .explore-text,
.mx-index-hero .bf-hero-right-content > ul > li > a:focus-visible .explore-text {
  transform: rotateX(90deg) translateY(-0.5em);
}

.mx-index-hero .bf-hero-right-content > ul > li > a:focus-visible {
  outline: 2px solid #141414;
  outline-offset: 4px;
}

.mx-index-hero .bf-hero-right-content > ul > li.mx-hero-prices > a,
.mx-index-hero .bf-hero-right-content > ul > li.mx-hero-prices > a:hover,
.mx-index-hero .bf-hero-right-content > ul > li.mx-hero-prices > a:focus-visible,
.mx-index-hero .bf-hero-right-content > ul > li.mx-hero-prices .explore-text,
.mx-index-hero .bf-hero-right-content > ul > li.mx-hero-prices .explore-text::before {
  background: transparent;
  color: #ffffff;
  padding: 0;
  border: 0;
  box-shadow: none;
  text-decoration: none;
}

@media (min-width: 1200px) {
  .mx-index-hero .bf-hero-right-content > ul > li {
    margin-bottom: 40px;
  }

  .mx-index-hero .bf-hero-right-content > ul > li > a .explore-text {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .mx-index-hero .bf-hero-right-content > ul > li {
    margin-bottom: 8px;
  }

  .mx-index-hero .bf-hero-portfolio-btn {
    margin-top: 16px !important;
  }
}

.des-footer-title {
  line-height: 0.95;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 1400px) {
  .des-footer-title {
    font-size: 72px;
  }
}

html.site-lang-ru .des-footer-title,
html.site-lang-ru .des-footer-title a {
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .des-footer-title {
    font-size: 60px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .des-footer-title {
    font-size: 50px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .des-footer-title,
  html.site-lang-ru .des-footer-title,
  html.site-lang-ru .des-footer-title a {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .des-footer-title {
    font-size: 40px;
  }
}

@media (min-width: 992px) {
  .des-footer-top {
    margin-bottom: 24px;
  }

  .des-footer-middle {
    padding-bottom: 16px;
  }
}

.mx-hero-marquee {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-top: auto;
  overflow: hidden;
  background: #93c572;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.mx-hero-marquee__track {
  display: flex;
  width: max-content;
  animation: mx-hero-marquee 18s linear infinite;
}

.mx-hero-marquee__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.mx-hero-marquee__group > span[data-i18n-key] {
  font-family: var(--tp-ff-thunder);
  font-weight: 700;
  font-size: clamp(42px, calc(100dvh - 680px), 120px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  padding: 0.16em 0 0.08em;
}

.mx-hero-marquee__sep {
  width: 0.7em;
  height: 0.045em;
  min-width: 48px;
  min-height: 3px;
  margin: 0 0.55em;
  background: #ffffff;
  flex: 0 0 auto;
}

@keyframes mx-hero-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .mx-hero-marquee__group > span[data-i18n-key] {
    font-size: clamp(30px, 7.6vw, 40px);
    line-height: 1;
    padding: 0.28em 0 0.22em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mx-hero-marquee__track {
    animation: none;
    transform: none;
    width: 100%;
  }

  .mx-hero-marquee__group:last-child,
  .mx-hero-marquee__sep,
  .mx-hero-marquee__group > span[data-i18n-key]:not(:first-child) {
    display: none;
  }

  .mx-hero-marquee__group {
    width: 100%;
    padding: 0 20px;
  }

  .mx-hero-marquee__group > span[data-i18n-key] {
    white-space: normal;
  }
}

/* REV04 — five homepage headings at half their previous size. */

.bf-about-title-wrap .bf-section-title,
.bf-service-subtitle-box .bf-section-title,
.px-capsule-title,
.bf-portfolio-title,
.in-team-hero-title,
html.site-lang-ru .bf-about-title-wrap .bf-section-title,
html.site-lang-ru .bf-service-subtitle-box .bf-section-title.fs-75 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.bf-about-title-wrap .bf-section-title {
  font-size: 40px;
  line-height: 0.95;
  margin-bottom: 25px;
}

.bf-about-title-wrap .bf-section-title br {
  display: block;
}

.bf-about-video video {
  margin-top: 0;
}

.bf-service-subtitle-box .bf-section-title.fs-75 {
  font-size: 37.5px;
  line-height: 0.95;
}

.px-capsule-title {
  font-size: 50px;
  line-height: 0.9;
}

.px-capsule-title-wrapper {
  padding: 30px 0 0 20px;
}

.bf-portfolio-title {
  font-size: 140px;
  line-height: 0.95;
}

.in-team-hero-title {
  font-size: 100px;
  line-height: 0.9;
}

.in-team-hero-content p {
  padding-left: 245px;
}

@media (min-width: 1400px) and (max-width: 1599px) {
  .in-team-hero-title {
    font-size: 92.5px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .in-team-hero-title {
    font-size: 70px;
  }

  .in-team-hero-content p {
    padding-left: 205px;
  }
}

@media (min-width: 1200px) {
  .bf-service-title-wrap > .row {
    align-items: center;
  }

  .bf-service-title-wrap .bf-service-title-box {
    padding-top: 0;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .px-capsule-title {
    font-size: 40px;
  }

  .bf-portfolio-title {
    font-size: 110px;
  }

  .in-team-hero-title {
    font-size: 67.5px;
  }
}

@media (max-width: 1199px) {
  .bf-about-title-wrap .bf-section-title {
    font-size: 30px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  html.site-lang-ru .bf-about-title-wrap .bf-section-title {
    font-size: clamp(22px, 2.4vw, 26px);
  }

  html.site-lang-ru .bf-service-subtitle-box .bf-section-title.fs-75 {
    font-size: clamp(21px, 2.25vw, 25px);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .px-capsule-title {
    font-size: 35px;
  }

  .bf-portfolio-title {
    font-size: 80px;
  }

  .in-team-hero-title {
    font-size: 50px;
  }

  html.site-lang-ru .bf-about-title-wrap .bf-section-title {
    font-size: clamp(19px, 2.5vw, 23px);
  }

  html.site-lang-ru .bf-service-subtitle-box .bf-section-title.fs-75 {
    font-size: clamp(17px, 2.1vw, 21px);
  }
}

@media (max-width: 767px) {
  .px-capsule-title {
    font-size: 30px;
  }

  .bf-portfolio-title {
    font-size: 38.5px;
  }

  .in-team-hero-title {
    font-size: 40px;
  }

  .px-capsule-title-wrapper {
    padding: 20px 0 0 0;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  html.site-lang-ru .bf-about-title-wrap .bf-section-title {
    font-size: clamp(17px, 3.25vw, 21px);
  }

  html.site-lang-ru .bf-service-subtitle-box .bf-section-title.fs-75 {
    font-size: clamp(15px, 2.9vw, 19px);
  }
}

@media (max-width: 575px) {
  html.site-lang-ru .bf-about-title-wrap .bf-section-title {
    font-size: clamp(15px, 3.75vw, 19px);
  }

  html.site-lang-ru .bf-service-subtitle-box .bf-section-title.fs-75 {
    font-size: clamp(13px, 3.25vw, 17px);
  }
}

@media (max-width: 1199px) {
  .in-team-hero-content p {
    padding-left: 0;
  }
}
