.content-Laboratory {
  /*background: linear-gradient(to bottom, #12101a  15%, #3F1387 100%);*/

   background: linear-gradient(
  to bottom,
  #12101a 0%,       
  #2a0d5f 25%,      
  #3a127ac1 50%,      
  #2a0d5f 75%,      
  #12101a 100%      
  );
  color: white;

}


.container-lab-lay {
  display: flex;
  align-items: center;
  justify-content: center; /* выравнивание по центру */
  position: relative;      /* чтобы картинку можно было зафиксировать справа */
  margin-left: 20%;   
  margin-right: 20%;
  margin-top: 5%;
}

.container-lab-lay img { 
  position: absolute;  /* фиксируем картинку справа */
  right: 0;
  width: 200px;
  height: auto;
}

.container-lab-lay h1 {
  font-size: 2em;
  font-weight: 100;
  font-family: Preahvihear;
  letter-spacing: 2px;
  text-align: center;
}



/* Контейнер для двух колонок */
.container-lab-box {
  display: flex;
  justify-content: space-between;
  padding: 50px;
  margin-left: 10%;   
  margin-right: 10%;
  margin-top: 5%;
  align-items: center;
  gap: 20%;
}

/* Левая колонка */
.left-column-lab-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.left-column-lab-box h1 {
  font-size: 2em;
  font-weight: 100;
  margin-bottom: 20px;
  font-family: Preahvihear;
  letter-spacing: 2px;
  transform: rotate(-10deg);
}

.left-column-lab-box img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

/* Правая колонка */
.right-column-lab-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lab_text_1 {
  font-size: 2em;
  line-height: 1.5;
  font-weight: 400;
  font-family: Lato;
}

.lab_text_2 { 
  font-size: 1em; 
  line-height: 1.4; 
  font-weight: 100; 
  font-family: Lato; 
  max-width: 300px; 
  text-align: justify; 
   transform: translate(45%, -50%);
}


.lab_text_3 {
  font-size: 1em;
  line-height: 1.5;
  font-weight: 400;
  font-family: Lato;
  text-align: justify;
}



.highlight-wrapper {
  display: flex;           /* ставим блок и картинку в ряд */
  align-items: center;     /* выравниваем по центру */
  gap: 20px;               /* отступ между ними */
}

.highlight-box-lab-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  flex: 1; /* пусть занимает доступное место */
}

.highlight-img {
  width: 200px;
  height: auto;
}

.lab-button-container img {
  width: 150px;
  height: 150px;
  margin-right: 8px;
  transform: translate(-20%, 50%) rotate(-10deg);
  animation: sway 3s ease-in-out infinite;
}



/*Нижняя часть лаборатории*/

.container-lab-lowerlay {
  display: flex;
  align-items: center;       /* стрелка и текст по одной линии по центру */
  justify-content: space-between;
  padding: 50px;
  margin-left: 20%;   
  margin-right: 20%;
  margin-top: 3%;
  gap: 40px;                 /* расстояние между колонками */
}

.lowerlay-left {
  flex: 0 0 auto;
}

.lowerlay-left h3 {
  font-size: 2em;
  font-weight: bold;
  margin: 0;
}

.lowerlay-left h4 {
  font-size: 2em;
  font-weight: 100;
}


.lowerlay-center img {
  width: 200px;   /* подгони размер под макет */
  height: auto;
  display: block;
}

.lowerlay-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.lowerlay-right p {
  font-size: 1em;
  font-weight: 100;
  text-align: justify;
  max-width: 600px; 
  line-height: 1.6;
}

.container-lab-steps {
  display: flex;
  align-items: center;       /* стрелка и текст по одной линии по центру */
  justify-content: space-between;
  padding: 50px;
  margin-left: 20%;   
  margin-right: 20%;
  gap: 40px;                 /* расстояние между колонками */
}

.lowerlay-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient( #C0B7E8, #8176AF);
  border: 15px solid #241e3e;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size:3em;
  font-family: Montserrat;
  font-weight: bold;
  color: #343045;

}

.lowerlay-step-bottom {
  display: flex;
  align-items: start;
  margin-top: 10px;
  gap: 10px;
}

.lowerlay-arrow {
  width: 16px;
  height: auto;
}

