/* Branches block */
.branches {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 60px;
}

.branch {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
    gap: 30px;
}

.branch__title {
    color: #000;
    font-family: Inter;
    font-size: 16px;
    font-weight: 700;
    align-self: center;
}

.branch__directions {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;

    gap: 35px;

    list-style: none;
}

.branch__direction {
    position: relative;
}

.branch__link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0px -3px 10px rgba(0, 0, 0, 0.3);
    width: 200px;
    height: 100%;

    font-family: "Inter";
    font-size: 19px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    text-align: center;

    position: relative;
}

.branch__link::after {
    content: "";
    display: block;
    width: calc(100% - 2px);
    height: 5px;
    background-color: #b4b4b4;
    bottom: -4px;
    position: absolute;
    border: 1px solid #acacac;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: -1;
}

.branch__direction:hover {
    transition: all 0.2s ease-in-out;
    transform: translateY(5px);
    box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.3);
}

.branch__direction:hover .branch__link::after {
    display: none;
}

.branch__image {
    display: block;

    position: absolute;
    bottom: 5px;
    right: 0px;

    width: 50px;
    transform: translate(50%, 50%);
}

@media (max-width: 1440px) {
    .branches {
        gap: 50px;
        padding: 40px;
    }

    .branch {
        gap: 15px;
    }

    .branch__title {
        font-size: 12px;
    }

    .branch__directions {
        gap: 30px;
    }

    .branch__link {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .branches {
        flex-direction: column;
    }

    .branch {
        width: 100%;
    }

    .branch__directions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        /* width: 100%; */
    }

    .branch__link {
        text-align: center;
        padding: 20px;
        font-size: 14px;
    }
}

@media (max-width: 425px) {
    .branch__directions {
        width: 100%;
    }

    .branch__direction {
        width: 100%;
    }

    .branch__link {
        width: 100%;
    }
}
