/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Стили для информационной надписи об авторизации */
.auth-info-text {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
    text-align: right;
    margin-left: auto;
}

.auth-info-text i {
    color: #007bff;
    font-size: 0.9rem;
}

/* Адаптив для мобильных устройств */
@media (max-width: 992px) {
    .auth-info-text {
        white-space: normal;
        text-align: center;
        justify-content: center;
        font-size: 0.75rem;
        margin: 5px 0;
    }
}

@media (max-width: 768px) {
    .auth-info-text {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .top-line, .nav-line, .content-area {
        margin: 5px;
    }
    
    .slogan-container {
        padding: 20px;
    }
    
    .main-slogan {
        font-size: 1.5rem;
    }
    
    .sub-slogan {
        font-size: 1rem;
    }
    
    .nav-btn {
        flex: 1 0 100%;
        margin-bottom: 5px;
    }
    
    .social-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .social-btn {
        justify-content: center;
        width: 100%;
    }
    
    .page-content {
        padding: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
    
    /* Стили для planning.php */
    .planning-wrapper {
        padding: 15px;
        margin: 10px;
    }
    
    /* ВАЖНО: принудительно устанавливаем одну колонку */
    .floors-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin-top: 20px;
    }

    .floor-card {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .floor-preview-wrapper {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
    }

    .floor-number-overlay {
        font-size: 80px;
        opacity: 0.2;
    }

    .floor-card button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    .floor-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .legal-notice {
        font-size: 0.8rem;
        padding: 10px;
        margin-top: 15px;
    }
}

/* Стили для панели авторизации */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.username {
    font-weight: bold;
    color: #333;
}

.moderator-badge {
    background-color: #ffc107;
    color: #212529;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #c82333;
}

.login-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-form input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 150px;
}

.login-form button {
    padding: 8px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #218838;
}

.error-message {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f8d7da;
    color: #721c24;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 5px;
    z-index: 100;
}

.moderator-btn {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.moderator-btn:hover {
    background-color: #e0a800 !important;
}

/* Стили для панели модератора */
.moderator-dashboard {
    width: 100%;
}

.content-block{
margin-top:30px;
}

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

.dashboard-card{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
text-align:center;
}

.dashboard-card h3{
margin-bottom:10px;
}

.dashboard-card button{
margin-top:10px;
padding:10px 20px;
border:none;
background:#0077cc;
color:white;
border-radius:5px;
cursor:pointer;
}

.dashboard-card button:hover{
background:#005fa3;
}
.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.stat-label {
    font-weight: 500;
    color: #666;
}

.stat-value {
    font-weight: bold;
    color: #333;
}

.rights-list {
    list-style-type: none;
    padding: 0;
}

.rights-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    color: #444;
}

.rights-list li:before {
    content: "✓";
    color: #28a745;
    margin-right: 10px;
    font-weight: bold;
}

.moderator-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tool-card {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tool-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tool-card h3 {
    margin: 10px 0;
    font-size: 1.3rem;
}

.tool-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

#floorContainer{
position:relative;
width:1200px;
}

#floorImage{
width:100%;
display:block;
}

/* Стили для квадратных кнопок этажей */
.floor-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

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

.camera-card{
background:white;
padding:15px;
border-radius:10px;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.camera-frame iframe{
width:100%;
height:250px;
border:none;
border-radius:6px;
}

.attendance-table{
width:100%;
border-collapse:collapse;
margin-top:20px;
background:white;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.attendance-table th{
background:#0077cc;
color:white;
padding:10px;
}

.attendance-table td{
padding:10px;
border-bottom:1px solid #eee;
}

.attendance-table tr:hover{
background:#f5f5f5;
}

.floors-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
margin-top:30px;
}

.floor-card{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
text-align:center;
}

.floor-preview{
width:100%;
height:auto;
margin-top:10px;
border-radius:6px;
display: block;
}

.floor-card button{
margin-top:10px;
padding:10px 20px;
background:#0077cc;
color:white;
border:none;
border-radius:6px;
cursor:pointer;
}

.floor-card button:hover{
background:#005fa3;
}
.floor-btn {
    aspect-ratio: 1/1; /* Делаем кнопку квадратной */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.floor-btn:hover {
    background-color: #0056b3;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.floor-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.floor-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.floor-info {
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: center;
}

/* Адаптивность для кнопок этажей */
@media (max-width: 1200px) {
    .floor-buttons-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 768px) {
    .floor-buttons-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .floor-btn {
        aspect-ratio: 2/1; /* На мобильных делаем прямоугольными */
    }
    
    .floor-number {
        font-size: 1.5rem;
    }
}

/* Фоновое изображение */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("img/bg_main.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  /*  background-attachment: fixed; */
    z-index: -1;
    filter: brightness(0.9);
}

/* Контейнер для всего содержимого. Так было/
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
 */

.container{
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* Первая строка */
.top-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    margin-right: 10px;
    margin-left: 10px;
    border-radius: 8px;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: white;
    width: 140px;
    text-decoration: none !important;
}

.social-btn.vk {
    background-color: #4c75a3;
}

.social-btn.telegram {
    background-color: #0088cc;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.auth-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-form input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 150px;
}

.auth-form input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#auth-btn {
    padding: 8px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

#auth-btn:hover {
    background-color: #218838;
}

/* Вторая строка */
.nav-line {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 10px;
    margin-top: 15px;
    border-radius: 8px;
}

.nav-btn {
    flex: 1;
    margin: 0 5px;
    padding: 12px 5px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.nav-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    text-decoration: none !important;
}

#access-control {
    background-color: #dc3545;
}

