/* ==============================
   Страница проекта snab-74.ru
   Цвета: малиновый #d4003e, тёмно-синий #1a2540
   ============================== */

.sn-banner {
    background-image: url("/img/snab/snab_banner.png");
}
.sn-banner:after {
    background: #1a2540;
    opacity: 0.72;
}

.sn-label {
    display: inline-block;
    background: #d4003e;
    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;
}

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

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

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

.sn-about-card {
    flex: 1 1 220px;
    max-width: 260px;
    background: #fff0f4;
    border: 2px solid #f4a8bf;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(212,0,62,0.07);
}

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

.sn-about-card h4 {
    font-size: 16px;
    color: #8b0033;
    margin-bottom: 8px;
}

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

/* Что было сделано */
.sn-work {
    background-image: linear-gradient(135deg, #1a2540, #8b0033, #d4003e);
}

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

.sn-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;
}

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

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

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

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

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

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

.sn-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,37,64,0.18);
    border: 1px solid rgba(212,0,62,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
    display: block;
}

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

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

/* Лайтбокс */
.sn-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;
}

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

.sn-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;
}

.sn-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;
}

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

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

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

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

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

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

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

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

.sn-tech h2 {
    color: #1a2540;
}

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

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

.sn-tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212,0,62,0.16);
}

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

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

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

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

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

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

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

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

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

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