.welcome-department {
    position: relative;
    height: 100vh;
    background-size: cover;
    display: flex;
    align-items: center;
    z-index: 8;

}

.welcome-department::before{
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.5);
}
.link-footer{
    width: 100%;
    height: 40px;
    background-color: #001f6c;
}

.link-footer p{

    color: white;

}


.welcome-department h2 {
    font-size: 65px;
    font-weight: 600;
    color: #FFFFFF;
}

.welcome-department p {
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    color: #ECECEC;
    width: 67%;
    margin-top: 22px;
}

.welcome-department a {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    text-transform: uppercase;
    color: #000000;
    padding: 18px 47px;
    background: #FFFFFF;
    border-radius: 6px;
    display: inline-block;
    margin-top: 60px;
    transition: 0.5s;
}

.welcome-department a:hover {
    background-color: #e3e3e3;
}

.main-departments__item {
    display: flex;
    justify-content: space-evenly;
    padding: 50px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.main-departments__item>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 25%;
}

.main-departments__info div {
    border: 1px solid black;
    width: 257px;
    padding: 15px;
    text-align: center;
}

.main-departments__info {
    display: flex;
    flex-direction: column;
    justify-content: space-around;

}

.main-departments__item .main-departments__info {
    border-radius: 8px;
    width: 100%;
    background-color: #1F3C88;
    padding: 15px;
    text-align: center;
    /*height: 111px;*/
    
    position: absolute;
    bottom: 0;
    
}

.main-departments__info .txt1 {
    font-size: 18px;
    font-weight: 500;
    color: white;
    margin-bottom: 9px;
    text-transform: capitalize;
}

.main-departments__info .txt2 {
    font-size: 14px;
    font-weight: 600;
    color: crimson;
    text-transform: capitalize;
}

.service-tables {
    width: 100%;
}

.main-tables {
    border: 1px solid #1F3C88;
    padding: 15px;
    width: 565px;
    border-radius: 8px;
    margin: 0 auto;
}

.main-tables hr {
    background-color: #1F3C88;
}

.main-tables p {
    font-size: 29px;
    font-weight: 500;
}

/* perechen uslug */
.main-tables__depatments {
    width: 100%;
    margin-top: 207px;
}

.departments-service__mini-table div {
    border: 1px solid black;
    width: 583px;
    flex-direction: column;
    margin: 0 auto;
    padding: 58px 0 58px 45px;
}

.departments-service__mini-table div>p {
    font-size: 29px;
    font-weight: 500;
    margin-top: 19px;
}

.departments-service__mini-table .mini-tables__border-radios1 {
    border-radius: 10px 10px 0 0;
    background-color: #1F3C88;
}

.departments-service__mini-table .mini-tables__border-radios1 p {
    font-size: 29px;
    font-weight: 800;
    color: white;
}

.departments-service__mini-table .mini-tables__border-radios2 {
    border-radius: 0 0 10px 10px;
}

/* patsient */


.main-patient div {
    border: 1px solid black;
    width: 300px;
    height: 119px;

}

.main-patient {
    display: flex;
    flex-wrap: wrap;
}


.department-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 50px 0;
    row-gap: 30px;
}

.card {
    text-align: center;
    flex: 0 1 300px;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 20px 5px;
    transition: 0.5s;
    
}

@media(max-width:1040px) {

    .card {
        flex-grow: 1;
    }

    .department-card {
        gap: 15px;
    }
}

.card:hover {
    background-color: #1F3C88;
    color: white;
}

.card p {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
}

@media(max-width:400px) {
    .card p {
        font-size: 15px;
    }

    .department-card {
        padding: 40px 0;
    }

    .main-departments__item {
        margin: 40px 0;
    }
}



/* icons */
.bg-color {
    background-color: white;
}

.icons-card {
    display: flex;
    justify-content: space-evenly;
    padding: 88px 0 87px 0;
    flex-wrap: wrap;
    row-gap: 20px;
}

.icons-card .icon {
    text-align: center;
}

.icons-card .icon .icon2 {
    width: 157.29px;
}

.icons-card .icon .icon3 {
    width: 118px;
}

.icons-card .icon .icon1 {
    width: 213px;
}

.icons-card .icon h2 {
    font-size: 75px;
    font-weight: 600;
    color: #000000;
}

