* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    padding: 20px;
    background-image: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.98)), 
                      url('https://admcher.ru/wp-content/uploads/2026/02/Панорама-площади.webp');
    background-size: cover;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background-color: #003366;
    color: white;
    padding: 25px 30px;
    border-bottom: 5px solid #ff9900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logos {
    display: flex;
    gap: 20px;
    align-items: center;
}
.logo {
    height: 60px;
    width: auto;
    background: white;
    padding: 5px;
    border-radius: 8px;
}
.header h1 {
    font-size: 28px;
    margin: 10px 0;
}
.back-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 30px;
    transition: 0.3s;
}
.back-link:hover {
    background: rgba(255,255,255,0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px;
}
.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,51,102,0.2);
}
.project-preview {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #003366;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.project-status.winner { background: #ff9900; }
.project-status.completed { background: #4caf50; }
.project-info {
    padding: 20px;
}
.project-info h3 {
    color: #003366;
    margin-bottom: 10px;
}
.project-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}
.project-date {
    font-size: 12px;
    color: #999;
}

/* Страница проекта */
.project-container {
    padding: 30px;
}
.project-header {
    margin-bottom: 30px;
}
.project-header h1 {
    color: #003366;
    font-size: 32px;
    margin-bottom: 10px;
}
.project-block {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #003366;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.project-block h2 {
    color: #003366;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.document-list, .discussion-list {
    list-style: none;
}
.document-list li, .discussion-list li {
    margin-bottom: 12px;
}
.document-list a, .discussion-list a {
    color: #003366;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.document-list a:hover, .discussion-list a:hover {
    text-decoration: underline;
}
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.gallery-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.gallery-item img:hover {
    transform: scale(1.05);
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.news-date {
    color: #ff9900;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
}
.news-item h3 {
    color: #003366;
    font-size: 18px;
    margin-bottom: 8px;
}
.cameras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.camera-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.embed-container iframe {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.modal-content img {
    width: 100%;
    height: auto;
}
.modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
.loading, .error, .no-projects {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #666;
}
.error {
    color: #e74c3c;
}
.footer {
    background: #f1f1f1;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #ddd;
}