.contacts {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.contacts__tabs {
    border: 1px solid var(--obvodka);
    border-radius: 8px;
    width: 466px;
    padding: 20px;
}

.contacts__map {
    flex: 1 1 auto;
}

.contacts__tabs .tabs {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--obvodka);
}

.contacts__tabs .tabs__button {
    padding: 0 13px 9px 9px;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: var(--tekst-nad-polem);
    border: none;
    background: none;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.contacts__tabs .tabs__button.is-active {
    border-color: var(--siniy);
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    color: var(--siniy);
}

.dg-mapgl {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-height: 386px;
}

.office-info {
    padding: 37px 0 0;
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.office-info__item {
    position: relative;
    padding-left: calc(33px + 12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 33px;
}

.office-info__icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 33px;
    height: 33px;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.office-info__icon.office-info__icon--pin {
    background-image: url(/local/templates/bestpack/assets/icons/svg/contacts/pin.svg);
}

.office-info__icon.office-info__icon--phone {
    background-image: url(/local/templates/bestpack/assets/icons/svg/contacts/phone.svg);
}

.office-info__icon.office-info__icon--mail {
    background-image: url(/local/templates/bestpack/assets/icons/svg/contacts/mail.svg);
}

.office-info__icon.office-info__icon--time {
    background-image: url(/local/templates/bestpack/assets/icons/svg/contacts/time.svg);
}

.office-info__social {
    display: flex;
    gap: 18px;
    padding-top: 14px;
    margin-top: auto;
}

.office-info__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background-color: var(--siniy);
    flex: none;
}

.office-info__social-link:hover {
    background-color: var(--v-nalichii);
}

.office-info__social-icon {
    fill: var(--belyy);
    width: 38px;
    height: 38px;
}

.contacts__tabs .tab-content {
    display: none;
}

.contacts__tabs .tab-content.is-active {
    display: block;
}

@media (max-width: 960px) {
    .contacts__tabs {
        width: 100%;
        border: none;
        padding: 0;
    }

    .contacts {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .office-info__social-link {
        width: 47px;
        height: 47px;
    }

    .office-info__social-icon {
        width: 33px;
        height: 33px;
    }

    .contacts__tabs .tabs__button {
        padding-left: 0;
        padding-right: 0;
    }

    .office-info {
        padding-top: 20px;
        gap: 15px;
    }

    .office-info__social {
        padding-top: 5px;
    }

    .contacts__map {
        width: calc(100% + var(--container-padding-3xl) * 2);
        margin-bottom: -40px;
    }

    .contacts__map canvas {
        min-height: 386px;
    }
}