.gap2 {
    gap: 17px !important;
}

.icons-card .icon p {
    font-size: 15px;
    font-weight: 500;
    color: #646464;
    width: 300px;
}
.card-img{width: 100%;}
.card-img img {
    border-radius: 10px;
    background: rgba(31, 60, 136, 0.3);
    width: 100%;
    object-fit: cover;
    height: 471px;

}

/* //////////// */
.lor-cards {
    padding-bottom: 100px;
}

.lor__btn-bl {
    display: flex;
    justify-content: center;
}

.lor-information {
    background-color: #1F3C88;
    padding: 139px 0;
}


.main-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lor__info {
    width: 45%;
}

.lor__text1 {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 400;
    font-size: 29px;
    line-height: 35px;
    color: #FFFFFF;

}

@media(max-width:1300px) {
    .lor__text1 {
        font-size: 20px;
    }
}

@media(max-width:1100px) {
    .lor__text1 {
        font-size: 15px;
    }
}

@media(max-width:900px) {
    .lor__text1 {
        font-size: 15px;
    }

    .main-info {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 20px;

    }

    .lor__info {
        width: 100%;
    }

    .lor-information {
        padding: 100px 0;
    }
}

@media(max-width:700px) {
    .lor__images {
        width: 55%;
    }

    .lor-information {
        padding: 50px 0;
    }
}

@media(max-width:500px) {

    .lor__images {
        display: none;
    }
}

@media(max-width:400px) {
    .lor__text1 {
        font-size: 14px;
    }

    .cards {
        margin-top: 40px;
    }
}

.lor__images {
    width: 50%;
}

.lor__img {
    width: 100%;
}


/* cards start */

.cards {
    border: 4px solid #1F3C88;
    position: relative;
    margin: 75px 0 0;
    transition: 0.5s;
    flex: 0 1 30%;
    border-radius: 5px;
}

@media(max-width:910px) {
    .cards {
        flex: 1 1 49%;
    }
}

.cards:hover {
    border: 4px solid rgba(31, 61, 136, 0.596);
}

.img__cards {
    transition: 0.5s;
}

.cards:hover .img__cards {
    opacity: 0.596;
}

.lor__title {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
}

.lor__text {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #4C4C4C;
    margin-top: 23px;
}

.lor__main-titles {
    padding: 41px 13px 41px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media(max-width:360px) {
    .lor__main-titles {
        padding-left: 13px;
    }

}


.cards__img-block {
    position: absolute;
    top: -39px;
    left: 34px;
    background-color: #F5F5F5;
    padding: 0 20px;
}

.main__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 100px 0;
    justify-content: center;
}

@media(max-width:500px) {
    .main__cards {
        padding: 40px 0;
    }
}

.img__cards5 {
    width: 40px;
}

.lor__btn-block {
    display: flex;
    justify-content: center;
}

.lor__btn {
    display: inline-block;
    border: 3px solid #1F3C88;
    padding: 27px 60px;
    background-color: #1F3C88;
    border-radius: 36px;
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 17px;
    line-height: 21px;
    text-transform: uppercase;
    color: #FFFFFF;

    transition: 0.5s;
}

.lor__btn:hover {
    background-color: #F5F5F5;
    color: #1F3C88;
}

/* cards end */

/* SOMANTIKA */
.main-somatik {
    background: url(../img/klinik-otdel/otdel-bg.png) no-repeat;
}

/* End SOMANTIKA */

/*  extra-hirurg*/
.extra-hirurg {
    background-image: url(../img/main/unsplash_nMyM7fxpokE.png);
}

/* administration */
.administration {
    background-image: url(../img/main/administration-bg.jpg);
}

/* HISTORY */
.history {
    background-image: url(../img/history-img/history_bg.png);
    background-size: 100% 100%;
}

/* nauchno-isled */
.nauchno-isled {
    background-image: url(../img/main/Group\ 7.jpg);
}
.lor__images img{
    width: 100% !important;
}
/* functional */
.functional {
    background-image: url(../img/main/functional.png);
}

/* TERAPIYA */
.terapiya {
    background-image: url(../img/bg-images/terapiya.jpg);
}

/* CARDIOLOGY */
.cardiology {
    background-image: url(../img/bg-images/cardiology.jpg);
}

