/* TENTH SECTION */

.age_section {
    background: no-repeat center/cover;
    padding-top: 116px;
    padding-bottom: 312px;
    position: relative;
    overflow: hidden;
}

.age_caption {
    color: var(--white);
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 20px;
    text-align: justify;
    max-width: 300px;
    line-height: 100%;
    margin-top: 177px;
}

.age_text-box {
    background-color: var(--white);
    padding: 54px 58px 54px 47px;
    width: 408px;
    margin-top: 250px;
    margin-right: 94px;
}

.age_box-heading {
    font-family: 'Impact Cyr';
    font-size: 32px;
    line-height: 36px;
    text-align: justify;
    text-transform: uppercase;
    letter-spacing: -1%;
    font-weight: normal;
    margin-bottom: 52px;
    background: url(../../img/age-heading-bg.png) center center/cover;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.age_box-text {
    color: var(--black);
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 23px;
    text-align: justify;
}

.age_section-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.age_img {
    position: absolute;
    bottom: -109px;
    width: 1524px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.age_caption.desktop,
.age_img.tablet,
.age_img.mobile {
    display: none;
}

.age_heading-box {
    max-width: 762px;
}

.age_heading-box .heading_secondary.moved {
    display: flex;
    justify-content: flex-end;
}

.age_heading-group:nth-child(2) {
    margin-top: -60px;
}

/* ADAPTIVE */
@media (max-width: 1919px) {
    .age_section {
        padding-top: 161px;
        padding-bottom: 171px;
    }

    .age_caption {
        font-size: 14px;
        max-width: 212px;
        margin-top: 34px;
    }
    
    .age_text-box {
        padding: 45px 34px 45px 37px;
        width: 316px;
        margin-top: 0px;
        margin-right: 0px;
    }
    
    .age_box-heading {
        font-size: 24px;
        line-height: 25px;
        margin-bottom: 33px;
    }
    
    .age_box-text {
        font-size: 14px;
        line-height: 16px;
    }
    
    .age_section-box {
        display: flex;
        flex-direction: column;
    }
    
    .age_img {
        bottom: -140px;
        width: 1269px;
        left: auto;
        transform: translateX(0);
        right: -162px;
        z-index: 1;
    }

    .age_text-container {
        display: flex;
        gap: 70px;
        margin-top: 54px;
        position: relative;
        z-index: 2;
    }

    .age_caption.desktop {
        display: block;
    }

    .age_caption.full-hd {
        display: none;
    }
 
    .age_heading-box {
        max-width: 612px;
    }

    .age_heading-box .heading_secondary {
        letter-spacing: -0.04em;
    }

    .age_heading-group:nth-child(2) {
        margin-top: -40px;
    }
}

@media (max-width: 1280px) {
    .age_section {
        padding-top: 0px;
        padding-bottom: 131px;
    }
    
    .age_caption {
        font-size: 16px;
        max-width: 236px;
        margin-top: 12px;
        color: var(--black);
    }
    
    .age_text-box {
        padding: 47px 30px;
    }
    
    .age_box-heading {
        line-height: 27px;
        margin-bottom: 26px;
    }
    
    .age_box-text {
        line-height: 20px;
    }
    
    .age_img {
        width: 100%;
        height: auto;
        position: static;
    }

    .age_img.tablet {
        display: block;
    }

    .age_text-container {
        display: flex;
        gap: 41px;
        margin-top: 39px;
        justify-content: flex-end;
        margin-left: auto;
        flex-direction: row-reverse;
    }

    .age_heading-box .heading_secondary {
        color: var(--black);
    }

    .age_heading-box {
        margin-top: 42px;
    }

    .age_heading-box {
        max-width: 100%;
    }

    .age_heading-group:nth-child(2) {
        margin-top: 0px;;
    }

    .age_heading-row {
        display: flex;
        gap: 10px;
    }

    .age_heading-row.moved {
        margin-left: 106px;
    }
}

@media (max-width: 767px) {
    .age_section {
        padding-bottom: 58px;
    }
    
    .age_caption {
        line-height: 18px;
        max-width: 223px;
        margin-top: 0px;
        margin-left: 16px;
    }
    
    .age_text-box {
        padding: 39px 45px 47px 45px;
        max-width: 335px;
        width: 100%;
    }
    
    .age_box-heading {
        line-height: 30px;
        margin-bottom: 24px;
    }
    
    .age_box-text {
        line-height: 18px;
    }

    .age_text-container {
        gap: 41px;
        margin-top: 100px;
        justify-content: flex-start;
        margin-left: 0px;
        flex-direction: column;
        gap: 20px;
    }

    .age_heading-box {
        margin-top: 24px;
    }

    .age_heading-group:nth-child(2) {
        margin-top: -30px;;
    }

    .age_heading-row {
        display: flex;
        gap: 0px;
        flex-direction: column;
    }

    .age_heading-row.moved {
        margin-left: 0px;
    }

    .age_img.tablet {
        display: none;
    }

    .age_img.mobile {
        display: block;
    }
}

@media (max-width: 359px) {
    .age_caption {
        font-size: 14px;
    }

    .age_text-box {
        padding: 27px 20px;
    }
}