body {
    font-family: Arial, sans-serif;
    background: white;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: auto;
}

/* Шапка */

.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {

    width: 330px; /* если сейчас около 300px */
    display: block;
    margin: 0 auto 30px auto;

}

h1 {
    text-align: center;
    font-size: 60px;
    margin-bottom: 10px;
}

h2 {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Карточки */

.card {
    background: white;
    max-width: 700px;
    margin: 30px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.card form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card p {
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: 600;
}

.card input {
    width: 300px;
    padding: 12px;
    font-size: 18px;
    border-radius: 12px;
}

.card button {
    width: 220px;
    padding: 12px;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
}

.object-info {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.object-info form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.object-info p {
    font-size: 24px;
    margin: 10px 0;
    font-weight: bold;
}

.object-info select {
    width: 220px;
    font-size: 20px;
    padding: 8px 15px;
    border-radius: 8px;
}

/* Прогресс */

.progress {
    width: 100%;
    background: #e5e5e5;
    height: 35px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: #32cd32;
    color: white;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
}

/* Легенда */

.legend {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item div {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.green {
    background: #32cd32;
}

.yellow {
    background: #ffd700;
}

.white {
    background: white;
    border: 1px solid #ccc;
}

.red {
    background: #ff3b30;
}

/* Этаж */

.floor {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.floor-name {
    width: 120px;
    background: #34495e;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    font-weight: bold;
}

.flat {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* Статусы */

.flat.green,
.flat.done {
    background: #32cd32;
    color: white;
}

.flat.yellow,
.flat.check {
    background: #ffd700;
    color: black;
}

.flat.white,
.flat.notdone {
    background: white;
    color: black;
    border: 2px solid #d0d0d0;
}

.flat.red,
.flat.denied {
    background: #ff3b30;
    color: white;
}

.active {
    background: #ffd700;
    color: black;
}

/* Галерея */

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.gallery-photo {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-photo:hover {
    transform: scale(1.03);
}

/* Модальное окно */

.photo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.photo-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Адаптация */

@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 28px;
    }

    .logo {
        width: 220px;
    }

    .legend {
        flex-direction: column;
        gap: 10px;
    }

    .floor {
        flex-wrap: wrap;
        gap: 8px;
    }

    .floor-name {
        width: 100%;
        padding: 10px;
    }

    .flat {
        min-width: 70px;
        padding: 15px 10px;
        font-size: 14px;
    }

    .object-info select,
    input,
    select,
    button {
        width: 100%;
        max-width: 320px;
        font-size: 18px;
        box-sizing: border-box;
    }

    .card {
        padding: 15px;
    }

    .gallery {
        justify-content: center;
    }

    .gallery-photo {
        width: 100%;
        max-width: 320px;
        height: auto;
    }
}

.stats-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-card h2 {
    margin-bottom: 15px;
}

.stats-card p {
    font-size: 18px;
    margin: 10px 0;
    font-weight: bold;
}

.common-works {
    margin-top: 40px;
}

.common-works h2 {
    text-align: center;
    margin-bottom: 20px;
}

.work-card {
    width: 120px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    border: 2px solid #dcdcdc;
    border-radius: 12px;

    font-size: 24px;
    font-weight: bold;

    cursor: pointer;
}

.common-works .floor {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* Страница входа */

.login-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.login-card form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card input {
    width: 300px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 18px;
}

.login-card button {
    width: 200px;
    padding: 12px;
    font-size: 18px;
}

.login-card label {
    margin-bottom: 5px;
    font-size: 18px;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login-form input {
    width: 320px;
    padding: 12px;
    font-size: 18px;
    border-radius: 10px;
}

.login-form button {
    width: 220px;
    padding: 12px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
}

.card {
    max-width: 700px;
    margin: 30px auto;
    text-align: center;
}

/* Выпадающий список статуса */

.status-select {
    width: 350px !important;
    height: 50px !important;

    font-size: 20px !important;

    padding: 10px !important;

    border: 2px solid #444 !important;
    border-radius: 15px !important;

    background: white !important;

    appearance: none;
    -webkit-appearance: none;
}

/* ===== Розлив ===== */

.spill-card {
    background: white;
    margin-top: 40px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.spill-card h2 {
    margin-bottom: 25px;
}

.spill-block {
    margin-bottom: 30px;
}

.spill-progress {
    width: 100%;
    height: 35px;
    background: #e5e5e5;
    border-radius: 20px;
    overflow: hidden;
    margin: 15px 0;
}

.spill-fill {
    height: 100%;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 35px;
}

.yellow {
    background: #f5c542;
}

.light-green {
    background: #8ddf72;
}

.green {
    background: #32cd32;
}

.spill-block input {
    width: 100px;
    padding: 10px;
    font-size: 18px;
    border-radius: 10px;
    text-align: center;
}

.spill-card h2 {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
}

.pdf-btn {
    background: #0d47a1;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    margin: 20px 0;
}

.pdf-btn:hover {
    opacity: 0.9;
}

.excel-board {
    margin-top: 20px;
}

.room-cell {
    min-height: 60px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: white;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
    font-size: 13px;
}

.empty-cell {
    min-height: 60px;
}

.room-cell.notdone {
    background: white;
    color: black;
}

.room-cell.done {
    background: #32cd32;
    color: white;
}

.room-cell.check {
    background: #ffd700;
    color: black;
}

.room-cell.denied {
    background: #ff3b30;
    color: white;
}

.excel-board {
    margin-top: 30px;
}

.room-cell {
    width: 90px;
    height: 60px;
    border: 1px solid #777;
    border-radius: 8px;
    background: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 14px;
    font-weight: bold;

    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.empty-cell {
    width: 90px;
    height: 60px;
}

.applications-block{
    background: rgba(255,255,255,0.08);
    padding:20px;
    border-radius:12px;
    margin-top:30px;
}

.application-item{
    background:white;
    padding:10px;
    border-radius:8px;
    margin-bottom:10px;
}

.application-item a{
    text-decoration:none;
    font-weight:bold;
}