body {
    font-family: Arial, sans-serif;
    background: url('/img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    opacity: 99%;
}
.header {
    color: rgb(0, 0, 0);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.99);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header .logo {
    font-size: 24px;
    font-weight: bold;
    /* max-width: 150px; */
}
/* Добавляем стили для логотипа */
.logo {
    display: block;
    max-width: 100px; /* Максимальная ширина логотипа */
    height: auto;
}

.logo-img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s;
}

.logo-img:hover {
    opacity: 0.8;
}

.nav-link {
    color: rgb(0, 0, 0) !important;
}
.nav-link:hover {
    color: rgb(255, 0, 0) !important;
    text-shadow: 0 0 10px rgb(255, 0, 0);
}
.section {
    padding: 0;
    background-color: #f8f9fa;
    max-width: 1180px;
    margin: 40px auto 0; /* Отступ сверху для учета фиксированной шапки */
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 100px; /* Чтобы шапка не перекрывала начало секции */
}
.about {
    margin: 200px auto 0;
}
.section h2 {
    height: 80px; /* Высота заголовка на всю верхнюю часть секции */
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    padding: 15px;            
    background: #ecedee
}
.section .container {
    padding-top: 20px;
    padding-bottom: 20px;
    
}
footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}
.map-container {
    height: 500px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
    
}
.map-container iframe {
    width: 100%;
    height: 500px;
    margin-bottom: 50px;
}
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: white;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.popup img {
    max-width: 100%;
    height: auto;
}
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}
#about .col-md-6 img {
    height: 95%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}



.navbar-toggler {
    border: none;
    background: transparent;
}
.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28155, 155, 155, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* .contact-info {
    text-align: right;
} */

.flex-column-reverse {
    display: flex;
    flex-direction: column-reverse;
}
.gallery-item {
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    margin-top: 35px;

}
.gallery-item:hover {
    transform: scale(1.03);
}
.modal-dialog {
    max-width: 800px;
}
.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0,0,0,0.2);
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
}

.work-item {
    position: relative;
    height: 250px; /* Фиксированная высота контейнера */
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Сохраняет пропорции и заполняет контейнер */
    object-position: center;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-description {
    padding: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.work-item:hover .work-description {
    opacity: 1;
}

@media (max-width: 768px) {
    .contact-info {
        text-align: left;
        margin-top: 10px;
    }
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .map-container iframe {
        height: 300px;
    }
    .map-container {
        height: 300px;
    }
    .section {
        max-width: 95vw;
    }
    .work-item {
        height: 350px;
    }
    .work-description {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .flex-md-row {
        flex-direction: row !important;
    }
}
@media (max-width: 991px) {
    .logo {
        max-width: 50px;
    }
}