section.uvodni-nadpis{
    margin: 0 0 60px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: unset;
}
section.uvodni-nadpis:before{
    content: "";
    display: block;
    width: calc(100vw - 80px);
    max-width: 1840px;
    min-width: calc(100% + 40px);
    height: 100%;
    position: absolute;
    left: 50%;
    top: 0;
    z-index: -1;
    transform: translate(-50%, 0%);
    background: #517B6F;
}
body section.uvodni-nadpis h1{
    color: #fff;
    font-weight: 900;
    font-size: 48px;
    line-height: 65px;
    letter-spacing: 0.96px;
    position: relative;
    max-width: calc(100% - 400px);
    text-align: center;
}
body section.uvodni-nadpis h1:before{
    content: "";
    display: block;
    background: transparent url(/wp-content/themes/skola/images/nadpis-left.svg) no-repeat center center;
    width: 401px;
    height: 63px;
    position: absolute;
    left: -450px;
    top: 50%;
    transform: translate(0%, -50%);
    max-width: calc(50vw - 500px);
    background-size: contain;
}
body section.uvodni-nadpis h1:after{
    content: "";
    display: block;
    background: transparent url(/wp-content/themes/skola/images/nadpis-right.svg) no-repeat center center;
    width: 401px;
    height: 63px;
    position: absolute;
    right: -450px;
    top: 50%;
    transform: translate(0%, -50%);
    max-width: calc(50vw - 500px);
    background-size: contain;
}
@media screen and (max-width: 1749px){
    body section.uvodni-nadpis h1:before {left: auto; right: calc(100% + 40px);}
    body section.uvodni-nadpis h1:after {right: auto; left: calc(100% + 40px);}
}
@media screen and (max-width: 1399px){
    body section.uvodni-nadpis h1:before {left: auto; right: calc(100% + 15px); max-width: calc(50vw - 440px);}
    body section.uvodni-nadpis h1:after {right: auto; left: calc(100% + 15px); max-width: calc(50vw - 440px);}
}
@media screen and (max-width: 1299px){
    body section.uvodni-nadpis h1:before {max-width: calc(50vw - 400px);}
    body section.uvodni-nadpis h1:after {max-width: calc(50vw - 400px);}
}
@media screen and (max-width: 1023px){
    body section.uvodni-nadpis h1:before {display: none;}
    body section.uvodni-nadpis h1:after {display: none;}
    body section.uvodni-nadpis h1 {max-width: 100%;}
}
@media screen and (max-width: 479px){
    body section.uvodni-nadpis h1 {font-size: 30px; line-height: 44px; letter-spacing: 0.8px;}
}