.news-bg{
    background-image: url(../img/bg-images/news__bg.jpg);
}

.department__gallery {
    display: flex;
    justify-content: space-between;
    padding-top: 50px;
    gap: 20px;
}
.departments__img-bl{
    flex: 1 1 50%;
}
.department__img {
    width: 100%;
}








/* Personal*/
.personal {
}
.personal__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap:wrap ;
    padding: 50px 0 100px;
    gap: 15px;
}
.personal__card {
    position: relative;
    width: 300px;
    border: 2px solid #1F3C88;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    

}
.personal__card:hover .personal__img{
    transform: scale(1.02);
}
.personal__img {
    width: 100%;
    height: 292px;
    object-fit: cover;
    padding: 10px 10px 0;
    transition: 0.5s;
}
.personal__info {
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 2;
    padding: 10px ;
    text-align: center;
    background-color:#1F3C88;
    color: #fff;
    height: 25%;
    margin: 5px 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 4;
}
.personal__name {
    font-size: 16px;
    color: #fff;
    font-weight: 400;
}
.personal__post {
    font-size: 14px;
    font-weight: 400;
}
.personal__link {
    font-weight: 400;
    border-radius: 5px;
    z-index: 4;
    color: rgba(255, 255, 255, 0);
    transition: 0.5s;
    font-size: 18px;
    padding: 10px 20px;
    transition: 0.5s;
}
.personal__overlay{
    position: absolute;
    top: -8%;
    left: 0;
    z-index: 3;
    background-color: #1f3d88d0;
    transition: 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 100%;

}

.personal__card:hover .personal__overlay{
    top: 0;
    left: 0;
    border-radius: 0;
}
.personal__card:hover .personal__link{
    color: #fff;
}

/* End Personal */


/* Profile */

.profile .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 80px 0;
}

.profile__wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #1F3C88;
    width: 100%;
}

.profile__img-bl {
}
.profile__img {
    width: 300px;
}
.profile__content {
    padding: 20px 50px ;
}
.profile__name {

    font-size: 32px;
    margin-bottom: 16px;

}
.profile strong{
    font-weight: 900;
}
.profile__post {
    font-size: 18px;
    margin-bottom: 16px;
}
.profile__link{
    border-top: 2px solid #1F3C88;
    padding: 12px 20px;
    text-align: center;
    transition: 0.5s;
    display: inline-block;
    transition: 0.5s;
    background-color: #1F3C88;
    color: #fff;
    
}
.profile__link:hover{
    filter: brightness(1.4);
}
@media(max-width:700px){
    .profile__name{
        font-size: 28px;
    }
    .profile__post{
        font-size: 16px;
    }
    .profile__content{
        padding: 18px 20px;
    }
}
@media(max-width:568px){
    .profile__img{
        width: 100%;
        padding: 0 5px;
    }
    .profile__name{
        font-size: 25px;
    }
}

/* Profile__form */

.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 15px;
}
.form__block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.form__block p{
    width: 50%;
}
.form__block>div{
    width: 50%;
}
.form__marked {
    color: crimson;
}
.form__field {
    border: 1px solid #1F3C88;
    outline: none;
    width: 50%;
    padding: 10px ;
    font-size: 16px;
    color: #002a9d;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.form__file{
    width: 100%;
    margin: 10px 0;
}
.form__field::placeholder{
    color: #002a9d;
}
.form__field:focus{
    
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}
.form__field-big {
    width: 50%;
    resize:vertical;
    min-height: 100px;
}
.f-end {
    display: flex;
    justify-content: flex-end;
}

.f-end input{
    background-color: #001f6c;
    color: #fff;
    border: 0;
    outline: 0;
    padding: 10px 30px;
    transition: 0.4s;
    cursor: pointer;
}
.f-end input:active{
    transform: scale(0.9);
    filter: brightness(1.2);
}
@media(max-width:600px){
    .profile__wrapper{
        flex-direction: column;
    }
}
@media(max-width:500px){
    .form__block{
        flex-direction: column;
    }
    .form__field{
        width: 100%;
    }
    .form__block p{
        width: 100%;
        margin-bottom: 5px;
    }
    .form__block>div{
        width: 100%;
    }
    .form__field-big{
        width: 100%;
    }
}