.branches-page {
    direction: rtl;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

.branches-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.branches-search {
    margin: 0 0 22px;
    text-align: center;
}

.branches-search__group {
    display: inline-flex;
    align-items: stretch;
    width: min(100%, 460px);
    border: 1px solid #e3e3e3;
    background: #fff;
}

.branches-search__input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    background: #fff;
    color: #444;
    font-size: 14px;
}

.branches-search__input:focus {
    outline: none;
}

.branches-search__button {
    min-width: 90px;
    border: 0;
    background: #494947;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.branches-search__reset {
    display: inline-block;
    margin-top: 10px;
    color: #494947;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #494947;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 525px);
    justify-content: center;
    gap: 20px;
}

.branch-card {
    width: 525px;
    height: 350.59px;
    overflow: hidden;
    border: 1px solid #eee;
    box-sizing: border-box;
    background: #fff;
    border-radius: 2px;
    text-align: center;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

.branch-card__media {
    width: 100%;
    height: 233px;
    flex: 0 0 233px;
    background: #f9f9f9;
}

.branch-card__image {
    display: block;
    width: 100%;
    height: 233px;
    object-fit: cover;
}

.branch-card__image--placeholder {
    width: 100%;
    height: 233px;
    background:
        linear-gradient(135deg, rgba(116, 112, 112, 0.15), rgba(73, 73, 71, 0.08)),
        #f9f9f9;
}

.branch-card__content {
    flex: 1;
    padding: 14px 15px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branch-card__title {
    margin: 0 0 8px;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.branch-card__address {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
    min-height: 42px;
}

.branch-card__map {
    display: inline-block;
    margin-top: auto;
    color: #494947;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #494947;
}

.branch-card__map:hover,
.branches-search__reset:hover {
    color: #494947;
}

.branches-empty {
    padding: 24px 15px;
    border: 1px solid #eee;
    background: #fff;
    text-align: center;
    color: #777;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .branches-grid {
        grid-template-columns: 525px;
    }
}

@media (max-width: 767px) {
    .branches-page {
        padding: 14px;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }

    .branch-card {
        width: 100%;
        height: auto;
    }

    .branch-card__media,
    .branch-card__image,
    .branch-card__image--placeholder {
        height: 220px;
        flex-basis: 220px;
    }

    .branches-search__group {
        width: 100%;
    }
}
