.branch-contacts-section {
    padding: 60px 0;
}

/*.branch-contacts-grid {*/
/*    display: grid;*/
/*    grid-template-columns: 1fr 1.3fr;*/
/*    gap: 40px;*/
/*    align-items: stretch;*/
/*}*/

.branch-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.branch-contacts {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 24px;
}

.branch-contacts h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.branch-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.branch-contact-list li {
    margin-bottom: 18px;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.branch-contact-list strong {
    display: block;
    font-weight: 600;
    color: #111;
    margin-bottom: 3px;
}

.branch-contact-list a {
    color: #1565c0;
    font-weight: 600;
}

/* Карта */
.branch-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}


#branchMap {
    width: 100%;
    height: clamp(300px, 45vh, 500px);
}

/* ===== УСЛУГИ ===== */
.branch-services-section {
    padding: 60px 0;
    background: #f7f8fa;
}

.branch-services-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.branch-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
}

.branch-services-list li {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #e5e5e5;
    transition: .25s ease;
}

.branch-services-list li:hover {
    border-color: #1565c0;
    background: #f5f9ff;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.branch-advantages-section {
    padding: 60px 0;
}

.branch-advantages-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.branch-advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.advantage-item {
    padding: 22px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e5e5;
    font-weight: 600;
    font-size: 15px;
    position: relative;
}

.advantage-item::before {
    content: "✔";
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 16px;
    color: #1565c0;
}

/* ===== CTA ===== */
.branch-cta {
    padding: 70px 0;
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    /* background: linear-gradient(135deg, #fc7334, #f0692a); */
    color: #fff;
    text-align: center;
}

.branch-cta h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.branch-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    background: #ffffff;
    color: #272727;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: .25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #f1f5ff;
}

/* ======== ПОПАП ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Содержимое попапа */
.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 52px;
    border: none;
    background: none;
    cursor: pointer;
}

/* Заголовок */
.popup-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1565c0;
}

/* Поля формы */
.popup-form .popup-label {
    display: block;
    font-size: 14px;
    margin-top: 10px;
}

.popup-input,
.popup-textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.popup-textarea {
    height: 150px;
    min-height: 100px;
    max-height: 300px;
    resize: vertical;
}


/* Кнопка отправки */
.popup-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 15px;
    color: #fff;
    background-color: var(--secondary-card-text-color);
    border-radius: 20px;
}

.popup-submit:hover {
    background-color: var(--secondary-card-color);
}

/* Сообщение об успешной отправке */
.popup-success {
    text-align: center;
    font-size: 16px;
    color: #1565c0;
    margin-top: 15px;
}
