.construction-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.construction-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Заголовок */
.construction-header {
    text-align: center;
    margin-bottom: 20px;
}

.construction-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.header-line {
    width: 50px;
    height: 3px;
    background-color: #FF6B35;
    margin: 0 auto;
    border-radius: 2px;
}

/* Переключатель периодов */
.period-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.period-btn.active {
    background-color: #FF6B35;
    color: white;
    border-color: #FF6B35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Основной просмотрщик */
.main-viewer {
    margin-bottom: 12px;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 350px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Навигационные кнопки */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #1f2937;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Счетчик изображений */
.image-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
}

/* Миниатюры */
.thumbnails-container {
    margin-bottom: 16px;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
    max-width: 100%;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #d1d5db;
}

.thumbnail.active {
    border-color: #FF6B35;
    transform: scale(0.95);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 107, 53, 0.15);
}

/* Информация */
.info-text {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.info-text span {
    font-weight: 600;
    color: #FF6B35;
}

/* Адаптивность */
@media (max-width: 768px) {
    .construction-content {
        padding: 20px 14px;
    }

    .construction-header h2 {
        font-size: 18px;
    }

    .period-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .main-image-container {
        max-height: 280px;
    }

    .thumbnails-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 6px;
    }

    .nav-btn {
        width: 30px;
        height: 30px;
    }

    .nav-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .construction-header h2 {
        font-size: 16px;
    }

    .main-image-container {
        max-height: 220px;
    }

    .thumbnails-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .info-text {
        font-size: 12px;
    }
}
