*{
    padding: 0;
    margin: 0px;
}

html{
    height: 100%;
}

/* :root {
  --scrollbar-width: 0px;
} */

body{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 0px;
}

.body-wrapper{
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.content{
    flex: 1 0 auto;
}

.wrapper{
    width: 1000px;
}

/* ---------------------------------------HEADER--------------------------------- */
header{
    background-color: #02a0da;
    height: fit-content;
    padding: 20px 0px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-wrap{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrap{
    display: flex;
    gap: 20px;
    align-items: center;
}

.logo-wrap p{
    width: 185px;
}

.logo{
    width: 60px;
    border-radius: 50%;
}

/* --------------------------------ССЫЛКИ И НАВЕДЕНИЕ-------------------------------- */
a{
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.a-hover{
    border: 2px solid #02a0da;
    border-radius: 15px;
    padding: 5px 8px;
    transition: 0.5s ease;
}

@media (hover: hover) {
    .a-hover:hover{
        border: 2px solid white;
        border-radius: 15px;
    }
}

/* ---------------------------------------ВКОНТАКТЕ-------------------------------- */
.vk-imgs {
    position: relative;
    width: 35px;  
    height: 35px;
}

.vk-imgs img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: opacity 0.8s ease;
}

.vk-img-def {
    opacity: 1;
}

.vk-img-hover {
    opacity: 0;
}
@media (hover: hover) {
    .vk-imgs:hover .vk-img-def {
        opacity: 0;
    }

    .vk-imgs:hover .vk-img-hover {
        opacity: 1;
    }
}
/* -------------------------------------MAIN------------------------------------ */

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin-top: 30px;
    font-size: 20px;
}
.main-wrap{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hello{
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.hello-img{
    min-width: 300px;
    width: 40%;
}

.hello h1{
    line-height: 1;
    width: 400px;
}

.hello-info{
    /* max-width: 50%; */
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-direction: column;
}

.hello .button{
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.hello .button:hover{
    transform: scale(0.95);
}

.hello .button + p{
    font-size: 15px;
}

.hello .button img{
    width: 15px;
}

.button{
    width: fit-content;
    padding: 10px 20px 12px 20px;
    border-radius: 20px;
    background-color: #02a0da;
}

.first-h3{
    align-self: center;
    font-weight: 400;
    text-align: center;
}

.snoski{
    font-size: 15px;
    display: flex;
    width: 100%;
    flex-direction: column;
    margin-bottom: 60px;
}

h2{
    margin-top: 30px;
    margin-bottom: 30px;
    line-height: 1;
    text-align: center;
}

h3{
    margin-bottom: 20px;
    align-self: flex-start;
}

.all-uslugi-wrap{
    /* width: 1000px; */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.all-uslugi-wrap ul, .all-uslugi-wrap ol{
    margin-left: 0px;
    padding-left: 0;
    list-style-position: inside;
}

.olul ul{
    margin-left: 50px;
}

.olul ol{
    margin-left: 20px;
}

.uslugi{
    display: flex;
    flex-wrap: wrap;
    /* gap: 10px; */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 60px;
}

.usluga{
    width: 300px;
    display: flex;
    justify-content: center;
    padding: 20px 0px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.usluga img{
    width: 100%;
    /* width: 250px; */
    height: 400px;
    border-radius: 20px;
}

ul li::marker {
    color:  #02a0da;
}

/* .usluga{
    border-bottom: 1px solid #02a0da;
} */

.usluga .button{
    font-size: 12px;
    padding: 5px 20px 5px 20px;
}

.steril{
    width: 100%;
    gap: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 60px;
}

.p-list{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* -------------------------------------КАРТА------------------------------------- */

.map-wrap{
    width: 100%;
    display: flex;
    justify-content: center;
}

/* -------------------------------------FOOTER------------------------------------ */

footer{
    color: white;
    flex: 0 0 auto;
    margin-top: auto;
    background-color: #02a0da;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0px;
}

.footer-wrap{
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    gap: 20px;
}

.footer-wrap p{
    font-size: 12px;
}

.footer-icons{
    display: flex;
    gap: 20px;
}

.grafik-wrap{
    width: 100%;
    /* gap: 20px; */
    /* justify-content: space-between; */
    display: flex;
    gap: 20px;
}

.grafik-wrap strong{
    font-size: 15px;
    padding: 5px 10px;
    border: 1px solid #02a0da;
    border-radius: 15px;
}

.modal{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    padding-right: 19px;
}

.modal-content{
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: white;
    width: fit-content;
    padding: 30px;
    padding-right: 70px;
    border-radius: 15px;
}

.modal img{
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.modal span{
    font-size: 25px;
    font-weight: 400;
}

.modal-content p{
   font-size: 18px; 
   color: #02a0da;
}

.modal-content p:first-of-type{
    color: black;
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* -------------------------------------МЕДИА------------------------------------ */
@media (max-width: 1100px) {
    .wrapper{
        width: 800px;
    }
    .adres{
        width: 190px;
    }
}

@media (max-width: 910px) {
    .wrapper{
        width: 700px;
    }
    .adres{
        width: 160px;
    }
    .adres, .phone{
       font-size: 14px;
    }
}

@media (max-width: 771px) {
    .hello h1{
        width: 300px;
    }
    .usluga img{
        width: 100%;
        height: 100%;
    }
    .usluga{
        width: 45%;
    }
    .wrapper{
        width: 600px;
    }
    .header-info{
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
   .header-contacts{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
   }
   .adres{
        width: fit-content;
   }
   .grafik-wrap{
    width: fit-content;
    gap: 10px;
    flex-direction: column;
   }

}

@media (max-width: 671px) {
    h2{
        margin-top: 50px;
    }
    .first-h3{
        margin-bottom: 0px;
    }
    .uslugi{
        margin-top: 10px;
        width: fit-content;
    }
    .usluga{
        align-items: center;
        width: 100%;
    }
    .usluga img{
        max-width: 400px;
    }
    header{
        font-size: 20px;
    }
    .logo{
        width: 80px;
    }
    .wrapper{
        width: 500px;
    }
    .header-wrap{
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
    .header-info{
        gap: 0px;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    .header-contacts{
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
    .logo-wrap{
        margin-bottom: 20px;
    }
    .logo-wrap p{
        width: fit-content;
    }
    .vk{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vk-imgs {
        width: 50px;  
        height: 50px;
    }
    .hello{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }
    .hello-info{
        align-items: center;
        justify-content: center;
    }
    .hello h1{
        width: fit-content;
    }
    
    .header-icons{
        display: flex;
        gap: 20px;
        align-items: end;
    }
}

@media (max-width: 550px) {
    .hello img{
        width: 300px;
    }
    .wrapper{
        width: 400px;
    }
}

@media (max-width: 451px) {
    .wrapper{
        width: 300px;
    }
    .hello img{
        width: 300px;
    }
    .uslugi h2{
        text-align: center;
    }
    .header-info{
        flex-direction: column;
        align-items: center;
        width: fit-content;
        gap: 20px;
    }
    .header-wrap{
        gap:20px;
        align-items: center;
    }
    .header-contacts{
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .logo-wrap {
        width: 100%;
        margin-bottom: 0px;
        gap: 0px;
        justify-content: space-around;
    }
    .logo-wrap p{
        width: 150px;
    }
}