.heading {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 50px 0;
    gap: 20px;
}
.heading h2 {
    font-size: 40px;
    font-weight: 400;
    color: var(--text-color);
}
.heading hr {
    border: none;
    height: 2px;
    background-color: var(--primary-color);
    width: 100px;
}
.heading p {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    text-align: center;
    max-width: 600px;
    line-height: 25px;
}

.info-box {
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: column;
    gap: 20px;
    margin: 50px 0;
    padding: 0 100px;
    width: 100%;
    height: 500px; 
    background-color: var(--light-gray-color);
    z-index: 10;
}
.diagonal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: url('../static/img/banner3.jpg') no-repeat left;
    background-size: cover;
    clip-path: polygon(0 0, 50% 0, 100% 100%, 0 100%);
    z-index: -1;
}
.info-box:nth-child(even) .diagonal-bg {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%);
    left: auto;
    right: 0;
}

.sec {
    background: url('../static/img/banner2.jpg') no-repeat left;
    background-size: cover;
}
.sec-1 {
    background: url('../static/img/bruno-yamazaky-7HmGgnVBRYg-unsplash.jpg') no-repeat left;
    background-size: cover;
}
.sec-2 {
    background: url('../static/img/byt\ beroun_byt\ beroun-30.jpeg') no-repeat left;
    background-size: cover;
}
.thr {
    background: url('../static/img/banner4.jpg') no-repeat left;
    background-size: cover;
}
.frt {
    background: url('../static/img/banner1.jpg') no-repeat left;
    background-size: cover;
}
.fif {
    background: url('../static/img/banner7.jpg') no-repeat left;
    background-size: cover;
}
.six {
    background: url('../static/img/banner5.jpg') no-repeat left;
    background-size: cover;
}
.info-lines {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 50px;
    margin-left: 650px;
}
.info-box:nth-child(even) .info-lines {
    margin-left: 0;
    margin-right: 650px;
}
.info-lines h3 {
    font-size: 28px;
    font-weight: 500;
    line-height: 30px;
    color: var(--text-color);
}
.info-lines p {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 25px;
}
.info-box-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.spacer {
    height: 50px;
}

/** responsivity **/

@media screen and (max-width: 1440px) {
    .info-box {
        padding: 0 50px;
    }
    .info-lines {
        margin-left: 500px;
    }
    .info-box:nth-child(even) .info-lines {
        margin-right: 500px;
    }
    .info-box img {
        height: 650px;
    }
    .info-lines img {
        height: 500px;
    }
    
}
@media screen and (max-width: 1240px) {
    .info-box:nth-child(even) .info-lines {
        margin-right: 350px;
        padding-left: 0;
    }
    .info-lines {
        margin-left: 350px;
        padding-right: 0;
    }
}
@media screen and (max-width: 980px) {
    .info-box {
        padding: 0 20px;
    }
    .diagonal-bg {
        width: 0;
        height: 100%;
    }
    .info-lines {
        padding: 50px;
        margin-left: 0;
    }
    .info-box:nth-child(even) .info-lines {
        margin-right: 0;
        padding: 50px;
    }

}
@media screen and (max-width: 650px) {
    .info-box {
        height: auto;
    }
    .info-lines {
        padding: 50px 20px;
    }
    .info-box:nth-child(even) .info-lines {
        padding: 50px 20px;
    }

}
@media screen and (max-width: 437px) {
    
}