.contact-container {
    position: relative;
    display: flex;
    justify-content: center;
    color: var(--font-color);
    font-size: 18px;
}

h5 {
    font-size: 20px;
}

.contacts {
    width: 66%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contacts::before {
    content: '';
    position: absolute;
    background-image: url("/views/images/logo_rajztabla.svg");
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.contact-tel {
    transition: color 0.2s ease-in-out;
}
.contact-tel:hover {
    color: var(--main-color);
}

.spacer-bottom {
    margin-bottom: 80px;
}

.contacts-wrapper {
    width: 99%;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vw;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 260px;
    margin-bottom: 5vw;
    text-align: center;
    z-index: 2;
}


.break-word {
    word-break: break-word;
}

.contact-name {
    color: var(--main-color);
    font-weight: bold;
    margin-bottom: 16px;
}

.contact-title {
    margin-bottom: 2px;
}

.contact-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
    display: block;
}

#contact:before {
    transform: scaleX(1);
}

@media screen and (max-width: 1100px) {

    .company {
        width: 40%;
    }

    .contacts {
        width: 60%;
    }

    .contact {
        width: 200px;
    }
}

@media screen and (max-width: 900px) {
    .contacts-wrapper {
        gap: 1vw;
    }

    #contact:before {
        transform: scaleX(0);
    }
}

@media screen and (max-width: 700px) {
    .divider-mobile {
        display: block;
    }
    .contact-container {
        flex-flow: column-reverse;
        justify-content: unset;
        align-items: unset;
    }

    .contacts {
        width: 100%;

    }

    .company-details {
        width: 100%;
    }

    .company {
        width: 100%;
        position: relative;
        justify-content: unset;
        word-wrap: break-word;
    }
}

@media screen and (max-width: 460px) {
    .contacts-wrapper {
        gap: 10px;
    }

    .contact {
        width: 45vw;
    }
}

@media screen and (max-width: 400px) {
    .contact {
        margin-bottom: 30px;
    }

    .company-details {
        font-size: 5vw;
    }

    h5 {
        font-size: 7vw;
    }


}

@media screen and (max-width: 300px) {
    .contact {
        width: 200px;
    }
}
