#Cenovnik {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    padding: 0 30px 70px 30px;
}


/* NACIN PLACANJA */

#Cenovnik > div:nth-of-type(1) {
    display: flex;
    justify-content: center;
    width: 100%;
}

#Cenovnik > div:nth-of-type(1) > div {
    display: flex;
    align-items: center;
    font-size: 18px;
    width: 350px;
    margin: 20px;
}

#Cenovnik > div:nth-of-type(1) > div img {
    width: 70px;
    height: 70px;
    margin-right: 15px;
}

#Cenovnik > div:nth-of-type(1) > div > div {
    display: flex;
    flex-direction: column;
}

#Cenovnik > div:nth-of-type(1) > div > div span:nth-of-type(2){
    font-size: 26px;
/*    font-size: 18px;*/
}



/* CENOVNIK */

#Cenovnik > div:nth-of-type(2) {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

#Cenovnik > div:nth-of-type(2)> div {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 30px 0;
}

#Cenovnik > div:nth-of-type(2)> div:first-of-type {
    margin: 40px 0 30px 0;
}

#Cenovnik .HrmNaslov {
    display: flex;
    align-items: flex-end;
    border-bottom: 1px gray dashed;
    width: 100%;
    padding-bottom: 7px;
    cursor: pointer;
}

#Cenovnik .HrmNaslov * {
    pointer-events: none;
}

#Cenovnik .HrmNaslov img {
    height: 45px;
    width: 75px;
    margin-right: 20px;
    margin-left: 5px;
    flex-basis: 75px;
    flex-shrink: 0;
    opacity: .75;
}

#Cenovnik .HrmNaslov > div:first-of-type {
    flex: 1;
    font-size: 22px;
}



#Cenovnik .HrmNaslov > div:last-of-type  {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    flex-shrink: 0;
    background-image: url("../images/strelica-dole-bela.svg");
    background-size: cover;
    transition: all .3s;
    border-radius: 15px;
    background-color: var(--zuta);
}

.HrmNaslovOtvoren.HrmNaslov > div:last-of-type {
    transform: rotate(180deg);
}

#Cenovnik .HrmTekst {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease-out;
    max-width: 630px;
}


.Usluga {
    display: flex;
    align-items: center;
    border-left: 6px var(--zuta) solid;
    padding: 2px 0 2px 10px;
    margin: 10px 0;
    font-size: 16px;
}

.Usluga > span:first-of-type {
    flex: 1;
    /*transition: all .1s;*/
    /*padding: 3px;*/
}

.Usluga > span:nth-child(2), .UslugaSub > span:nth-child(2) {
    background-color: var(--sivaSvetla);
    text-align: right;
    padding: 2px 5px;
    width: 84px;
    margin-left: 0px;
    flex-basis: 84px;
    flex-shrink: 0;
}

.Usluga > span:nth-child(2) > span, .UslugaSub > span:nth-child(2) > span {
    font-size: 12px;
    color: gray;
}

.UslugaSub {
    display: flex;
    align-items: center;
    padding-left: 16px;
    margin: 5px 0;
    transition: all .2s;
}

.UslugaSub span:first-of-type {
    flex: 1;
}

.RazmakTop {
    margin-top: 20px;
}

.RazmakBottom {
    margin-bottom: 20px;
}

.Usluga:not(.BezCene) > span:first-of-type, .UslugaSub > span:first-of-type {
    padding: 2px 10px 2px 0;
}

.Usluga:not(.BezCene):hover > span:first-of-type, .UslugaSub:hover > span:first-of-type {
    /*    font-weight: 600;*/
    background-color: var(--zutaSvetla);
}

.Usluga:hover > span:nth-child(2), .UslugaSub:hover > span:nth-child(2) {
    background-color: var(--sivaTamna);
    color: white;
}

.Usluga:hover > span:nth-child(2) > span, .UslugaSub:hover > span:nth-child(2) > span {
    color: white;
}

@media screen and (max-width: 1024px) {
    #Cenovnik {
        padding: 0 20px 50px 20px;
    }

    #Cenovnik > div:nth-of-type(2)> div {
        width: 95%;
        margin: 30px 0;
    }

    #Cenovnik .HrmTekst {
        max-width: 100%;
    }


    .Usluga:not(.BezCene):hover > span:first-of-type, .UslugaSub:hover > span:first-of-type {
        font-weight: normal;
    }

    .Usluga:hover > span:nth-child(2), .UslugaSub:hover > span:nth-child(2) {
        background-color: var(--sivaSvetla);
        color: black;
    }

    .Usluga:hover > span:nth-child(2) > span, .UslugaSub:hover > span:nth-child(2) > span {
        color: gray;
    }

    .UslugaSub {
        align-items: flex-end;
    }
    
    .Teren ~ .UslugaSub {
        margin-top: 18px;
    }
}

@media screen and (max-width: 800px) {
    /* NACIN PLACANJA */

    #Cenovnik > div:nth-of-type(1) > div {
        font-size: 16px;
        width: 45%;
        margin: 10px;
    }

    #Cenovnik > div:nth-of-type(1) > div img {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }

    #Cenovnik > div:nth-of-type(1) > div > div span:nth-of-type(2){
        font-size: 22px;
    }
}


@media screen and (max-width: 600px) {
    #Cenovnik > div:nth-of-type(1) {
        justify-content: unset;
        flex-direction: column;
        align-items: flex-start;
    }

    #Cenovnik > div:nth-of-type(1) > div {
        font-size: 18px;
        width: 100%;
        margin: 20px 0;

    }

    #Cenovnik > div:nth-of-type(1) > div img {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }

    #Cenovnik > div:nth-of-type(1) > div > div span:nth-of-type(2){
        font-size: 22px;
        /*font-size: 18px;*/
    }
}

@media screen and (max-width: 500px) {

    #Cenovnik {
        padding: 0 20px 35px 20px;
    }

    #Cenovnik > div:nth-of-type(2)> div {
        width: 100%;
        margin: 25px 0;
    }

    #Cenovnik .HrmNaslov img {
        height: 35px;
        width: 59px;
        margin-right: 15px;
        margin-left: 3px;
        flex-basis: 59px;
        flex-shrink: 0;
        opacity: .75;
    }

    #Cenovnik .HrmNaslov > div:first-of-type {
        flex: 1;
        font-size: 20px;
    }

}