/**
 * Стили для современного загрузчика изображений
 */

/* Стили для блока загрузчика */
.photo-uploader {
    margin-bottom: 20px;
}

/* Стили для плейсхолдера загрузки */
.upload-placeholder {
    border: 2px dashed #ddd;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-placeholder:hover {
    border-color: #337ab7;
    background-color: #f5f5f5;
}

.placeholder-content {
    text-align: center;
    padding: 20px;
}

/* Стили для миниатюр */
.thumbnail {
    height: 250px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.thumbnail img {
    max-height: 150px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    padding: 10px;
}

.thumbnail .caption {
    padding: 10px;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

/* Стили для индикатора загрузки */
.progress {
    margin-bottom: 15px;
}

/* Стили для счетчика фотографий */
.photo-counter {
    margin-left: 10px;
    font-weight: normal;
}

/* Анимация для загрузки */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.photo-item {
    animation: fade-in 0.5s ease;
}

/* Стили для перетаскивания файлов */
.drag-over {
    border-color: #337ab7;
    background-color: #e8f1f8;
}

/* Дополнительные стили для кнопок */
.btn-file-upload {
    position: relative;
    overflow: hidden;
}

.btn-file-upload input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

/* Стили для навигации по шагам */
.progress-steps {
    list-style-type: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-wrap: wrap;
}

.progress-steps li {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 15px 10px;
    background-color: #f5f5f5;
    border-right: 1px solid #ddd;
}

.progress-steps li:last-child {
    border-right: none;
}

.progress-steps li.active {
    background-color: #337ab7;
    color: white;
}

.progress-steps li.completed {
    background-color: #5cb85c;
    color: white;
}

/* Отзывчивая сетка для фотографий */
@media (max-width: 767px) {
    .photo-item {
        width: 100%;
    }

    .thumbnail {
        height: auto;
        max-height: 300px;
    }

    .progress-steps {
        display: block;
    }

    .progress-steps li {
        margin-bottom: 5px;
    }
}

/* Стили для корректного отображения в мобильной версии */
@media (max-width: 480px) {
    .panel-body {
        padding: 10px;
    }

    .thumbnail {
        max-height: 250px;
    }

    .thumbnail img {
        max-height: 120px;
    }
}

/* Стили для совместимости с Bootstrap 3.3.7 */
.margin-bottom-20 {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

.first-photo {
    border: 2px solid #5cb85c;
}

.main-photo-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #5cb85c;
    color: white;
    padding: 2px 8px;
    font-size: 12px;
    z-index: 10;
}

.search_adr { display:flex;gap:10px; }

.steps-btn { display: flex;
    justify-content: space-evenly;margin-top:2rem; }










.content .document-block { margin:1rem 0; }















.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 соотношение (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}




  .feedback-form-container {
    max-width: 600px;
    margin: 1rem auto 2rem;
    padding: 20px;
    background: #ebebeb;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feedback-form-container .form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    height: auto;
}

.feedback-form-container .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
}

.feedback-form-container .btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    background: #4a90e2;
    border: none;
    font-weight: 500;
}

.feedback-form-container .btn-primary:hover {
    background: #357abd;
}

.feedback-form-container .checkbox {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.feedback-form-container .help-block {
    display: none;
    margin-top: 5px;
    color: #a94442;
}

.feedback-form-container .has-error .help-block {
    display: block;
}

.feedback-form-container .has-error .form-control {
    border-color: #a94442;
}

.feedback-form-container .has-success .form-control {
    border-color: #3c763d;
}

.feedback-form-container  .btn.btn-red.btn-sm { min-width:200px;padding:0.5rem 1rem;text-transform:uppercase; }

.feedback-form-container h3 { font-weight:600;font-size: 2rem, }
.mt-0 { margin-top:0; }

@media (max-width:768px) {
.feedback-form-container { max-width:96%;margin-left:auto;margin-right:auto; }
 }






.sub_head { background:#f5f5f5;padding:0.4rem 1rem;border-radius:0.4rem;margin: 1rem 0 2rem; }
.detail_picture.img-fluid { display:block; }
.detail_picture.img-fluid:after { clear:both;content:"";float:none; }
.fucking-clear { display:flex;}






.aside__nav .dropdown-menu {
    display: none;
}

.aside__nav .dropdown.open > .dropdown-menu {
    display: block; /* на случай, если slideToggle не сработает */
}

.dropdown-arrow {
    /* твои стили стрелки */
}

.dropdown-arrow.expanded {
    transform: rotate(180deg); /* или как у тебя анимируется */
}