/* ==============================
   Страница проекта 1cab.ru
   ============================== */

/* Герой-баннер */
.cab-banner {
    background-image: url("/img/1cab/1cab_banner.png");
}
.cab-banner:after {
    background: #0a2d5a;
    opacity: 0.72;
}

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

/* Секции */
.cab-section {
    width: 100%;
    padding: 60px 0;
    position: relative;
}

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

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

.cab-about-card {
    flex: 1 1 220px;
    max-width: 260px;
    background: #f4f8ff;
    border: 2px solid #d0e3ff;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(10,45,90,0.06);
}

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

.cab-about-card h4 {
    font-size: 16px;
    color: #0a2d5a;
    margin-bottom: 8px;
}

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

/* Что было сделано */
.cab-work {
    background-image: linear-gradient(135deg, #0a2d5a, #1565c0, #0d47a1);
}

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

.cab-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;
    position: relative;
}

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

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

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

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

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

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

.cab-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(10,45,90,0.18);
    border: 1px solid rgba(10,45,90,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
    display: block;
}

.cab-screen-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(10,45,90,0.28);
}

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

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

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

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

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

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

/* Подход */
.cab-approach {
    background: #fff;
}

.cab-steps {
    margin-top: 40px !important;
}

.cab-step-blue {
    background: linear-gradient(135deg, #0a2d5a, #1565c0) !important;
    font-size: 22px !important;
}

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

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

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

.cab-result-big {
    font-size: 48px;
    font-weight: bold;
    color: #1565c0;
    margin-bottom: 8px;
    line-height: 1;
}

.cab-result-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #0a2d5a;
}

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

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

.cab-tech h2 {
    color: #0a2d5a;
}

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

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

.cab-tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(10,45,90,0.14);
}

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

.cab-tech-item span {
    font-size: 14px;
    font-weight: 600;
    color: #0a2d5a;
    text-align: center;
}

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

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

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

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

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

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

    .cab-result-big {
        font-size: 36px;
    }

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