.About_us{
    margin: 50px ;
}

.About_us_photos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 353px;
    margin-left: 30px;
    margin-right: 30px;
}
/*.About_us_photos{*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*}*/
.About_us_title_wrapper{
 margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;

}
.About_us_title_wrapper_Story{
 margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;

}
.center_padding{
    margin-left: 120px;
    margin-right: 120px;
}

.About_us_content{
    margin-top: 100px;
    margin-bottom: 100px;
}
.About_us_title_h1 {
    margin-top: 32px;
    width: 600px;
    background: linear-gradient(
            145deg,
            #80E5FF 0px,
            #545C9E 40%,
            #545C9E 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 56px;
    letter-spacing: 2px;
    font-weight: 550;
}
.About_us_h1{
    display: block;
    text-align: center;
    color: #465478;
    font-size: 20px;
    margin-top: 10px;
    padding: 5px;
}
.About_us_span_transition{
    color: #7584D6;
    font-size: 16px;
    padding: 5px;
}
.About_us_h2{
    color: #465478;
    font-size: 16px;
    padding: 5px;
}
.About_us_h_width {
    max-width: 530px;
}
.About_us_photos_img{
    width: 124px;
    height: 240px;
    border-radius: 20px;
}
.About_us_Logo_img{
    width: 20px;
    height: 20px;
    margin: 15px;
}
.About_us_Logo_wrapper{
    display: flex;
}
.About_us_messenger{
    margin-top: 20px;
}
.About_us_title_h3{
    color: #545C9E;
    font-size: 16px;

}

.About_us_Story_Body{
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: start;
}


.About_us_Photo_Booth{
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: start;
    width: 250px;

    margin-top: 100px;
}

.Arrow{
    width: 35px;
    height: 60px;
}
.About_us_Photo_footer{
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
}
.About_us_Photo_Booth {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-stack {
    position: relative;
    width: 124px;
    height: 200px;
    margin: 0 auto;
    z-index: 1;
}

.photo-stack img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 124px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* стрелка */
.Arrow {
    position: absolute;
    top: 111px;
    left: 196px;
    width: 35px;
    height: 60px;
    z-index: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    animation: arrowWiggle 2s infinite ease-in-out;
    opacity: 0.9;
}

/* активное состояние */
.photo-stack.active img:nth-child(4) {
    transform: translate(-50%, -20px) rotate(-8deg);
}
.photo-stack.active img:nth-child(3) {
    transform: translate(-50%, -210px) rotate(8deg);
}
.photo-stack.active img:nth-child(2) {
    transform: translate(-50%, -400px) rotate(-6deg);
}
.photo-stack.active img:nth-child(1) {
    transform: translate(-50%, -590px) rotate(6deg);
}

/* стрелка при активном состоянии */
.photo-stack.active ~ .Arrow {
    transform: translate(-90px, -100px);
    animation: none;
    opacity: 1;
}

/* покачивание стрелки */
@keyframes arrowWiggle {
    0%   { transform: rotate(0deg); }
    10%  { transform: rotate(1deg); }
    20%  { transform: rotate(-2deg); }
    30%  { transform: rotate(-3deg); }
    40%  { transform: rotate(-2deg); }
    50%  { transform: rotate(0deg); }
    60%  { transform: rotate(2deg); }
    70%  { transform: rotate(3deg); }
    80%  { transform: rotate(2deg); }
    90%  { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}


.About_us_slider{
    display: none;
}

.About_us_title_wrapper1 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.About_us_photos1 {
    display: none;
    text-align: center;
}
.About_us_photos1.active {
    display: block;
}

.About_us_controls1 {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.About_us_controls1 button {
    background: none;
    border: none;
    cursor: pointer;
}
.About_us_controls1 img {
    width: 40px;
    height: 40px;
}

/* --- Адаптив для планшетов и мобильных --- */
@media (max-width: 1024px) {
    .center_padding {
        margin-left: 40px;
        margin-right: 40px;
    }

    .About_us_title_h1 {
        font-size: 42px;
        width: auto;
        text-align: center;
    }

    .About_us_h_width {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .About_us {
        margin: 20px;
    }
    .About_us_title_wrapper_Story  {
        flex-direction: column;
        align-items: center;
    }
    .About_us_slider{
        display: block;
    }
    .About_us_title_wrapper {
     display: none;
    }

    .center_padding {
        margin: 0 20px;
    }

    .About_us_title_h1 {
        font-size: 32px;
        line-height: 1.3;
        letter-spacing: 1px;
        width: 100%;
    }

    .About_us_photos {
        margin: 20px 0;
        width: 124px;
        height: auto;
    }

    .About_us_photos_img {
        width: 240px;
        height: auto;
    }

    .About_us_content {
        margin: 50px 0;
    }



    .About_us_slider {
        display: block;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .About_us_photos1 img {

        height: auto;
        border-radius: 16px;
    }

    .About_us_controls1 img {
        width: 32px;
        height: 32px;
    }

    .Client_Insights_video {
        overflow: hidden; /* скрываем лишние карточки */
        position: relative;
        width: 100%;
    }

    .Testimonial_Card {
        display: flex;
        transition: transform 0.4s ease; /* плавный переход */
    }

    .Client_Insights_Testimonial_Card_content {
        min-width: 100%; /* каждая карточка занимает всю ширину контейнера */
        box-sizing: border-box;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .About_us_title_h1 {
        font-size: 24px;
    }

    .About_us_h1 {
        font-size: 16px;
    }

    .About_us_h2,
    .About_us_span_transition,
    .About_us_title_h3 {
        font-size: 14px;
    }

    .About_us_controls1 {
        gap: 12px;
    }

    .About_us_controls1 img {
        width: 28px;
        height: 28px;
    }
}
