.contacts {
    display: flex;
    margin: 20px 0 30px 0;
    margin-top: 30px;
    scroll-margin-top: 150px;
}

@media screen and (max-width: 800px) {
    .contacts{
        flex-direction: column-reverse;
        align-items: center;
    }
    .contacts .sub_cd:nth-child(2) {
        border-top: 2px #dc291a solid;
        border-bottom: 2px #dc291a solid;
        margin: 30px 0 30px 0;
        padding: 20px 0 20px 0;
    }
    .map{
        height: 360px;
    }
}

@media screen and (min-width: 801px) {
    .contacts{
        flex-direction: row;
        justify-content: center;
    }
    .contacts .sub_cd:nth-child(2) {
        border-right: 2px #dc291a solid;
        border-left: 2px #dc291a solid;
    }
    .map{
        height: 720px;
    }
}

.contacts .sub_cd {
    width: 400px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contacts .sub_cd div {
    height: 199px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 1.5em;
}

.contacts .sub_cd div a {
    color: black;
    text-decoration: none;
    font-style: italic;
}

.contacts .sub_cd div label {
    margin-top: 10px;
}

.accent {
    color: #dc291a;
}

#mailto {
    cursor: copy;
    position: relative;
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#mailto label {
    cursor: copy;
}

#mailto .popup {
    visibility: hidden;
    width: 100%;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -50%;
    cursor: default;
}

#mailto .popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

#mailto .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

#mailto .hide {
    -webkit-animation: fadeOut 1s;
    animation: fadeOut 1s;
}

.map {
    width: 100%;
}


@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}