.employee {
    display: grid;
    justify-content: space-between;
    gap: 30px 20px;
    flex-wrap: wrap;
    grid-template-columns: repeat(4, 1fr);

}

.employee__card {
    padding-top: 20px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    height: 435px;
}

.employee__card__name, .employee__card__department  {
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
}

.employee__card__info {
    background-color: var(--main-color-1);
    color: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.employee__card__department {
    padding: 0 20px 10px;
}

.employee__card__image {
    height: 50%;
}

.employee__card__image img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    object-position: top;

}

.employee__card__contacts .flex {
    margin-bottom: 10px;
}

.map {
    position: relative;
}

.map .bg-secondary-1 {
    position: absolute;
    top: 40%;
    left: 0;
    width: fit-content;
    padding: 30px;
    color: var(--white);

    z-index: 9;
}

.map {
    display: flex;
    flex-direction: column-reverse;

}

.map .bx-yandex-map {
    height: 651px !important;
}

@media (max-width: 1200px) {
    .employee {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .employee {
        grid-template-columns: 1fr;
    }

    .info .block {
        flex-direction: column;
    }

    .info .block__item {
        width: 100%;
    }

    .map .bx-yandex-map {
        height: 372px !important;
    }

    .map .bg-secondary-1 {
        position: relative;
        padding: 10px;
        width: 100%;
    }
}

@media (max-width: 460px) {
    .map .bx-yandex-map {
        height: 230px !important;
    }

}