/* FOURTEENTH SECTION */

.environment_section {
    background: no-repeat center center/cover;
    padding-top: 150px;
    padding-bottom: 86px;
    position: relative;
    overflow: hidden;
}

.environment_nav-box {
    display: flex;
    gap: 353px;
    margin-bottom: 263px;
}

.environment_heading-box {
    width: 100%;
    max-width: 932px;
}

.environment_heading-row {
    display: flex;
}

.environment_heading-row:nth-child(3) {
    justify-content: space-between;
}

.environment_heading-row:nth-child(4) {
    align-items: center;
    gap: 10px;
}

.environment_heading-row.moved{
    justify-content: flex-end;
}

.environment_cards {
    display: flex;
    justify-content: space-between;
    gap: 19px;
}

.environment_cards-row {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 25px;
}

.environment_card {
    width: 441px;
    height: 441px;
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.environment_card {
    background-color: var(--white);
}

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

.environment_card-text {
    font-family: 'Helvetica Neue';
    font-size: 16px;
    line-height: 120%px;
    color: var(--black);
    text-align: justify;
}

.environment_list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 17px;
    max-width: 306px;
}

.environment_list-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.environment_list-num {
    font-size: 20px;
    line-height: 23px;
    font-family: 'Impact Cyr';
    font-weight: normal;
    background: url(../../img/age-heading-bg.png) center center/cover;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.environment_list-text {
    font-family: 'Helvetica Neue';
    color: var(--black);
    font-size: 16px;
    line-height: 15px;
}

.environment_card.picture-1 {
    background: url(../../img/environment-card-1.png) no-repeat center center/cover;
}

.environment_card.picture-2 {
    background: url(../../img/environment-card-2.png) no-repeat center center/cover;
}

.environment_card.picture-3 {
    background: url(../../img/environment-card-3.png) no-repeat center center/cover;
}

.environment_cards-row:nth-child(2) {
    flex-direction: row;
    align-items: flex-end;
}

.environment_cards-row:nth-child(3) .environment_card-text{
    line-height: 115%;
}

.environment_cards-row:nth-child(3) .environment_card-heading {
    letter-spacing: -0.04em;
}

.divider.light {
    background: var(--white);
}

.divider.light .divider_text {
    color: #B4B4B4;
}

.environment_section .heading_secondary.mobile,
.environment_section .heading_element.mobile{
    display: none;
}

.environment_img-container {
    display: none;
}

/* ADAPTIVE */
@media(max-width: 1919px) {
    .environment_section {
        padding-top: 100px;
        padding-bottom: 25px;
    }
    
    .environment_nav-box {
        gap: 111px;
        margin-bottom: 206px;
    }
    
    .environment_heading-box {
        max-width: 774px;
    }

    .environment_heading-box .heading_secondary {
        line-height: 75px;
    }
    
    .environment_cards-row {
        gap: 17px;
    }
    
    .environment_card {
        width: 300px;
        height: 300px;
        padding: 33px 33px 33px 20px;
    }

    .environment_card-heading {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .environment_card-text {
        font-size: 12px;
        line-height: 16px;
    }

    .environment_cards-row:nth-child(3) .environment_card-text{
        font-size: 11px;
    }

    .environment_cards, 
    .environment_cards-row {
        gap: 15px;
    }
    
    .environment_list {
        gap: 11px;
        max-width: 230px;
    }
    
    .environment_list-item {
        gap: 10px;
    }
    
    .environment_list-num {
        font-size: 14px;
        line-height: 16px;
    }
    
    .environment_list-text {
        font-size: 12px;
        line-height: 13px;
    }
}

@media (max-width: 1280px) {
    .environment_section {
        background-image: none !important;
        background: var(--black);
        padding-top: 95px;
        padding-bottom: 33px;
    }
    
    .environment_nav-box {
        gap: 0px;
        margin-bottom: 674px;
        justify-content: flex-end;
    }
    
    .environment_heading-box {
        max-width: 570px;
        position: relative;
        z-index: 2;
    }

    .environment_heading-box .heading_secondary {
        line-height: 61px;
    }

    .environment_cards {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 14px;
        position: relative;
        z-index: 2;
    }
    
    .environment_cards-row {
        gap: 14px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .environment_card {
        width: 357px;
        height: 357px;
        padding: 45px 45px 37px 45px;
    }

    .environment_card-heading {
        margin-bottom: 24px;
    }
    
    .environment_card-text {
        font-size: 12px;
        line-height: 115%;
        text-align: left;
    }

    .environment_cards-row:nth-child(3) .environment_card-text{
        font-size: 12px;
    }
    
    .environment_list {
        gap: 9px;
        max-width: 100%;
    }
    
    .environment_list-item {
        gap: 15px;
    }
    
    .environment_list-num {
        font-size: 16px;
        line-height: 23px;
    }
    
    .environment_list-text {
        font-size: 12px;
        line-height: 15px;
    }

    .environment_cards-row:nth-child(2) {
       order: 3;
    }

    .environment_section .heading_secondary {
        letter-spacing: -0.04em;
    }

    .environment_img {
        width: 100%;
    }

    .environment_img-container {
        display: block;
        position: absolute;
        top: 160px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 850px;
        width: 100%;
    }

    .overlay_rectangle {
        position: absolute;
        background-color: #101010;
        filter: blur(30px);
    }
    
    .overlay_rectangle.horizontal {
        width: 110%;
        height: 220px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .overlay_rectangle.vertical {
        width: 220px;
        height: 110%;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .overlay_rectangle.top {
        top: -40px;
    }
    
    .overlay_rectangle.bottom {
        bottom: -40px;
    }
    
    .overlay_rectangle.left {
        left: -50px;
    }
    
    .overlay_rectangle.right {
        right: -40px;
    }
    
}

@media (max-width: 767px) {
    .environment_section {
        padding-top: 130px;
        padding-bottom: 42px;
    }
    
    .environment_nav-box {
        margin-bottom: 497px;
    }
    
    .environment_heading-box {
        max-width: 336px;
    }

    .environment_heading-box .heading_secondary {
        line-height: 100%;
    }

    .environment_cards {
        gap: 8px;
    }
    
    .environment_cards-row {
        gap: 8px;
        flex-direction: column;
    }

    .environment_cards-row:nth-child(2) {
        flex-direction: column;
     }
    
    .environment_card {
        max-width: 336px;
        width: 100%;
        height: 336px;
        padding: 32px;
    }

    .environment_card-text {
        text-align: justify;
    }
    
    .environment_list {
        gap: 13px;
    }
    
    .environment_list-item {
        gap: 12px;
    }
    
    .environment_list-num {
        line-height: 18px;
    }
    
    .environment_list-text {
        line-height: 12px;
    }

    .environment_heading-row:nth-child(2) {
        align-items: center;
        gap: 25px;
    }

    .environment_section .heading_secondary.desktop,
    .environment_section .heading_element.desktop {
        display: none;
    }

    .environment_section .heading_secondary.mobile,
    .environment_section .heading_element.mobile{
        display: block;
    }

    .environment_img-container {
        top: 256px;
    }

    .overlay_rectangle.vertical {
        display: none;
    }

    .overlay_rectangle.horizontal {
        height: 75px;
    }

    .environment_card.picture-1 {
        background: url(../../img/environment-card-1-mobile.png) no-repeat center center/cover;
    }
}

@media (max-width: 359px) {
    .environment_card {
        padding: 42px 20px;
    }

    .environment_card-heading {
        font-size: 23px;
        margin-bottom: 20px;
    }
}