#access-control:hover {
    background-color: #c82333;
}

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

.floor-wrapper{
position:relative;
background:#ffffff;
padding:25px;
border-radius:8px;
max-width:1100px;
margin:20px auto;
box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.floor-layout{
position:relative;
}

.floor-image{
width:100%;
height:auto;
display:block;
}

.area{
position:absolute;
opacity:0.6;
cursor:pointer;
transition:all 0.15s ease;
}

.area:hover{
opacity:0.9;
outline:2px solid #333;
}

.area-panel{
position:absolute;

top:120px; /* ниже красной линии */
right:20px;

width:320px;
padding:16px;

background:#e5e5e5;
border-radius:6px;

font-family:Arial;

box-shadow:0 4px 12px rgba(0,0,0,0.25);

opacity:0;
transform:translateY(-8px);

transition:
opacity .2s ease,
transform .2s ease;

z-index:20;
}

.area-panel.visible{
opacity:1;
transform:translateY(0);
}

.area-panel p{
margin:4px 0;
white-space:nowrap;
}

.area-panel h3{
margin-top:0;
}

.area-panel button{

width:100%;

padding:12px;

background:#0077cc;

color:white;

border:none;

border-radius:5px;

cursor:pointer;
}

.area-panel button:hover{
background:#005fa3;
}

.edit-btn{

margin-top:10px;
padding:10px 20px;

background:#444;

color:white;

border:none;

border-radius:6px;

cursor:pointer;

}

.legend{
margin-bottom:15px;
font-size:14px;
display:flex;
gap:20px;
}

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

.legend-color{
width:18px;
height:18px;
border-radius:3px;
}

.legal-notice{
margin-top:18px;
font-size:12px;
color:#666;
line-height:1.4;
}

.danger{
background:#cc0000;
margin-top:10px;
}

.danger:hover{
background:#990000;
}

.planning-wrapper{
background:rgba(255,255,255,0.9);
padding:30px;
border-radius:10px;
box-shadow:0 6px 20px rgba(0,0,0,0.15);
}

.planning-wrapper h2{
margin-bottom:20px;
}

/* Обёртка картинки */

.floor-preview-wrapper{
position:relative;
}

/* Водяной знак этажа */

.floor-number-overlay{

position:absolute;
top:50%;
left:50%;

transform:translate(-50%,-50%);

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

color:#2c6fb7;
opacity:0.25;

pointer-events:none;
user-select:none;
}

/* чтобы цифра не выходила */

.floor-preview{
width:100%;
border-radius:6px;
display:block;
}

.edit-btn:hover{
background:#222;
}

.rent-form{
    margin-top:20px;
    padding:20px;
    background:white;
    border-radius:8px;
    box-shadow:0 0 10px rgba(0,0,0,0.1);
}

.rent-form input{
    width:100%;
    padding:8px;
    margin-bottom:10px;
}

.rent-btn{
    margin-top:15px;
    padding:10px 15px;
}

/* Основной контент */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
	justify-content: center;
    padding: 20px;
    margin: 10px;
    margin-top: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.85);
	height: auto;
}

