/* BLOCK: Offices */

.block-offices .header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}

.block-offices .header:not(:last-child) {
    margin-bottom: 5rem;
}

.block-offices .header .description {
    margin-left: auto;
    max-width: 19.5rem;
    color: #3C3951;
    text-align: right;
}

.block-offices .swiper {
    overflow: visible;
}

.block-offices .swiper-wrapper {
    margin-inline: calc(-1 * var(--offset));
    padding-inline: var(--offset);
}

.block-offices .items-wrapper:not(.swiper-wrapper) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.5rem;
}

.block-offices .office {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: #F1EEFF;
    height: auto;
}

.block-offices .items-wrapper:not(.swiper-wrapper) .office {
    flex-basis: 100%;
}

.block-offices .office__map {
    width: 100%;
    height: 16.125rem;
}

.block-offices .office-data {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
}

.block-offices .office-head {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.block-offices .office-head:not(:last-child) {
    margin-bottom: 1.875rem;
}

.block-offices .office__icon {
    width: 1.875rem;
    height: 1.875rem;
    object-fit: cover;
    border-radius: 50%;
}

.block-offices .office__address {
    color: #3C3951;
    font-size: var(--font-16-15);
}

.block-offices .office__address:not(:last-child) {
    margin-bottom: 3.125rem;
}

.block-offices .office__link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: currentColor;
    text-decoration: none;
    font-size: var(--font-17-14);
    font-weight: 600;
    margin-top: auto;
}

.block-offices .footer {
    display: flex;
    gap: 4.5rem;
    align-items: center;
    margin-top: 3.125rem;
}

.block-offices .swiper-pagination {
    position: relative !important;
    border-radius: var(--radius-20);
    overflow: hidden;
    margin-top: 0;
}

.block-offices .swiper-pagination-progressbar-fill {
    background: var(--c-primary);
    border-radius: var(--radius-20);
}

.block-offices .footer {
    margin-top: 3.125rem;
}

.block-offices .footer .swiper-nav {
    display: flex;
    gap: 0.938rem;
    align-items: center;
    margin-left: auto;
}

.block-offices .swiper-nav .btn.prev svg {
    transform: rotate(180deg);
}

@media screen and (width <= 620px) {
    .block-offices .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.875rem;
    }
    .block-offices .header:not(:last-child) {
        margin-bottom: 3.125rem;
    }
    .block-offices .header .description {
        margin-left: unset;
        text-align: center;
    }
    .block-offices .office__map {
        height: 12.5rem;
    }
    .block-offices .office-data {
        padding: 1.5rem;
    }
    .block-offices .office-head {
        gap: 0.75rem;
    }
    .block-offices .office-head:not(:last-child) {
        margin-bottom: 1.5rem;
    }
    .block-offices .office__icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    .block-offices .office__address:not(:last-child) {
        margin-bottom: 1.875rem;
    }
    .block-offices .footer {
        margin-top: 1.875rem;
    }
    .block-offices .footer .swiper-nav {
        display: none;
    }
}