.uslugiDiv{
    scroll-margin-top: 120px;
    margin-top: 100px;
    position: relative;
    width: 100%;
    height: fit-content;
    padding-top: 0.1rem;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
}
.uslButtons{
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 20px;
}
.AboutDiv{
    scroll-margin-top: 100px;
    margin-top: 100px;
    padding-top: 50px;
    position: relative;
    width: 100%;
    height: fit-content;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
}



.image1 {
    margin-left: 5vw;
    object-fit: cover;
    width: 25rem;
    height: 25rem;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
}

.image2 {
    object-fit: cover;
    width: 30rem;
    height: 45rem;
    max-width: 100%;
    max-height: 100%;
    margin-top: -14rem;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
}

.AboutSection {
    padding: 3rem;
    display: grid;
    height: fit-content;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.AboutSection p, .AboutSection h2{
    margin-left: 5vw;
}

.sertificats{
    grid-template-columns: 1fr 1fr;
    column-gap: 4vw;
    height: fit-content;
	justify-items: center;
}

.sertificats img{
    object-fit:scale-down;
    transition: transform .2s;
    align-self: center;
}

.sertificats img:hover{
    transform: scale(1.25);
}


.sVer{
    width: 30rem;
    height: 35rem;
    max-width: 100%;
    max-height: 100%;
}
.boxSer{

  grid-row-start: 2;
  grid-column-start: 1;
  grid-column-end: 3;
}
.sHor{
    width: 40rem;
    height: 40rem; 
    max-width: 120%;
    max-height: 120%;
}

.rightText{
    grid-template-columns: 1fr 2fr;
    gap: 5vw;
}

.leftText{
    grid-template-columns: 2fr 1fr;
    gap: 5vw;
    margin-bottom: -14rem;
}

.fullSertificates{
    z-index: 1000;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    opacity: 1;
    display: none;
    overflow: hidden;
}

.fullSertificates.active{
    display: flex;
}

.fullSertificates img{
    position: absolute;
    margin: auto;
    left: -50vw;
    right: -50vw;
    top: 0;
    bottom: 0;
    max-width: 90vw;
    max-height: 90vh;
    min-height: 90vh;
    object-fit:scale-down;
}

.slide{
    transition: transform 0.5s;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    bottom: 0.5rem;
    width: auto;
    padding: 0.25rem;
    right: 53%;
    left: 45%;
    color: white;
    border: rgba(210, 252, 255, 0.4) 0.001rem solid;
    background:  linear-gradient(#0d5eb4,#07416b );
    font-weight: bold;
    font-size: 1rem;
    border-radius:  0.3rem 0 0 0.3rem;
    text-indent: 0.55rem;
}

.next {
    right: 45%;
    left: 53%;
    border-radius: 0 0.3rem 0.3rem 0;
}
  
.prev:hover,
.next:hover {
    background: linear-gradient(#0069B4 ,#007AFF);
}

.fullPage{
    position: absolute;
    bottom: -0.35rem;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
    border-radius: 0.15rem;
    width: 5rem;
    padding: 0.25rem;
    text-align: center;
    text-indent: 0;

}

.PopUp{
    z-index: 1000;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.PopUp.active{
    opacity: 1;
    pointer-events: all;
}

.consultPopUpBox{
    text-align: center;
    height: fit-content;
    width: 30vw;
    padding: 50px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.consultPopUpBox .commentInput{
    resize:none;
    min-height: 24%;
    max-height: 24%;
    margin-bottom: unset;
}
.PopUp p{
    text-align: center;
}


.consultForm p{
    text-align: justify;
    margin-left: 20px;
}

.accountingForm p{
    text-align: justify;
    margin-left: 20px;
}

.toTars{
    margin-right: 20px;
    font-size: 1rem;
    align-self: center;
    color: #000;
}

.counsultPopupButtons{
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.errorHint {
    visibility: hidden;
    width: fit-content;
    height: fit-content;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    margin-top: 100px;
    position: absolute;
    z-index: 2000;
}

.errorHint.active {
    visibility: visible;
    animation: errorFade 0.5s;
}


@keyframes errorFade {
    from {opacity: 0;}
    to {opacity:1 ;}
}

.thankPopUp{
    z-index: 1000;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.thankPopUp.active{
    opacity: 1;
    pointer-events: all;
}

.thankPopUpBox{
    text-align: center;
    width: 600px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
}

.thankPopUpBox p{
    text-align: center;
}


.commentInput{
    height: 10.25rem;
    resize: none;
    overflow-y: auto;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6.25rem;
}
.errorHint {
    margin-top: -80px;
    margin-right: 1.5%;
}

.uslugiDiv li h2{
    margin-left: 20px;
}
 
.uslugiDiv li::marker{
    content:"-";
    font-size: 2rem;
    color: black;
}


@media (max-width: 700px) {
    .image1 {
        display:none;
    }
    .image2 {
        display:none;
    }
    .uslButtons{
        gap: 0px;
    }
    .uslButtons button{
        scale: 0.9;
    }
    .rightText{
        grid-template-columns: 1fr;
    }
    
    .leftText{
        grid-template-columns: 1fr;
    }
    .AboutSection{
        padding-top: 0;
        padding-bottom: 0;
    }
    .AboutSection p{
        font-size: 1rem;
    }
    .AboutSection h2{
        font-size: 1.3rem;
        text-align: center;
    }
    .AboutDiv h1:nth-of-type(2){
        font-size: 3rem;
        text-align: center;
    }
    .sertificats{
        grid-template-columns: 1fr;
        margin: 0;
    }

    .sHor{
        width: 320px;
        height: 100%;
		margin-bottom: 1rem;
    }
    
    .leftText{
        margin-bottom: 0rem;
    }
    .sertificats img:hover{
        transform: scale(1);
    }
    .prev,
    .next {
        right: 70%;
        left: 22%;
        bottom: 3.8rem;
    }

    .next {
        right: 22%;
        left: 70%;
    }

    .fullPage{
        bottom: 3rem;
    }
    .fullSertificates img{
        max-width: 80vw;
    }
    .fullSertificates{
        height: 100vh;
    }
    .thankPopUp{
        height: 100vh;
    }
    .thankPopUpBox{
        text-align: center;
        width: 90%;
        padding: 20px;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
    }
    .AboutSection {
        padding-bottom: 0;
        height: fit-content;
    }
    .AboutSection p, .AboutSection h2{
        margin-left: 0;
    }
    .errorHint {
        margin-right: 3%;
    }
    .commentInput{
        margin-bottom: 0;
    }
    .PopUp{
        height: 100vh;
        overflow-y: scroll;
    }
    .toTars{
        font-size: 0.5rem;
    }
    .consultPopUpBox{
        width: 80vw;
        padding: 20px;
    }
    .consultPopUpBox p{
        font-size: 1rem;
        text-indent: 0;
    }
    .consultPopUpBox input{
        font-size: 0.75rem;
    }
    .consultPopUpBox button{
        font-size: 0.75rem;
        padding: 5px;
    }
    .consultPopUpBox select{
        font-size: 0.75rem;
    }
    .consultPopUpBox .commentInput{
        font-size: 0.75rem;
        min-height: 10%;
        height: 10%;
        max-height: 10%;
        overflow-y: scroll;  
    }
}
