/* ================================================================
   ФАЙЛ: /office/assets/foyer.css
   НАЗНАЧЕНИЕ: стили фойе, табло этажей и вспомогательных страниц
   ================================================================
   БЛОК 1. Каркас страницы (.foyer-page, .foyer-hero)
   БЛОК 2. Фильтры табло (.foyer-filters)
   БЛОК 3. Таблица этажей (.foyer-board, .floor-row, .foyer-orgs)
   БЛОК 4. Боковая колонка (.foyer-side)
   БЛОК 5. Заглушки и форма аренды (.office-stub, .office-rent-form)
   ================================================================ */

/* ================================================================
   БЛОК 1. НАЧАЛО: КАРКАС СТРАНИЦЫ
   ================================================================ */
.foyer-page {
    max-width: 1280px;
    margin: 0 auto 48px;
    padding: 0 16px;
}

.foyer-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 16px;
}

@media (min-width: 1100px) {
    .foyer-hero {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

.foyer-board-wrap {
    min-width: 0;
}
/* ===== КОНЕЦ БЛОКА 1 ===== */

/* ================================================================
   БЛОК 2. НАЧАЛО: ФИЛЬТРЫ НАД ТАБЛО
   ================================================================ */
.foyer-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    align-items: end;
}

.foyer-filters select,
.foyer-filters input[type="text"] {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #c5d0d4;
    border-radius: 4px;
    font: inherit;
}

.foyer-filters button {
    padding: 10px 16px;
    border: 0;
    border-radius: 4px;
    background: #1e6f5c;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
/* ===== КОНЕЦ БЛОКА 2 ===== */

/* ================================================================
   БЛОК 3. НАЧАЛО: ТАБЛО ЭТАЖЕЙ И СЛОТЫ ОРГАНИЗАЦИЙ
   ================================================================ */
.foyer-board {
    border: 1px solid #d9e2df;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.foyer-board-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    background: #f4f7f6;
    border-bottom: 1px solid #d9e2df;
}

.foyer-board-head h1 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #1e6f5c;
}

.schema-cta {
    color: #1e6f5c;
    font-weight: 600;
    text-decoration: none;
}

.schema-cta:hover {
    text-decoration: underline;
}

.foyer-board-scroll {
    overflow-x: auto;
}

.foyer-board-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.foyer-board-table th,
.foyer-board-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f0;
    vertical-align: top;
}

.foyer-board-table th {
    text-align: left;
    background: #fafcfb;
    color: #4a5d63;
    font-weight: 600;
}

.floor-row {
    cursor: pointer;
}

.floor-row:hover {
    background: #f8fbfa;
}

.floor-row.is-open {
    background: #eef7f3;
}

.foyer-floor-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1e6f5c;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.foyer-schema-link {
    margin-left: 8px;
    color: #5d727c;
    font-size: 12px;
}

.foyer-chip {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f0ee;
    color: #35514a;
    font-size: 12px;
    text-decoration: none;
}

.foyer-chip.rent {
    background: #fff3cd;
    color: #856404;
}

.foyer-chip.tso {
    background: #e7f1ff;
    color: #1d4f91;
}

.foyer-orgs {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 12px;
    background: #fafcfb;
}

.foyer-orgs.is-open {
    display: grid;
}

.foyer-org {
    display: block;
    padding: 10px 12px;
    border: 1px solid #d9e2df;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
}

.foyer-org:hover {
    border-color: #1e6f5c;
}

.foyer-org.vacant {
    border-style: dashed;
    color: #5d727c;
}

.foyer-org strong {
    display: block;
    margin-bottom: 4px;
}
/* ===== КОНЕЦ БЛОКА 3 ===== */

/* ================================================================
   БЛОК 4. НАЧАЛО: БОКОВАЯ КОЛОНКА ФОЙЕ
   ================================================================ */
.foyer-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.foyer-reception,
.foyer-window,
.foyer-links {
    border: 1px solid #d9e2df;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.foyer-person {
    font-size: 42px;
    margin-bottom: 8px;
}

.reception-link {
    display: inline-block;
    margin-top: 10px;
    color: #1e6f5c;
    font-weight: 600;
}

.foyer-window {
    min-height: 140px;
    background: linear-gradient(180deg, #dbe8f2 0%, #f7fafc 100%);
}

.foyer-window .label {
    font-size: 13px;
    color: #5d727c;
}

.foyer-links {
    display: grid;
    gap: 8px;
}

.foyer-links a {
    color: #1e6f5c;
    text-decoration: none;
    font-weight: 600;
}

.foyer-links a:hover {
    text-decoration: underline;
}
/* ===== КОНЕЦ БЛОКА 4 ===== */

/* ================================================================
   БЛОК 5. НАЧАЛО: ЗАГЛУШКИ И ФОРМА АРЕНДЫ
   ================================================================ */
.office-stub {
    max-width: 860px;
    margin: 24px auto 48px;
    padding: 0 16px;
}

.office-stub h1 {
    color: #1e6f5c;
}

.office-stub-back {
    display: inline-block;
    margin-bottom: 16px;
    color: #1e6f5c;
}

.office-rent-form {
    display: grid;
    gap: 12px;
    max-width: 420px;
}

.office-rent-form label {
    font-weight: 600;
}

.office-rent-form input,
.office-rent-form select {
    width: 100%;
    padding: 9px;
    border: 1px solid #bbb;
    border-radius: 4px;
}

.office-rent-price {
    font-size: 20px;
    font-weight: 700;
    color: #1e6f5c;
}
/* ===== КОНЕЦ БЛОКА 5 ===== */
