/* ==============================
   Страница кейса: AI-генерация описаний товаров
   Цвета: фиолетовый #5c3bc4, тёмно-синий #1a1a3a
   ============================== */

.pr-banner {
    background-image: url("/img/propet/main_banner.png");
}
.pr-banner:after {
    background: #1a1a3a;
    opacity: 0.75;
}

.pr-label {
    display: inline-block;
    background: #5c3bc4;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 30px;
    padding: 6px 20px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.pr-section {
    width: 100%;
    padding: 60px 0;
    position: relative;
}

/* О проекте */
.pr-about {
    background: #fff;
}

.pr-about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 40px;
}

.pr-about-card {
    flex: 1 1 220px;
    max-width: 260px;
    background: #f3f0ff;
    border: 2px solid #c4b5f4;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(92,59,196,0.08);
}

.pr-about-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.pr-about-card h4 {
    font-size: 16px;
    color: #3d1fa8;
    margin-bottom: 8px;
}

.pr-about-card p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

/* Что было сделано */
.pr-work {
    background-image: linear-gradient(135deg, #1a1a3a, #3d1fa8, #5c3bc4);
}

.pr-work-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 40px;
}

.pr-work-item {
    flex: 1 1 280px;
    max-width: 340px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 28px 24px;
}

.pr-work-num {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.pr-work-item h4 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 10px;
}

.pr-work-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

/* Скриншоты */
.pr-screenshots {
    background-image: linear-gradient(270deg, #ede8ff, #f3f0ff);
}

.pr-screens-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.pr-screen-item {
    flex: 1 1 300px;
    max-width: 500px;
    text-align: center;
}

.pr-screen-item img {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(26,26,58,0.18);
    border: 1px solid rgba(92,59,196,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
    display: block;
}

.pr-screen-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(26,26,58,0.28);
}

.pr-screen-caption {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    font-style: italic;
}

/* Лайтбокс */
.pr-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    cursor: zoom-out;
}

.pr-lightbox.active {
    display: flex;
}

.pr-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    object-fit: contain;
    cursor: default;
}

.pr-lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    user-select: none;
}

.pr-lightbox-close:hover {
    opacity: 1;
}

/* Результат */
.pr-result {
    padding-top: 60px;
    padding-bottom: 60px;
}

.pr-result-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.pr-result-card {
    flex: 1 1 220px;
    max-width: 280px;
    min-height: auto !important;
    text-align: center;
    padding: 30px 20px !important;
}

.pr-result-big {
    font-size: 42px;
    font-weight: bold;
    color: #5c3bc4;
    margin-bottom: 8px;
    line-height: 1;
}

.pr-result-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #1a1a3a;
}

.pr-result-card p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

/* Технологии */
.pr-tech {
    background: #f5f3ff;
}

.pr-tech h2 {
    color: #1a1a3a;
}

.pr-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.pr-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #c4b5f4;
    border-radius: 16px;
    padding: 20px 24px;
    min-width: 120px;
    box-shadow: 0 4px 14px rgba(92,59,196,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pr-tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(92,59,196,0.16);
}

.pr-tech-icon {
    font-size: 28px;
}

.pr-tech-item span {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a3a;
    text-align: center;
}

/* Адаптив */
@media (max-width: 1000px) {
    .pr-about-card {
        max-width: 100%;
        flex: 1 1 45%;
    }

    .pr-work-item {
        max-width: 100%;
    }

    .pr-screen-item {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .pr-result-card {
        max-width: 100%;
        flex: 1 1 45%;
    }

    .pr-tech-item {
        flex: 1 1 calc(33% - 20px);
    }
}

@media (max-width: 600px) {
    .pr-about-card,
    .pr-result-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .pr-result-big {
        font-size: 34px;
    }

    .pr-tech-item {
        flex: 1 1 calc(50% - 20px);
    }
}
