main {
    height: 100%;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

.head-text {
    text-align: center;
    font-size: 48px;
    color: white;
    font-weight: 700;
    margin-top: 75px;
    margin-bottom: 30px;
    line-height: normal;
    height: auto;
}

.about-text {
    font-size: 20px;
    font-weight: 600;
    word-wrap: break-word;
    color: white;
    line-height: 1.17;
    max-width: 900px;
}

.text-1, .text-2, .text-4, .text-5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 100px;
}

.text-3 > .about-text {
    max-width: 100%;
}

.text-3-img {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 100px;
}

.text-4 > .about-text {
    margin-left: 30px;
}

.text-5 > .about-text {
    margin-right: 30px;
}

.photo-bg {
    color: white;
    font-size: 23px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    position: absolute;
    height: 290px;
    width: 206px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.text-3-img > .sertifikat-title > .photo-bg {
    width: 387px;
}

#attestat-2, #attestat-3, #attestat-4, #sertifikat-2, #sertifikat-3,
#sertifikat-4, #sertifikat-5, #sertifikat-6, #sertifikat-7, #sertifikat-8, #sertifikat-9,
#stroi-4, #stroi-5, #stroi-6, #stroi-7, #stroi-8 {
    display: none;
}

@media (max-width: 1400px) {
    .container {
        width: 900px;
    }

    .text-1, .text-2, .text-4, .text-5 {
        justify-content: space-around;
    }

    .text-1 > .about-text{
        margin-right: 30px;
    }

    .text-2 > .about-text{
        margin-left: 30px;
    }

    .text-3-img a, .sertifikat-title {
        margin: 15px 15px;
    }

    .sertifikat-title * {
        margin: 0 !important;
    }

    .text-3-img {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 1300px) {
    .container {
        width: auto;
    }
}

@media (max-width: 940px) {
    .text-1 {
        flex-wrap: wrap;
    }

    .text-2 {
        flex-wrap: wrap-reverse;
    }

    .text-4 {
        flex-wrap: wrap;
    }

    .text-5 {
        flex-wrap: wrap-reverse;
    }

    .text-1 > .about-text, .text-2 > .about-text {
        margin-bottom: 30px;
        margin-right: 0;
        text-align: center;
    }

    .text-3 {
        text-align: center;
    }

    .text-4 > .about-text, .text-5 > .about-text {
        margin-top: 20px;
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 1400px) {
    .container {
        width: auto;
        margin: 0 15px;
    }
}