.offices-section {
    padding: 80px 0 90px;
}

.offices-filters {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 34px;
}

.offices-filter__label {
    display: block;
    margin-bottom: 8px;
    font-family: Jost, sans-serif;
    font-size: 20px;
    line-height: 1.2;
    color: #c4c4c4;
}

.offices-filter__control {
    position: relative;
}

.offices-filter__toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 280px;
    height: 50px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #c4c4c4;
    border-radius: 5px;
    font-family: Jost, sans-serif;
    font-size: 18px;
    color: #2c3446;
    text-align: left;
    cursor: pointer;
}

.offices-filter__toggle .ico {
    flex: 0 0 auto;
}

.offices-filter__value {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.offices-filter .ico--chevron {
    color: #969696;
    transition: transform .2s ease;
}

.offices-filter.is-active .offices-filter__toggle,
.offices-filter.is-open .offices-filter__toggle {
    border-color: #f58220;
}

.offices-filter.is-open .ico--chevron {
    color: #f58220;
    transform: rotate(180deg);
}

.offices-filter__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    display: none;
    width: 100%;
    max-height: 320px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
}

.offices-filter.is-open .offices-filter__menu {
    display: block;
}

.offices-filter__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 13px 22px;
    background: none;
    border: 0;
    border-bottom: 1px solid #ededed;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    color: #2c3446;
    text-align: left;
    cursor: pointer;
}

.offices-filter__menu li:last-child .offices-filter__option {
    border-bottom: 0;
}

.offices-filter__option:hover {
    background: #fafafa;
}

.offices-filter__option .ico--check {
    flex: 0 0 auto;
    visibility: hidden;
}

.offices-filter__option.is-selected {
    font-weight: 700;
    color: #f58220;
}

.offices-filter__option.is-selected .ico--check {
    visibility: visible;
}

.offices-filters__reset {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 50px;
    margin-left: auto;
    padding: 0 22px;
    background: #fff;
    border: 1px solid #f58220;
    border-radius: 5px;
    font-family: Jost, sans-serif;
    font-size: 18px;
    color: #f58220;
    cursor: pointer;
}

.offices-count {
    margin: 0 0 26px;
    font-family: Jost, sans-serif;
    font-size: 20px;
    color: #c4c4c4;
}

.offices-count__value {
    font-weight: 700;
    color: #2c3446;
}

.offices-empty {
    margin: 0;
    font-family: Jost, sans-serif;
    font-size: 18px;
    color: #2c3446;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 22px;
}

.office {
    display: flex;
    flex-direction: column;
}

.office.is-hidden {
    display: none;
}

.office__title {
    position: relative;
    margin: 0 0 12px;
    padding-left: 40px;
    font-family: Jost, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: #f58220;
}

.office__title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 23px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: #f58220;
}

.office__card {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 5px;
    overflow: hidden;
}

.office__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 22px 20px 26px 26px;
}

.office__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.office__region {
    position: relative;
    display: block;
    padding-bottom: 10px;
    font-family: Jost, sans-serif;
    font-size: 18px;
    line-height: 1.3;
    color: #2c3446;
}

.office__region::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 22px;
    height: 3px;
    background: #f58220;
}

.office__city {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 5px;
    background: #e9f1fb;
    font-family: Jost, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3446;
}

.office__lines {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.office__line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.office__ico {
    display: flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 26px;
}

.office__address {
    font-family: Jost, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    color: #2c3446;
}

.office__mail,
.office__phone {
    font-family: Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    color: #2c3446;
}

.office__mail {
    text-decoration: underline;
    word-break: break-word;
}

.office__mail:hover,
.office__rates:hover,
.office__linkedin:hover {
    color: #f58220;
}

.office__phone {
    text-decoration: none;
}

.office__extra {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #ededed;
}

.office__block + .office__block {
    margin-top: 18px;
}

.office__label {
    display: block;
    font-family: Jost, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #c4c4c4;
}

.office__rates {
    display: inline-block;
    margin-top: 2px;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2c3446;
    text-decoration: underline;
    word-break: break-word;
}

.office__name {
    display: block;
    margin-top: 2px;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3446;
}

.office__position {
    display: block;
    font-family: Jost, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #2c3446;
}

.office__linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-family: Jost, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #1559b7;
    text-decoration: underline;
}

.office__linkedin .ico {
    flex: 0 0 auto;
}

.office__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.office__badge {
    padding: 6px 12px;
    border-radius: 5px;
    background: #e9f1fb;
    font-family: Jost, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #1559b7;
}

.office__map {
    position: relative;
    flex: 0 0 281px;
    align-self: stretch;
    overflow: hidden;
    background: #c4c4c4;
}

.office__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    filter: grayscale(1);
}

@media (max-width: 1399px) {
    .office__map {
        flex-basis: 240px;
    }
}

@media (max-width: 1199px) {
    .offices-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }

    .office__map {
        flex-basis: 300px;
    }
}

@media (max-width: 767px) {
    .offices-section {
        padding: 40px 0 50px;
    }

    .offices-filters {
        gap: 18px;
        margin-bottom: 26px;
    }

    .offices-filter,
    .offices-filter__control,
    .offices-filters__reset {
        width: 100%;
    }

    .offices-filters__reset {
        margin-left: 0;
        justify-content: center;
    }

    .offices-filter__toggle {
        width: 100%;
    }

    .office__card {
        flex-direction: column;
    }

    .office__body {
        padding: 20px 18px 24px;
    }

    .office__map {
        flex: 0 0 auto;
    }

    .office__map iframe {
        min-height: 260px;
    }

    .office__title {
        padding-left: 20px;
    }

    .office__title::before {
        left: 3px;
    }
}
