
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    margin-top: 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #00ff88;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #00ccdd;
    transform: translateX(-5px);
}

.back-link::before {
    content: "←";
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.back-link:hover::before {
    transform: translateX(-3px);
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #00ccdd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: 1.3rem;
    color: #888;
    max-width: 800px;
    margin: 0 auto;
}

.project-image {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.no-image {
    height: 400px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
}

.project-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    padding: 3rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.project-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #00ff88;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 255, 136, 0.2);
}

.project-description {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-line;
}

.project-meta {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-label {
    font-weight: 500;
    color: #00ccdd;
}

.meta-value {
    color: #cccccc;
}

.contact-section {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 221, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.contact-section h3 {
    font-size: 1.5rem;
    color: #00ff88;
    margin-bottom: 1rem;
}

.contact-section p {
    color: #cccccc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00ff88, #00ccdd);
    color: #000;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.contact-btn::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.contact-btn:hover::after {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .project-subtitle {
        font-size: 1.1rem;
    }

    .project-content {
        padding: 2rem;
    }

    .project-meta {
        padding: 1.5rem;
    }

    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-section {
        padding: 2rem;
    }

    .contact-btn {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* Анимации */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенная типографика для длинного текста */
.project-description p {
    margin-bottom: 1.5rem;
}

.project-description h3 {
    color: #00ccdd;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.project-description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.project-description li {
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.project-description strong {
    color: #ffffff;
}




.project-link-btn {
    background: linear-gradient(135deg, #00ff88, #00ccdd);
    color: #000;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.project-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.project-link-btn::after {
    content: "↗";
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .project-link-row {
        text-align: center;
    }

    .project-link-row .meta-label {
        margin-bottom: 0.5rem;
    }
}






.project-image {
    position: relative; /* Важно для позиционирования кнопки */
}

.gallery-button-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.gallery-btn {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #ffffff;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.gallery-icon {
    font-size: 1.1rem;
}

.photo-count {
    color: #00ff88;
    font-weight: 600;
}
