.headline-img-06::before {
  background-image: url("../img/team/400x200%20small%20top.svg");
}

.about-us-page .headline-img-06::before {
  background-position: 54% center;
  background-size: 126% auto;
}

.image-values-1 {
  background-image: url("../img/team/1200x1600%20left%20large.webp");
}

.image-values-2 {
  background-image: url("../img/team/1600x1200%20right%20large.webp");
}

.divider-image-8 {
  background-image: url("../img/team/1920x1200%20middle%20huge.webp");
}

.divider-image-9 {
  background-image: url("../img/team/190x1200%20bottom%20huge.webp");
}

.about-us-page .about-feature__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.about-us-page .about-feature__layout > .about-feature__media-col,
.about-us-page .about-feature__layout > .about-feature__content-col {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

.about-us-page .about-feature__media-col,
.about-us-page .about-feature__content-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-us-page .about-feature__profile-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 0;
}

.about-us-page .about-feature__media {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 16px;
}

.about-us-page .about-feature__media .mxd-team-cards__photo {
  height: auto;
}

.about-us-page .about-feature__media .mxd-team-cards__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.about-us-page .about-feature__media .mxd-team-cards__socials {
  justify-content: center;
}

.about-us-page .about-feature__info {
  width: 100%;
  max-width: 480px;
  margin-top: 16px;
  padding: 0;
  text-align: center;
}

.about-us-page .about-feature__info .mxd-team-cards__name {
  margin-bottom: 6px;
}

.about-us-page .about-feature__info .mxd-team-cards__position {
  margin-bottom: 0;
  opacity: 0.7;
  font-size: 0.95em;
}

.about-us-page .about-feature__content {
  width: 100%;
  max-width: 520px;
  padding-left: 0;
  text-align: center;
}

.about-us-page .about-feature__content .mxd-section-title.pre-grid {
  width: 100%;
  margin-bottom: 0;
}

.about-us-page .about-feature__content .mxd-section-title__title {
  max-width: 520px;
  margin: 0 auto 16px;
}

.about-us-page .about-feature__content .mxd-section-title__descr {
  max-width: 520px;
  margin: 0 auto 24px;
  padding-right: 0;
}

.about-us-page .about-feature__content .mxd-section-title__descr p {
  line-height: 1.6;
}

.about-us-page .about-feature__content .mxd-section-title__controls {
  margin-top: 8px;
  justify-content: center;
}

@media only screen and (min-width: 768px) {
  .about-us-page .about-feature__layout {
    gap: 32px;
  }
}

@media only screen and (min-width: 1200px) {
  .about-us-page .about-feature__layout {
    flex-direction: row;
    justify-content: center;
    gap: 60px;
  }

  .about-us-page .about-feature__layout > .about-feature__media-col {
    width: auto;
    max-width: 480px;
    flex: 0 1 480px;
  }

  .about-us-page .about-feature__layout > .about-feature__content-col {
    width: auto;
    max-width: 520px;
    flex: 0 1 520px;
  }

  .about-us-page .about-feature__content,
  .about-us-page .about-feature__info {
    text-align: left;
  }

  .about-us-page .about-feature__media .mxd-team-cards__socials {
    justify-content: flex-start;
  }

  .about-us-page .about-feature__content .mxd-section-title__title,
  .about-us-page .about-feature__content .mxd-section-title__descr {
    margin-left: 0;
    margin-right: 0;
  }

  .about-us-page .about-feature__content .mxd-section-title__controls {
    justify-content: flex-start;
  }
}

/* --- Compact Menu Dropdown --- */
.mxd-menu__wrapper {
  height: auto;
  max-height: 85vh;
}

.mxd-menu__contain {
  height: auto;
}

.mxd-menu__inner {
  height: auto;
  padding-top: 5.6rem;
}

.mxd-menu__caption {
  margin-bottom: 2.4rem;
}

.main-menu__accordion {
  gap: 0.8rem;
}

