#map{
    position: relative;
    width: 100%;
    height: 474px;
}

#map.expand-map{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

.map-btn{
    position: absolute;
    top: 16px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    box-shadow: 4px 4px 30px 0 rgba(31, 62, 75, 0.16);
    z-index: 1;
}

.map-btn a{
    line-height: 0;
}

.map-btn .js-map-mobile-opener{
    --color: var(--secondary-color);
    stroke: transparent;
}

.map-btn a:not(.is-active){
    display: none;
}

.ymaps-controls-pane {
    position: absolute !important;
    bottom: 18px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 36px;
}

body .ymaps-controls-lefttop,
body .ymaps-controls-righttop,
body .ymaps-controls-lefttop > ymaps,
body .ymaps-controls-righttop > ymaps{
    position: static !important;
    width: auto;
}

body .ymaps-b-zoom_hints-pos_right {
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 20px !important;
    border-radius: 32px;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .2);
    background: #fff;
    margin-left: -88px;
}

body .ymaps-b-zoom {
    width: 80px;
    height: 36px;
    position: relative;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .2);
    padding: 6px 10px;
}

body .ymaps-b-zoom:before {
    content: '';
    position: absolute;
    right: 50%;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: #f5f5f5;
}

body .ymaps-b-zoom__button {
    display: inline-block;
    height: 26px;
    width: 30px;
    opacity: .6;
}

body .ymaps-b-zoom__button_type_minus,
body .ymaps-b-zoom__button_type_plus{
    background-image: none;
    text-align: center;
}

body .ymaps-b-zoom__button:hover {
    opacity: 1;
}

body .ymaps-b-zoom__button_type_minus .ymaps-b-zoom__sprite {
    left: 0;
    top: 0 !important;
    width: 100%;
    height: 100%;
    background-image: url(/local/templates/tsvostok_v2/assets/images/yandexMapMinus.svg);
    background-position: -6px -3px;
}

body .ymaps-controls-righttop .ymaps-b-select.ymaps-b-select_control_listbox {
    position: relative;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .2);
    padding: 3px 0 3px 25px;
}

body .ymaps-controls-righttop .ymaps-b-select.ymaps-b-select_control_listbox:before {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 25px;
    height: 25px;
    background-image: url(/local/templates/tsvostok_v2/assets/images/yandexMapShema.svg);
}

body .ymaps-b-zoom__button_type_plus .ymaps-b-zoom__sprite {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(/local/templates/tsvostok_v2/assets/images/yandexMapPlus.svg);
    background-position: -1px -3px;
}

body .ymaps-b-form-button {
    background-image: none;
    overflow: visible;
}

body .ymaps-b-form-button_height_26 .ymaps-b-form-button__left,
body .ymaps-b-form-button_height_26 .ymaps-b-form-button__content  {
    background-image: none;
}

body .ymaps-b-select_state_opened .ymaps-b-popupa_layout_yes{
    position: absolute;
    top: auto;
    left: 3px;
    bottom: 100%;
    margin-bottom: 3px;
}

.ymaps-b-balloon{
    margin-top: -18px;
}

.ymaps-b-balloon__sprite{
    background: transparent !important;
}

.ymaps-b-balloon__content{
    position: relative;
    border: 0 !important;
    box-shadow: 4px 4px 30px 0px rgba(31, 62, 75, 0.16);
}

.ymaps-b-balloon__content:before{
    content: '';
    position: absolute;
    top: 96%;
    left: calc(50% - 15px);
    border: 18px solid transparent; 
    border-top: 18px solid #fff;
}

.ymaps-b-balloon__content-holster{
    padding: 36px 20px !important;
}

@media(min-width: 576px){
    .ymaps-b-balloon__content-holster{
        width: 326px;
    }
}

.ymaps-b-balloon__content-body div{
    width: 100%;
    padding: 0;
}

.ymaps-b-balloon__close{
    top: 15px !important;
    right: 5px !important;
    background-position: center !important;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAyMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2LjUgNS41TDUuNSAxNi41IiBzdHJva2U9IiM2QjcyODAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik01LjUgNS41TDE2LjUgMTYuNSIgc3Ryb2tlPSIjNkI3MjgwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K") !important;
}

.ymaps-b-balloon__bl,
.ymaps-shadows-pane{
    display: none !important;
}

.ymaps-b-balloon__content-body .office-item-name{
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    margin-bottom: 8px;
}

.ymaps-b-balloon__content-body .office-item-worktime{
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    margin-bottom: 12px;
}

.ymaps-b-balloon__content-body .office-item-click{
    display: none;
}

.ymaps-b-balloon__content-body .office-item-phones {
    gap: 4px;
}

.ymaps-b-balloon__content-body .office-item-phone-item{
    font-size: 14px;
    line-height: 18px;
}

.office-list-container{
    margin-top: 32px;
}

@media(min-width: 768px){
    .office-list-container{
        margin-top: 50px;
    }
}

.office-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.office-item{
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

@media(min-width: 768px){
    .office-item{
        padding: 24px;
    }
}

.office-item-name{
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
    color: var(--heading-color);
    margin-bottom: 10px;
}

@media(min-width: 768px){
    .office-item-name{
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 12px;
    }
}

.office-item-click{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 10px;
}


.office-item-click svg{
    stroke: transparent;
}

.office-item-click span{
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: var(--primary-color);
}

@media(min-width: 768px){
    .office-item-click span{
        font-size: 16px;
        font-weight: 400;
        line-height: 20px;
    }
}

.office-item-worktime{
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

@media(min-width: 768px){
    .office-item-worktime{
        font-size: 16px;
        font-weight: 400;
        line-height: 20px;
    }
}

.office-item-phones{
    display: flex;
    flex-direction: column;
    gap: 4px;
    
}

@media(min-width: 768px){
    .office-item-phones{
        gap: 12px;
    }
}

.office-item-phone-item{
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: var(--heading-color);
    text-decoration: none;
}

@media(min-width: 768px){
    .office-item-phone-item{
        font-size: 16px;
        line-height: 20px;
    }
}

.office-item-phone-item:hover{
    font-weight: 500;
    color: var(--primary-color);
}