.slogan-container {
    max-width: 900px;
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.floor-buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.main-slogan {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.sub-slogan {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Стили для страниц с контентом */
.page-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
}

.page-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Таблицы */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.info-table th {
    background-color: #007bff;
    color: white;
    padding: 15px;
    text-align: left;
}

.info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.info-table tr:hover {
    background-color: #f8f9fa;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .main-slogan {
        font-size: 2.2rem;
    }
    
    .sub-slogan {
        font-size: 1.2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .top-line {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .auth-form {
        width: 100%;
        justify-content: center;
    }
    
    .auth-form input {
        width: 100%;
        max-width: 200px;
    }
    
    .nav-line {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-btn {
        flex: 1 0 calc(50% - 10px);
        margin: 0;
    }
    
    .main-slogan {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .top-line, .nav-line, .content-area {
        margin: 5px;
    }
    
    .slogan-container {
        padding: 20px;
    }
    
    .main-slogan {
        font-size: 1.5rem;
    }
    
    .sub-slogan {
        font-size: 1rem;
    }
    
    .nav-btn {
        flex: 1 0 100%;
        margin-bottom: 5px;
    }
    
    .social-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .social-btn {
        justify-content: center;
        width: 100%;
    }
    
    .page-content {
        padding: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
	
	.planning-wrapper {
        padding: 15px;
        margin: 10px;
    }
	
    .floors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .floor-card {
        padding: 15px;
    }

    .floor-preview-wrapper {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
    }

    .floor-number-overlay {
        font-size: 80px;
        opacity: 0.2;
    }

    .floor-card button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    .floor-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .floors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .floor-number-overlay {
        font-size: 60px;
    }

    .planning-wrapper {
        padding: 20px;
    }

    .floor-card button {
        padding: 10px;
        font-size: 14px;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .planning-wrapper {
        padding: 10px;
    }

    .floor-card h3 {
        font-size: 1.2rem;
    }

    .floor-number-overlay {
        font-size: 60px;
    }

    .floor-card button {
        font-size: 14px;
        padding: 10px;
    }
}

/* Для планшетов (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .floors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .planning-wrapper {
        padding: 25px;
    }

    .floor-number-overlay {
        font-size: 100px;
    }
}

.dashboard-wrapper{

background:rgba(255,255,255,0.9);

padding:30px;

border-radius:10px;

box-shadow:0 6px 20px rgba(0,0,0,0.15);

max-width:1200px;

margin:auto;

}

/* индикатор новых заявок */

.request-badge{

display:inline-block;

margin-left:8px;

background:#dc3545;

color:white;

font-size:13px;

padding:3px 8px;

border-radius:10px;

font-weight:bold;

}

#adminRequestsIndicator{

margin-right:10px;
font-weight:600;
color:#b30000;

}

/* уведомление о заявке */

.rent-notification{

position:fixed;

top:20px;
right:20px;

background:#28a745;
color:white;

padding:14px 22px;

border-radius:8px;

font-weight:bold;

box-shadow:0 5px 20px rgba(0,0,0,0.25);

opacity:0;
transform:translateY(-10px);

transition:all .3s ease;

z-index:9999;

}

.rent-notification.show{

opacity:1;
transform:translateY(0);

}

/* ------------------- */
/* КАМЕРЫ */
/* ------------------- */

.cameras-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(420px,1fr));
gap:25px;
margin-top:20px;
}

.camera-card{
background:white;
border-radius:8px;
padding:15px;
box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

.camera-player iframe{
width:100%;
height:260px;
border:0;
border-radius:6px;
}

.camera-card h3{
margin-top:0;
margin-bottom:10px;
}

.camera-player iframe{
width:100%;
height:260px;
border:0;
border-radius:6px;
}

.camera-desc{
margin-top:8px;
font-size:14px;
color:#666;
}

.camera-info{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 3px 10px rgba(0,0,0,0.15);
font-size:16px;
}

#camera-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(420px,1fr));
    gap:20px;
}

.camera-preview iframe{
    width:100%;
    height:400px;
    border:none;
}

.camera-block {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

.camera-preview{
    background:#1a1a1a;
    min-height:400px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#aaa;
}

.start-camera{
    font-size:20px;
    padding:15px 30px;
    cursor:pointer;
}

.filters .active{
    background:#0056b3;
}

#areaEdit{
display:flex;
flex-direction:column;
}

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

.photo-item {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.05);
}

/* Адаптивность для фотогалереи на about.php */
@media (max-width: 992px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photo-item {
        height: 250px;
    }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .photo-item {
        height: 200px;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .photo-item {
        height: 200px;
    }
}

/* для index.php, для блока "нет свободных площадей" */
.no-areas-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.5;
    grid-column: 1 / -1; /* чтобы сообщение занимало всю ширину сетки */
}

/* для index.php, для блока "нет свободных площадей" */
.no-areas-message p {
    margin: 0;
}