.lowerlay-step-bottom p {
  margin: 0;
  font-size: 14px;
  font-family: Montserrat;
  font-weight: bold;
  line-height: 1.4;
}

.lowerlay-step-bottom img {
  width: 20px;
  height: auto;
}


@keyframes sway {
  0% {
    transform: translate(-20%, 50%) rotate(-10deg) scale(1);;
  }
  50% {
    transform: translate(-10%, 50%) rotate(-10deg) scale(1.05); /* смещение вправо */
  }
  100% {
    transform: translate(-20%, 50%) rotate(-10deg) scale(1); /* обратно влево */
  }
}
/* Ноутбуки: текст лаборатории остаётся в своей колонке без translate. */
@media (min-width: 1024px) and (max-width: 1920px) {
  .content-Laboratory .container-lab-box {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(32px, 4vw, 64px);
    padding: 48px 0;
  }

  .content-Laboratory .left-column-lab-box,
  .content-Laboratory .right-column-lab-box {
    min-width: 0;
  }

  .content-Laboratory .left-column-lab-box h1 {
    margin-left: 16px;
    font-size: clamp(26px, 2.3vw, 36px);
    line-height: 1.5;
  }

  .content-Laboratory .left-column-lab-box img {
    display: block;
    width: 100%;
  }

  .content-Laboratory .lab_text_1 {
    font-size: clamp(24px, 2.3vw, 36px);
    line-height: 1.35;
  }

  .content-Laboratory .lab_text_2 {
    max-width: none;
    transform: none;
    font-size: 16px;
    line-height: 1.6;
    text-align: start;
  }

  .content-Laboratory .highlight-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(80px, 8vw, 140px);
    gap: 16px;
  }

  .content-Laboratory .highlight-box-lab-box {
    min-width: 0;
  }

  .content-Laboratory .lab_text_3 {
    font-size: 16px;
    line-height: 1.6;
    text-align: start;
  }

  .content-Laboratory .highlight-img {
    width: 100%;
  }

  .content-Laboratory .lab-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-block: 24px;
  }

  .content-Laboratory .lab-button-container img {
    width: clamp(64px, 7vw, 100px);
    height: auto;
    margin-right: 0;
    flex-shrink: 0;
    transform: rotate(-10deg);
    animation-name: lab-hand-laptop;
    /* Смещение не заменяет существующую анимацию руки. */
    translate: 0 18px;
  }

  .content-Laboratory .button_lab {
    flex-shrink: 0;
    scale: 0.9;
  }

  .content-Laboratory .button_lab .splash {
    width: 100%;
    height: auto;
    transform: translateY(-25%);
  }

  .content-Laboratory .container-lab-lowerlay {
    display: grid;
    grid-template-columns: max-content clamp(80px, 10vw, 140px) minmax(0, 1fr);
    margin-inline: 10%;
    padding: 32px 0;
    gap: clamp(20px, 3vw, 40px);
  }

  .content-Laboratory .lowerlay-left h3,
  .content-Laboratory .lowerlay-left h4 {
    font-size: clamp(22px, 2vw, 32px);
  }

  .content-Laboratory .lowerlay-center img {
    width: 100%;
  }

  .content-Laboratory .lowerlay-right {
    min-width: 0;
  }

  .content-Laboratory .lowerlay-right p {
    max-width: none;
    font-size: 16px;
    text-align: start;
  }

  .content-Laboratory .container-lab-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    margin-inline: 10%;
    padding: 32px 0;
    gap: 24px;
  }

  .content-Laboratory .lowerlay-step {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .content-Laboratory .lowerlay-circle {
    width: clamp(100px, 9vw, 140px);
    height: auto;
    aspect-ratio: 1;
    border-width: clamp(10px, 1vw, 15px);
  }

  .content-Laboratory .lowerlay-step-bottom {
    gap: 8px;
  }

  .content-Laboratory .lowerlay-step-bottom img {
    width: 16px;
    flex-shrink: 0;
  }

  .content-Laboratory .lowerlay-step-bottom p {
    font-size: clamp(13px, 0.9vw, 14px);
  }

  @keyframes lab-hand-laptop {
    0%, 100% {
      transform: rotate(-10deg);
    }
    50% {
      transform: translateY(8px) rotate(-10deg) scale(1.05);
    }
  }
}