.main-menu__link {
  font-size: 2.8rem;
  height: 3.4rem;
  line-height: 3.4rem;
}

.main-menu__link .btn-caption {
  height: 3.4rem;
  line-height: 3.4rem;
}

.mxd-menu__right {
  padding-top: 2.4rem;
}

.mxd-menu__data {
  margin-top: 1.2rem;
  padding-bottom: 1.5rem;
}

@media only screen and (min-width: 768px) {
  .main-menu__link {
    font-size: 3.2rem;
    height: 3.8rem;
    line-height: 3.8rem;
  }
  .main-menu__link .btn-caption {
    height: 3.8rem;
    line-height: 3.8rem;
  }
  .main-menu__accordion {
    gap: 1rem;
  }
  .mxd-menu__caption {
    margin-bottom: 3rem;
  }
}

@media only screen and (min-width: 1200px) {
  .mxd-menu__wrapper {
    height: 100vh;
    max-height: 100vh;
  }
  .mxd-menu__contain {
    height: 100%;
  }
  .mxd-menu__inner {
    height: 100%;
    padding-top: 0;
  }
  .mxd-menu__caption {
    margin-bottom: 4.4rem;
  }
  .main-menu__accordion {
    gap: 2rem;
  }
  .main-menu__link {
    font-size: 5.6rem;
    height: 6.5rem;
    line-height: 6.5rem;
  }
  .main-menu__link .btn-caption {
    height: 6.5rem;
    line-height: 6.5rem;
  }
  .mxd-menu__right {
    padding-top: 0;
  }
  .mxd-menu__data {
    margin-top: 0;
    padding-bottom: 2.6rem;
  }
}
/* --- End Compact Menu Dropdown --- */

/* --- Services List Row Spacing --- */
.mxd-services-list__inner {
  padding: 4rem 0;
}
@media only screen and (min-width: 1200px) {
  .mxd-services-list__inner {
    padding: 8rem 0;
  }
}

.footer-blocks__card .mxd-point-subtitle a {
  white-space: nowrap;
  font-size: clamp(1.6rem, 4.6vw, 2.2rem);
}

/* Fix: Service stacking cards layout on mobile/tablet */
@media only screen and (max-width: 991px) {
  .mxd-services-stack__inner {
    padding: 2rem 2.4rem 0 2.4rem;
  }

  .mxd-services-stack__title {
    margin-bottom: 1.6rem;
  }

  .mxd-services-stack__inner .mxd-services-cards__tags {
    gap: 0.6rem;
    margin-bottom: 1.4rem;
  }

  .mxd-services-stack__info {
    margin-bottom: 1rem;
  }

  .services-stack__image {
    flex: 1 1 0;
    min-height: 0;
    margin-top: -2rem;
  }

  .stack-item:nth-child(3) .services-stack__image .service-img-s {
    clip-path: inset(30% 0 0 0);
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .mxd-services-stack__inner {
    padding: 3rem 3.6rem 0 3.6rem;
  }

  .mxd-services-stack__title {
    margin-bottom: 2rem;
  }

  .mxd-services-stack__inner .mxd-services-cards__tags {
    gap: 0.8rem;
    margin-bottom: 1.8rem;
  }

  .mxd-services-stack__info {
    margin-bottom: 1.4rem;
  }

  .services-stack__image {
    margin-top: -2.5rem;
  }
}

/* --- Video Popup Mobile Centering --- */
.mfp-iframe-holder .mfp-content {
  max-width: 900px;
  margin: 0 auto;
}

@media only screen and (max-width: 767px) {
  .mfp-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mfp-iframe-holder {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    min-height: 100vh;
  }

  .mfp-iframe-holder .mfp-content {
    width: calc(100% - 8px);
    max-width: 100%;
    margin: 0 auto;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .mfp-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .mfp-iframe-holder .mfp-content {
    width: calc(100% - 16px);
    margin: 0 auto;
  }
}
