#third {
    overflow: hidden;
    background: url(../assets/paper.jpg);
    position: relative;
    box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 0 rgba(0, 0, 0, 0.30);
}

#third.is-visible .third_texts {
    opacity: 1;
    transform: translateX(0);
}

.third_texts {
    opacity: 0;
    transform: translateX(-40px);
    transition:
        transform 0.8s ease,
        opacity 0.8s ease;
    will-change: transform, opacity;
}

#third:before {
    content: "";
    position: absolute;
    bottom: 20px;
    width: 100%;
    left: 0;
    height: 2px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

#third:after {
    content: "";
    position: absolute;
    top: 19px;
    width: 100%;
    left: 0;
    height: 2px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

.third_content_body {
    width: 100%;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    padding: 113px 32px 110px 216px;
}

.third_content {
    padding: 0;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.third_content:before {
    content: "";
    position: absolute;
    bottom: 11px;
    width: 100%;
    left: 0;
    height: 4px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

.third_content:after {
    content: "";
    position: absolute;
    top: 9px;
    width: 100%;
    left: 0;
    height: 6px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

.third_date {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
}

.third_date span {
    font-family: Evolventa Bold;
    font-size: 24px;
    line-height: 32px;
    text-transform: uppercase;
}

.third_title {
    font-family: Colus;
    font-size: 48px;
    line-height: 52px;
    letter-spacing: -0.48px;
    padding: 16px 0 24px;
}

.third_title span {
    color: #aa0909;
}

.third_text {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 18px;
    line-height: 24px;
}

.third_buttons {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-top: 32px;
}

.show {
    position: absolute;
    top: 17px;
    right: 24px;
    width: 15px;
    height: 15px;
}

.third_img {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transform: translateY(40px);
    transition:
        transform 0.9s ease,
        opacity 0.9s ease;
    will-change: transform, opacity;
}

#third.is-visible .third_img {
    opacity: 1;
    transform: translateY(0);
}

.third_img_girl {
    top: -60px;
    right: 136px;
    z-index: 3;
}

.third_img_boy {
    top: -62px;
    right: -255px;
    z-index: 2;
}

@media (max-width: 1825px) {
    .third_img {
        transform: scale(0.85);
    }

    #third.is-visible .third_img {
        opacity: 1;
        transform: translateY(0) scale(0.85);
    }

    .third_img_girl {
        top: -155px;
        right: -32px;
        z-index: 3;
    }

    .third_img_boy {
        top: -153px;
        right: -355px;
        z-index: 2;
    }

}

@media (max-width: 1590px) {
    .third_content_body {
        padding: 113px 32px 110px 64px;
    }

    .third_img_girl {
        top: -155px;
        right: -72px;
        z-index: 3;
    }

    .third_img_boy {
        top: -153px;
        right: -401px;
        z-index: 2;
    }
}

@media (max-width: 1395px) {

    .third_date span {
        font-size: 20px;
        line-height: 130%;
    }

    .third_title {
        font-size: 32px;
        line-height: 130%;
        letter-spacing: -0.32px;
        padding: 12px 0 18px;
    }

    .third_text {
        font-size: 16px;
        line-height: 130%;
        max-width: 396px;
    }

    .third_buttons {
        flex-direction: column;
    }

    .petlya {
        width: 60px;
    }

    .third_img {
        transform: scale(1);
    }

    #third.is-visible .third_img {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .third_img_boy {
        top: -56px;
        right: -73px;
        transform: scaleX(-1);
        min-width: 1146px;
    }

    #third.is-visible .third_img_boy {
        opacity: 1;
        transform: translateY(0) scaleX(-1);
    }

    .third_img_girl {
        min-width: 1177px;
        transform: rotate(-3deg) scaleX(-1);
        top: -31px;
        right: -548px;
        z-index: 3;
    }

    #third.is-visible .third_img_girl {
        opacity: 1;
        transform: translateY(0) rotate(-3deg) scaleX(-1);
    }
}

@media (max-width: 940px) {
    .third_content_body {
        padding: 66px 16px;
    }

    .third_img_boy {
        top: -25px;
        right: -8px;
        transform: scaleX(-1);
        max-width: 600px;
        min-width: auto;
    }

    .third_img_girl {
        max-width: 600px;
        min-width: auto;
        transform: rotate(-3deg) scaleX(-1);
        top: 16px;
        right: -257px;
        z-index: 3;
    }

    .third_content .petlya {
        display: none;
    }

    .third_date span {
        font-size: 18px;
        line-height: 130%;
    }

    .third_text {
        max-width: 360px;
    }

    .third_buttons {
        gap: 16px;
        margin-top: 21px;
    }

    .third_title {
        font-size: 24px;
        line-height: 110%;
        letter-spacing: -0.24px;
        padding: 6px 0 18px;
    }
}

@media (max-width: 670px) {
    .third_img_boy {
        display: none;
    }

    .third_img_girl {
        display: none;
    }

    .third_text {
        max-width: fit-content;
    }

    .third_buttons .notsimple_red_button {
        background: url(../assets/big_circle_red.png) center / contain no-repeat;
        width: 340px;
        height: 52px;
    }

    .third_buttons .white_form_but {
        background: url(../assets/big_circle_white.png) center / contain no-repeat;
        width: 340px;
        height: 52px;
    }

}