main {}

.testimonials {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

    h2 {
        font-size: 40px;
        margin-bottom: 40px;
        font-weight: bold;
        text-align: center;
    }

.testimonial {
    display: flex;
    align-items: center;
    background-color: #fdebd3;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial:nth-child(even) {
    flex-direction: row-reverse;
}

.avatar {
    flex: 0 0 100px;
    margin-right: 20px;
    position: relative;
}

.testimonial:nth-child(even) .avatar {
    margin-right: 0;
    margin-left: 20px;
}

.avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px dashed white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.content {
    text-align: left;
    flex-grow: 1;
}

.content h3 {
    font-size: 24px;
    margin: 0 0 5px;
    font-weight: bold;
}

.content span {
    display: block;
    font-size: 14px;
    color: #8c8c8c;
    margin-bottom: 15px;
}

.content p {
    font-size: 16px;
    line-height: 1.5;
}

.all-reviews {
    max-width: 95%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.all-reviews h4.make-review {
    text-align: center;
    font-size: 20px;
    margin: 20px 0 20px 0;
}

.all-reviews h4.make-review span {
    text-decoration: underline 2px #EE662C;
}

.all-reviews a {
    margin: 10px auto 50px auto;
}

.all-reviews a img.twogis {
    width: 150px;
    box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.7);
    border-radius: 30px;
    transition: box-shadow 0.5s ease-in-out;
}

.all-reviews a img.twogis:hover {
    box-shadow: 0 0  16px 4px rgba(209, 50, 28, 0.7);
}

/* Адаптация под малые экраны и планшеты */
@media (max-width: 1200px) {
    .testimonials {
        max-width: 90%;
        margin: 0 auto;
        padding: 10px;
        text-align: center;
    }

    h2 {
        font-size: 30px;
        margin-bottom: 30px;
        font-weight: bold;
        text-align: center;
    }

    .testimonial {
        display: flex;
        align-items: center;
        background-color: #fdebd3;
        border-radius: 15px;
        padding: 10px;
        margin-bottom: 30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .testimonial:nth-child(even) {
        flex-direction: row-reverse;
    }

    .avatar {
        flex: 0 0 100px;
        margin-right: 20px;
        position: relative;
    }

    .testimonial:nth-child(even) .avatar {
        margin-right: 0;
        margin-left: 10px;
    }

    .avatar img {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        object-fit: cover;
        border: 5px dashed white;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    }

    .content {
        text-align: left;
        flex-grow: 1;
    }

    .content h3 {
        font-size: 22px;
        margin: 0 0 5px;
        font-weight: bold;
    }

    .content p {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* Мобильная адаптация */
@media (max-width: 980px) {
    .testimonials {
        max-width: 90%;
        margin: 0 auto;
        padding: 10px;
        text-align: center;
    }

    h2 {
        font-size: 30px;
        margin-bottom: 30px;
        font-weight: bold;
        text-align: center;
    }

    .testimonial {
        display: flex;
        align-items: center;
        background-color: #fdebd3;
        border-radius: 15px;
        padding: 10px;
        margin-bottom: 30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .testimonial:nth-child(even) {
        flex-direction: row-reverse;
    }

    .avatar {
        flex: 0 0 100px;
        margin-right: 20px;
        position: relative;
    }

    .testimonial:nth-child(even) .avatar {
        margin-right: 0;
        margin-left: 10px;
    }

    .avatar img {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        object-fit: cover;
        border: 5px dashed white;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    }

    .content {
        text-align: left;
        flex-grow: 1;
    }

    .content h3 {
        font-size: 22px;
        margin: 0 0 5px;
        font-weight: bold;
    }

    .content p {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media (max-width: 590px) {
    .testimonials {
        max-width: 95%;
        margin: 0 auto;
        padding: 10px;
        text-align: center;
    }

    h2 {
        font-size: 30px;
        margin-bottom: 30px;
        font-weight: bold;
        text-align: center;
    }

    .testimonial {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #fdebd3;
        border-radius: 15px;
        padding: 10px;
        margin-bottom: 30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .testimonial:nth-child(even) {
        flex-direction: column;
    }

    .avatar {
        flex: 0 0 100px;
        margin-right: 0;
        position: relative;
    }

    .testimonial:nth-child(even) .avatar {
        margin-right: 0;
        margin-left: 0;
    }
}