/* ====================================
   МОДАЛЬНОЕ ОКНО - ОСНОВА
   ==================================== */

.swiper-modal-gallery-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.swiper-modal-gallery-wrapper.show {
    display: flex;
}

/* Overlay (затемнение) */
.swiper-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

/* Контейнер модалки */
.swiper-modal-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ====================================
   ЗАГОЛОВОК МОДАЛКИ
   ==================================== */

.swiper-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.swiper-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.swiper-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.swiper-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* ====================================
   SWIPER ГАЛЕРЕЯ
   ==================================== */

.swiper-modal-container .swiper {
    flex: 1;
    width: 100%;
}

.swiper-slide {
    height: auto !important;
}

.swiper-modal-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 400px;
}

.swiper-modal-image {
    max-width: 100%;
    max-height: calc(90vh - 200px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.swiper-modal-caption {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
    text-align: center;
    max-width: 600px;
}

/* ====================================
   НАВИГАЦИЯ SWIPER
   ==================================== */

.swiper-modal-prev,
.swiper-modal-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.swiper-modal-prev:hover,
.swiper-modal-next:hover {
    background: #fff;
    transform: scale(1.1);
}

.swiper-modal-prev::after,
.swiper-modal-next::after {
    font-size: 20px;
    font-weight: bold;
}

/* ====================================
   АДАПТИВНОСТЬ
   ==================================== */

@media (max-width: 767px) {
    .swiper-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .swiper-modal-header {
        padding: 15px 20px;
    }
    
    .swiper-modal-title {
        font-size: 16px;
    }
    
    .swiper-modal-close {
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    
    .swiper-modal-slide {
        padding: 20px 10px;
        min-height: 300px;
    }
    
    .swiper-modal-image {
        max-height: calc(95vh - 150px);
        max-width: 100%;
    }
    
    .swiper-modal-caption {
        font-size: 14px;
        margin-top: 15px;
        padding: 0 10px;
    }
    
    .swiper-modal-prev,
    .swiper-modal-next {
        width: 40px;
        height: 40px;
    }
    
    .swiper-modal-prev::after,
    .swiper-modal-next::after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .swiper-modal-header {
        padding: 12px 15px;
    }
    
    .swiper-modal-title {
        font-size: 14px;
    }
    
    .swiper-modal-slide {
        padding: 15px 8px;
        min-height: 250px;
    }
    
    .swiper-modal-image {
        max-height: calc(95vh - 120px);
    }
    
    .swiper-modal-caption {
        font-size: 13px;
        margin-top: 10px;
    }
}

/* ====================================
   ХОД СТРОИТЕЛЬСТВА
   ==================================== */

.construction-progress-section {
    padding: 80px 0;
    background: #fff;
}

.construction-progress-section .section-title {
    font-family: 'PT Serif', serif;
    font-size: 42px;
    font-weight: 700;
    color: #2C5282;
    text-align: center;
    margin-bottom: 50px;
}

.construction-progress-grid {
    display: flex;
    flex-wrap: wrap;
}

/* Карточка прогресса */
.construction-progress-card {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3;
}

.construction-progress-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Фоновое изображение */
.progress-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.progress-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.construction-progress-card:hover .progress-card-image {
    transform: scale(1.05);
}

/* Градиентный оверлей */
.progress-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* Контент карточки */
.progress-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
}

.progress-card-title {
    margin: 0;
    font-family: 'PT Serif', serif;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ====================================
   АДАПТИВНОСТЬ ХОД СТРОИТЕЛЬСТВА
   ==================================== */

@media (max-width: 991px) {
    .construction-progress-section {
        padding: 60px 0;
    }
    
    .construction-progress-section .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .progress-card-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .construction-progress-section {
        padding: 50px 0;
    }
    
    .construction-progress-section .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .progress-card-content {
        padding: 20px;
    }
    
    .progress-card-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .construction-progress-section {
        padding: 40px 0;
    }
    
    .construction-progress-section .section-title {
        font-size: 24px;
    }
    
    .progress-card-content {
        padding: 15px;
    }
    
    .progress-card-title {
        font-size: 16px;
    }
}

/* ====================================
   ВСТРОЕННАЯ ГАЛЕРЕЯ (Inline Gallery)
   ==================================== */
html, body {
    overflow-x: hidden;
}

.swiper-inline-gallery {
    position: relative;
    padding: 80px 0;
    background-color: transparent;
    overflow: hidden;
}

/* Swiper контейнер */
.swiper-inline-gallery.swiper {
    width: 100%;
    /*padding: 0 0 60px 0;*/
    overflow: visible;
}

/* Wrapper */
.swiper-inline-gallery .swiper-wrapper {
    align-items: center;
}

/* Слайд */
.swiper-inline-gallery .swiper-slide {
    width: 70%;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

/* Активный (центральный) слайд */
.swiper-inline-gallery .swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Изображения */
.swiper-inline-gallery .swiper-slide img {
    width: 100%;
    height: 80vh;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

/* Стрелки навигации */
.swiper-inline-gallery .swiper-button-prev,
.swiper-inline-gallery .swiper-button-next {
    color: #2C5282;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.swiper-inline-gallery .swiper-button-prev:hover,
.swiper-inline-gallery .swiper-button-next:hover {
    background-color: #2C5282;
    color: #ffffff;
    transform: scale(1.1);
}

.swiper-inline-gallery .swiper-button-prev::after,
.swiper-inline-gallery .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

/* Pagination (точки) */
.swiper-inline-gallery .swiper-pagination {
    bottom: 20px;
}

.swiper-inline-gallery .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #2C5282;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.swiper-inline-gallery .swiper-pagination-bullet-active {
    background-color: #2C5282;
    opacity: 1;
    transform: scale(1.3);
}

/* ====================================
   АДАПТИВНОСТЬ ВСТРОЕННОЙ ГАЛЕРЕИ
   ==================================== */

/* Tablet (≤991px) */
@media (max-width: 991px) {
    .swiper-inline-gallery {
        padding: 50px 0;
    }
    
    .swiper-inline-gallery .swiper-slide img {
        height: 60vh;
    }
    
    .swiper-inline-gallery .swiper-slide {
        width: 75%;
    }
    
    .swiper-inline-gallery .swiper-button-prev,
    .swiper-inline-gallery .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .swiper-inline-gallery .swiper-button-prev::after,
    .swiper-inline-gallery .swiper-button-next::after {
        font-size: 18px;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .swiper-inline-gallery {
        padding: 40px 0;
    }
    
    .swiper-inline-gallery.swiper {
        padding: 0 0 50px 0;
    }
    
    .swiper-inline-gallery .swiper-slide {
        width: 90%;
        opacity: 1;
    }
    
    .swiper-inline-gallery .swiper-slide-active {
        transform: scale(1);
    }
    
    .swiper-inline-gallery .swiper-slide img {
        height: 50vh;
    }
    
    .swiper-inline-gallery .swiper-button-prev,
    .swiper-inline-gallery .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .swiper-inline-gallery .swiper-button-prev::after,
    .swiper-inline-gallery .swiper-button-next::after {
        font-size: 16px;
    }
    
    .swiper-inline-gallery .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .swiper-inline-gallery .swiper-slide img {
        height: 40vh;
    }
}