/* ============================================
   ДЕТАЛИ ПРОЕКТА – ГАЛЕРЕЯ СТИКИ В ЛЕВОЙ КОЛОНКЕ
   ============================================ */
.page-header {
    background: #0f2636;
    padding: 140px 0 60px;
    border-bottom: 1px solid #1a3042;
}

/* Кнопки назад */
.back-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.back-link {
    display: inline-block;
    color: #c9a96e;
    font-weight: 500;
    transition: color 0.3s;
}
.back-link:hover {
    color: #dbb97c;
}
.back-link i {
    margin-right: 8px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
}
.page-header .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    margin-top: 15px;
    color: #b0b8b8;
    font-size: 16px;
}
.page-header .project-meta span i {
    color: #c9a96e;
    margin-right: 8px;
}

/* Основной контент – две колонки */
.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px 0;
    align-items: start;  /* чтобы sticky работал корректно */
}

/* ===== ЛЕВАЯ КОЛОНКА – ГАЛЕРЕЯ (СТИКИ) ===== */
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 100px;          /* отступ от верха с учётом высоты шапки */
    align-self: start;   /* прилипание к началу родительской сетки */
}

.main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #142838;
    position: relative;
    padding-bottom: 66%; /* соотношение 3:2 */
    height: 0;
}
.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, transform 0.2s;
    background: #142838;
    flex-shrink: 0;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-item:hover {
    transform: scale(1.05);
}
.thumb-item.active {
    border-color: #c9a96e;
    box-shadow: 0 0 0 2px #c9a96e;
}

/* ===== ПРАВАЯ КОЛОНКА – ДЕТАЛИ ===== */
.project-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 20px;
}
.project-details p {
    font-weight: 300;
    color: #c8d0d0;
    line-height: 1.8;
    margin-bottom: 20px;
}
.project-details .info-block {
    margin-top: 30px;
    border-top: 1px solid #1a3042;
    padding-top: 30px;
}
.project-details .info-block h4 {
    font-size: 18px;
    color: #c9a96e;
    margin-bottom: 12px;
}
.project-details .info-block ul {
    list-style: none;
    padding: 0;
}
.project-details .info-block ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
    color: #b0b8b8;
    font-weight: 300;
}
.project-details .info-block ul li::before {
    content: '●';
    color: #c9a96e;
    position: absolute;
    left: 0;
}
.project-details .info-block .client-info {
    font-size: 16px;
    color: #c8d0d0;
}
.project-details .info-block .client-info strong {
    color: #ffffff;
}


/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    /* На мобильных отключаем sticky, чтобы галерея прокручивалась как обычно */
    .project-gallery {
        position: static;
        top: auto;
        align-self: auto;
    }
    .main-image {
        padding-bottom: 56%; /* 16:9 */
    }
    .thumb-item {
        width: 70px;
        height: 70px;
    }
}
@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 40px;
    }
    .page-header h1 {
        font-size: 28px;
    }
    .project-content {
        padding: 40px 0;
    }
    .thumb-item {
        width: 60px;
        height: 60px;
    }
}