/* Контейнер блока */
.about-us-container {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  /* максимальная ширина контейнера */
  gap: 80px;
  margin: 50px 0;
  padding-left: 60px;
  /* выравнивание с логотипом, подбери под твою тему */
  box-sizing: border-box;
}
.about-text-holder {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

.e-con-inner {
  margin: 0 !important;
}

.e-con {
  --container-max-width: 100% !important;
}

/* Левая колонка */
.about-us-left {
  flex: 0 0 50%;
  /* 50% ширины */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* контент сверху */
}

/* Заголовок и текст */
.about-us-left h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-us-left p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* Кнопка Связаться */
.about-us-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 500;
  background: #f57840;
  color: #fff;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  text-decoration: none;
  width: 20%;
}

.about-us-button:hover {
  background: #e67600;
}

/* Правая колонка */
.about-us-right {
  flex: 0 0 50%;
  position: relative;
  display: flex;
  justify-content: center;
  
}

/* Контейнер картинок */
.about-us-images {
  position: relative;
  width: 100%;
  /* подстраивается под правую половину */
  max-width: 400px;
  height: auto;
}

/* Картинки накладываются друг на друга */
.about-us-images img {
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.5s ease;
}

.about-us-images img {
  cursor: pointer;
}

.about-us-images img:not(.pos1):hover {
  transform: translateX(-50%) scale(1.03);
  opacity: 0.8;
}

.about-us-images img {
  transform: none !important;
  opacity: 1 !important;
  animation: none !important;
}

