/* Стили для страницы деталей проекта */
.project-detail {
    background-color: rgba(255, 255, 255, 0.2); /* Transparent background */
    border-radius: 0.938rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.875rem;
    margin-bottom: 1.875rem;
}

.project-detail-header {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #333;
    text-align: center;
}

.project-detail-image-container {
    width: 100%;
    max-width: 37.5rem;
    position: relative;
    padding-bottom: 57.1428%; /* 4/7 = 0.571428 */
    margin: 0 auto 1.875rem;
    overflow: hidden;
    border-radius: 10px;
}

.project-detail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-detail-content {
    padding: 0;
}

.project-detail-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.875rem;
}

.project-detail-info {
    background-color: rgba(255, 255, 255, 0.1); /* Transparent background */
    padding: 1.25rem;
    border-radius: 0.625rem;
    margin-bottom: 1.875rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-detail-info p {
    margin-bottom: 0.625rem;
    font-size: 1.1rem;
    color: #555;
}

.project-detail-info strong {
    color: #333;
}

.progress-bar-container {
    margin-bottom: 1.875rem;
}

.progress-bar {
    width: 100%;
    height: 0.75rem; /* Make it thinner for a minimalistic look */
    background-color: #e0e0e0; /* Light gray for the empty part */
    border-radius: 0.375rem; /* Half of height for rounded ends */
    overflow: hidden;
    margin-bottom: 0.625rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a7c59, #8ac299); /* Site's green gradient */
    border-radius: 0.375rem; /* Match parent border-radius */
    transition: width 0.5s ease-in-out; /* Smoother transition */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); /* Subtle outer shadow */
}

.progress-text {
    text-align: center;
    font-size: 1rem; /* Slightly smaller for minimalism */
    font-weight: 500; /* Slightly less bold */
    color: #333;
    margin-top: 0.5rem; /* Add some space */
}

.project-detail-qr {
    text-align: center;
    margin-bottom: 1.875rem;
    padding: 1.25rem;
    background-color: rgba(255, 255, 255, 0.1); /* Transparent background */
    border-radius: 0.625rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-detail-qr h3 {
    margin-bottom: 1.25rem;
    color: #333;
    font-size: 1.5rem;
}

.qr-code-desktop {
    display: block;
    margin-bottom: 0.938rem;
}

.qr-code-iframe {
    width: 100%;
    height: 41.875rem;
    border: none;
    border-radius: 10px;
}

.qr-code-mobile {
    display: none;
    margin-bottom: 0.938rem;
}

.qr-code-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0;
}

.project-detail-actions {
    text-align: center;
    margin-bottom: 1.875rem;
}

.project-back-link {
    text-align: center;
}

@media (max-width: 48rem) {
    .project-detail-header {
        font-size: 1.8rem;
    }
    
    
    .project-detail-content {
        padding: 0;
    }
    
    .qr-code-desktop {
        display: none;
    }
    
    .qr-code-mobile {
        display: block;
    }
    
    .qr-code-iframe {
        height: 18.75rem;
    }
}