/* Страница офисов: карта + список, общий фильтр по городу.
   Палитра и типографика — из main.css ('Google Sans', #2A323D, #EC008C, #F0F6F9). */

/* Селектор .container.off-page, а не просто .off-page: в head.php есть инлайновый
   критический CSS с правилом .container{padding:0 15px}, он подключается ПОСЛЕ файла
   страницы и шорткатом обнуляет padding-bottom. Два класса дают выше специфичность. */
.container.off-page {
    padding-bottom: 160px;
}

.off-title {
    font-family: 'Google Sans', Arial, sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 51px;
    color: #2A323D;
    margin: 20px 0 24px 0;
}

/* ── Панель фильтра ───────────────────────────────────────────── */

.off-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.off-bar__label {
    font-family: 'Google Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #8FADBE;
}

.off-select {
    min-width: 280px;
    padding: 13px 18px;
    font-family: 'Google Sans', Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 21px;
    color: #2A323D;
    background: #FFFFFF;
    border: 1px solid #DCE7EE;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(143, 173, 190, .12);
    cursor: pointer;
}

.off-select:focus {
    outline: none;
    border-color: #EC008C;
}

.off-count {
    font-family: 'Google Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    color: #8FADBE;
}

/* ── Карта ────────────────────────────────────────────────────── */

.off-map {
    width: 100%;
    height: 460px;
    margin-bottom: 34px;
    border-radius: 15px;
    overflow: hidden;
    background: #F0F6F9;
    box-shadow: 0 10px 25px rgba(143, 173, 190, .15);
}

/* Заглушка, если ключ не задан или карта не загрузилась */
.off-map__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
    font-family: 'Google Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #8FADBE;
}

/* ── Карточки офисов ──────────────────────────────────────────── */

.off-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.off-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 24px;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(143, 173, 190, .15);
    transition: transform .25s ease, box-shadow .25s ease;
}

.off-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(143, 173, 190, .28);
}

.off-card__row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.off-card__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F6F9;
    border-radius: 50%;
}

.off-card__icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

.off-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.off-card__label {
    display: block;
    font-family: 'Google Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 17px;
    color: #8FADBE;
    margin-bottom: 3px;
}

.off-card__value {
    display: block;
    font-family: 'Google Sans', Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #2A323D;
    word-break: break-word;
}

.off-card__value a {
    color: #2A323D;
    text-decoration: none;
}

.off-card__value a:hover {
    color: #EC008C;
}

.off-card__show {
    align-self: flex-start;
    margin-top: 2px;
    padding: 0;
    font-family: 'Google Sans', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;
    color: #22B24C;
    background: none;
    border: 0;
    cursor: pointer;
}

.off-card__show:hover {
    color: #EC008C;
}

.off-empty {
    padding: 40px 0;
    font-family: 'Google Sans', Arial, sans-serif;
    font-size: 18px;
    line-height: 26px;
    color: #8FADBE;
}

/* ── Планшет ──────────────────────────────────────────────────── */

@media (max-width: 992px) {
    .off-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .off-list {
        grid-template-columns: 1fr;
    }
}

/* ── Мобильная ────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .container.off-page {
        padding-bottom: 80px;
    }

    .off-title {
        font-size: 26px;
        line-height: 32px;
        margin: 14px 0 18px 0;
    }

    .off-bar {
        gap: 10px;
        margin-bottom: 18px;
    }

    .off-select {
        min-width: 0;
        width: 100%;
    }

    .off-map {
        height: 300px;
        margin-bottom: 22px;
    }

    .off-list {
        gap: 12px;
    }

    .off-card {
        padding: 20px 18px;
        gap: 13px;
    }

    /* на тач-устройствах ховер-подъём не нужен */
    .off-card:hover {
        transform: none;
        box-shadow: 0 10px 25px rgba(143, 173, 190, .15);
    }
}