@keyframes hintPulse {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

.about-us-images img.pos2 {
  animation: hintPulse 1.8s ease-in-out 2;
}

.about-us-images::after {
  content: attr(data-after);
  position: absolute;
  bottom: -80px;
  right: 0px;
  font-size: 18px;
  color: #999;
}

.about-us-images img.pos1 {
  z-index: 3;
  opacity: 1;
}

.about-us-images img.pos2 {
  z-index: 2;
  opacity: 0.5;
  bottom: -30px;
  right: 30px;
}

.about-us-images img.pos3 {
  z-index: 1;
  opacity: 0.3;
  bottom: -60px;
  right: 60px;
}

/* Медиа-запросы для десктопов */
@media (max-width: 1600px) {
  .about-us-images {
    max-width: 450px;
  }
}

@media (max-width: 1440px) {
  .about-us-images {
    max-width: 400px;
  }
}

@media (max-width: 1280px) {
  .about-us-images {
    max-width: 350px;
  }
}

/* === 1600px === */
@media (max-width: 1600px) {
  .about-us-container {
    gap: 70px;
  }

  .about-us-left h1 {
    font-size: 34px;
  }

  .about-us-left p {
    font-size: 17px;
  }

  .about-us-images {
    max-width: 480px;
  }

  .about-us-images img {
    transform: scale(1.02);
    transform-origin: right bottom;
  }
}

/* === 1440px === */
@media (max-width: 1440px) {
  .about-us-container {
    gap: 60px;
    padding-left: 40px;
  }

  .about-us-left {
    flex: 0 0 52%;
  }

  .about-us-right {
    flex: 0 0 48%;
  }

  .about-us-left p {
    font-size: 16px;
  }

  .about-us-images {
    max-width: 440px;
  }

  .about-us-images img {
    transform: scale(1.05);
    transform-origin: right bottom;
  }
}

/* === 1280px === */
@media (max-width: 1280px) {
  .about-us-container {
    gap: 50px;
    padding-left: 30px;
  }

  .about-us-left h1 {
    font-size: 30px;
  }

  .about-us-left p {
    font-size: 16px;
  }

  .about-us-button {
    width: 30%;
  }

  .about-us-images {
    max-width: 400px;
  }

  .about-us-images img {
    transform: scale(1.1);
  }
}

/* === 1100px — граница перед переходом в колонку === */
@media (max-width: 1100px) {
  .about-us-container {
    gap: 40px;
    padding-left: 20px;
  }

  .about-us-left {
    flex: 0 0 55%;
  }

  .about-us-right {
    flex: 0 0 45%;
  }

  .about-us-left h1 {
    font-size: 28px;
  }

  .about-us-left p {
    font-size: 15px;
  }

  .about-us-images {
    max-width: 370px;
  }

  .about-us-images img {
    transform: scale(1.15);
  }
}

/* === 1024px — планшеты, переносим вправо под текст, но сохраняем НАСЛОЕНИЕ === */
@media (max-width: 1024px) {
  .about-us-container {
    flex-direction: column;
    gap: 35px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-us-left,
  .about-us-right {
    width: 100%;
    flex: unset;
  }

  .about-us-button {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    width: 40%;
  }

  /* теперь блок с картинками идёт под текст и центрируется */
  .about-us-right {
    display: flex;
    justify-content: center;
    max-width: 600px;
  }

  .about-us-images {
    display: flex;
    justify-content: center;
    margin-top: 300px;
    margin-bottom: 50px;
    /* высота обязательна для абсолютного позиционирования */
  }

  /* --- возвращаем НАЛОЖЕНИЕ как на десктопе --- */
  .about-us-images img {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    width: 100%;
    /* адаптивность сохраняем */
  }

  .about-us-images img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .about-us-images img.pos1 {
    z-index: 3;
    opacity: 1;
    bottom: -30px;
    right: 0;
  }

  .about-us-images img.pos2 {
    z-index: 2;
    opacity: 0.5;
    bottom: -60px;
    right: 30px;
    left: calc(50% - 30px);
  }

  .about-us-images img.pos3 {
    z-index: 1;
    opacity: 0.3;
    bottom: -90px;
    right: 60px;
    left: calc(50% - 60px);
  }
}

/* === 767px → 600px — убрать огромную высоту === */
@media (max-width: 767px) and (min-width: 601px) {
  .about-us-right {
  margin-top: 50px;
  }
  .about-us-images {
    margin-right: 200px;
    max-width: 400px; /* чуть меньше — ближе к планшетам */
     /* вместо 70vh — нормальная высота */
    
  }

  /* Смещения адаптируем, чтобы выглядело как на планшете */
  .about-us-images img.pos1 {
    bottom: 0;
  }

  .about-us-images img.pos2 {
    bottom: -20px;
    left: calc(50% - 10%);
  }

  .about-us-images img.pos3 {
    bottom: -40px;
    left: calc(50% - 20%);
  }
}

/* === 600px — телефоны поменьше (промежуточный адаптив) === */
@media (max-width: 600px) {
 .about-us-right {
  margin-top: 0px !important;
 }
  .about-us-images {
    margin-right: 150px !important;
    max-width: 400px; /* чуть меньше — ближе к планшетам */
  }

  .about-us-images img.pos1 {
    z-index: 3;
    opacity: 1;
    bottom: 0;
  }

  /* уменьшаем смещение, чтобы картинки не выезжали за границу */
  .about-us-images img.pos2 {
    left: calc(50% - 10%);
    bottom: -30px;
  }

  .about-us-images img.pos3 {
    left: calc(50% - 20%);
    bottom: -60px;
  }
}

/* === 480px — маленькие телефоны === */
@media (max-width: 480px) {
  .about-us-left h1 {
    font-size: 20px;
  }

  .about-us-left p {
    font-size: 13px;
  }

  .about-us-button {
    width: 60%;
    font-size: 13px;
  }
 .about-us-right {
  margin-top: 220px !important;
 }
  .about-us-images {
    margin-right: 150px !important;
    margin-top: 0 !important;
    max-width: 400px; /* чуть меньше — ближе к планшетам */
     /* вместо 70vh — нормальная высота */
  }

  .about-us-images img.pos2 {
    left: calc(50% - 10%);
    bottom: -30px;
  }

  .about-us-images img.pos3 {
    left: calc(50% - 20%);
    bottom: -60px;
  }
}
/* === 380px — маленькие телефоны === */
@media (max-width: 380px) {
.about-us-left h1 {
    font-size: 20px;
  }

  .about-us-left p {
    font-size: 13px;
  }

  .about-us-button {
    width: 60%;
    font-size: 13px;
  }
 .about-us-right {
  margin-top: 150px !important;
 }
  .about-us-images {
    margin-right: 100px !important;
    margin-top: 0 !important;
    max-width: 400px; /* чуть меньше — ближе к планшетам */
     /* вместо 70vh — нормальная высота */
  }

  .about-us-images img.pos2 {
    left: calc(50% - 10%);
    bottom: -30px;
  }

  .about-us-images img.pos3 {
    left: calc(50% - 20%);
    bottom: -60px;
  }
}
