/*Стили для страницы со списком историй успеха*/
.success-stories {
    /* max-width: 1350px; */
    width: 88%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 70px auto;
    row-gap: 64px;
    column-gap: 20px;
}

.success-stories a {
    cursor: default;
    text-decoration: none;
    color: #000000;
    display: block;
}

.success-stories > p:empty,
.success-stories > p:only-child {
    display: none;
}

.one-ss-list {
    min-height: 400px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
    padding: 10px;
    /* border: 2px solid black; */
    cursor: pointer;
}


.one-ss-list:hover {
    background-color: #FFFFC9;
}

.one-ss-list h2 {
    font-size: clamp(20px, 2.2vh, 56px);
    font-family: "Ony One Medium";
    text-align: center;
    font-weight: 500;
    line-height: 100%;
    margin: 7px 0;
}

.one-ss-list p {
    font-family: "Ony One Regular";
    font-size: clamp(18px, 1vw, 50px);
    line-height: 130%;
    margin: 0;
    font-weight: 400;
}

.one-ss-list img {
    width: 50%;
    max-width: 30vw;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    transform: translateX(-10%);
}

.ossl-text {
    padding-right: 16px;
}

/*
.ossl-text button,
.ss-btn{
    width: 226px;
    height: 48.5px;
    border: none;
    background-color: #AD83FF;
    color: #ffffff;
    font-weight: 400;
    font-family: "Ony One Regular";
    font-size: clamp(16px, 2vh, 50px);
    margin: 0 auto;
    display: none;
}
*/
.ossl-violet {
    visibility: hidden;
    text-decoration: none;
    font-weight: 400;
    font-family: "Ony One Regular";
    font-size: clamp(18px, 2vh, 50px);
    color: #AD83FF;
    transform: translateY(-14px);/*костыль для противодействия <p> из WP*/
    display: block;
    font-weight: 400;
    line-height: 110%;
    letter-spacing: 0%;
}

.ossl-violet:hover {
    text-decoration: underline;
}


@media (max-width: 1100px) {
    /* этой версии нет в дизайнах */
    .success-stories {
        width: 94%;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .one-ss-list {
        min-height: 0;
        gap: 0;
    }

    .ossl-text {
        transform: none;
    }
    
}

@media (max-width: 580px) {
    .success-stories {
        margin: 20px auto 0;
        gap: 0;
    }
    .one-ss-list {
        flex-shrink: 0;
        display: block;
    }
    
    .one-ss-list p {
        margin-bottom: 20px;
    }


    .one-ss-list>* {
        transform: none;
    }

    .one-ss-list img {
        width: 100vw;
        max-width: 300px;

        transform: none;

        height: auto;
        min-height: auto;
        max-height: none;

        display: block;
        margin: 10px auto;
        object-fit: cover;
    }

    .one-ss-list h2 {
        font-size: 20px;
    }

    .one-ss-list p {
        font-size: clamp(16px, 2vh, 50px);
    }
    /*
    .ossl-text button,
    .ss-btn {
        display: block;
    }
    */
    .ossl-violet {
        visibility: visible;
    }

    .one-ss-list:hover {
        background-color: inherit;
    }
    
}



/*Стили для страницы с одной историей успеха*/
.one-success-story {
    margin: 100px auto 40px;
}

.one-success-story * {
    font-family: "Ony One Regular";
    font-weight: 400;
    line-height: 130%;
    font-size: clamp(16px, 1.1vw, 50px);
}

.one-success-story h1 {
    font-family: "Ony One Medium";
    font-weight: 500;
    font-size: clamp(30px, 2vw, 80px);
    line-height: 100%;
    margin: 0 0 26px;
}

.one-success-story-row {
    display: block;
}

.image-successor-left {
    float: left;
    width: 30vw;
    aspect-ratio: 4 / 3;
    margin: 0 24px 20px 0;
    min-width: 320px;
}

.image-successor-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.text-successor-right>p:first-of-type  {
    margin-top: 0;
}

/* Сбрасывает текст под картинку, когда JS добавляет этот класс */
.text-successor-right .clear-text {
    clear: left;
}

@media(max-width: 800px) {
    .one-success-story {
        margin: 30px auto;
    }

    .one-success-story-row {
        display: block;
    }

    .image-successor-left {
        float: none;
        width: 50%;
        min-width: 200px;
        margin: 0 auto;
    }

    .one-success-story h1 {
        font-size: clamp(16px, 3vw, 30px);
        text-align: center;
        margin: 10px auto;
    }
    

}