/*.contacts-section {*/
/*    margin-bottom: 60px;*/
/*}*/


.contacts-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 20px;
}


.contact-block {
    margin-bottom: 25px;
}

.contact-block h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.messenger-links {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.messenger-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.messenger-links .viber {
    background-color: #7360f2;
}

.messenger-links .telegram {
    background-color: #0088cc;
}

/* Карта */
/*.contacts-right {*/
/*    flex-grow: 1;*/
/*    flex-shrink: 1;*/
/*    flex-basis: 45%;*/
/*    width: 100%;*/
/*}*/


#map {
    width: 100%;
    height: 850px;
}

.map-contact {
    width: 100%;
    height: 850px;
}


/* ===== ФИЛИАЛЫ ===== */
.contacts-left {
    display: flex;
    flex-direction: column;
    height: 820px;
    /* ВАЖНО: синхрон с картой */
}

/* Заголовок */
.branches-header {
    padding-right: 10px;
    margin-bottom: 12px;
}

.branches-header h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.branches-header p {
    font-size: 14px;
    color: #777;
}

/* Список филиалов */
.branches-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    min-height: 0;
    padding-right: 10px;
}

/* Скролл */
.branches-list::-webkit-scrollbar {
    width: 6px;
}

.branches-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.branches-list::-webkit-scrollbar-track {
    background: transparent;
}

/* Карточка филиала */
.branch-item {
    display: flex;
    gap: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}


.branch-item:hover {
    border-color: #1565c0;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.08);
}

.branch-item.active {
    border-color: #1565c0;
}

/* ВНУТРЕННЯЯ ИЕРАРХИЯ */
.branch-company {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.branch-services {
    font-size: 13px;
    color: #353535;
    margin-bottom: 6px;
}

.branch-city {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 15px;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 2px;
}


.branch-city-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    transform: translateX(-6px);
    color: #0c53a3;
}


.branch-address {
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
}

.branch-phone a {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

.branch-phone a:hover {
    color: #1565c0;
}

.branch-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #222222;
}

/* ===== КНОПКА ПОДРОБНЕЕ ===== */
.branch-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.branch-more {
    font-size: 13px;
    font-weight: 600;
    color: #1565c0;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #1565c0;
    transition: .25s ease;
    background: #fff;
}

.branch-more:hover {
    background: #1565c0;
    color: #fff;
}

.branch-item:hover .branch-more {
    transform: translateX(0);
}

.branch-image {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
}

.branch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.branch-phone {
    display: flex;
    align-items: center;
    gap: 6px;
}

.branch-phone-icon {
    width: 20px;
    height: 20px;
    color: #0c53a3;
    flex-shrink: 0;
}

.branch-phone-icon path {
    fill: currentColor;
}
