
@media (min-width: 960px){
    .projects-section {
        background: rgba(0, 0, 0, 0.5);
        padding: 16px 0;
        color: #fff;
        margin-bottom: 20px;
    }
    .projects-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 16px;
    }
    
    .projects-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }
    
    .projects-controls {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    /* === SLIDER === */
    .projects-slider {
        position: relative;
        overflow: hidden;
    }
    
    .projects-track {
        display: flex;
        gap: 16px;
        transition: transform 0.5s ease;
    }
    
    .project-card {
        width: 225px;
        background: #252427;
        flex-shrink: 0;
    }
    
    .project-image {
        position: relative;
        overflow: hidden;
        background: #1a1a1a;
        width: auto;
        height: 370px;
    }
    
    .project-image img {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        object-fit: cover;
    }
    
    .project-info {
        padding: 16px 10px;
    }
    
    .project-info h3 {
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 1.5px;
        margin: 0 0 12px 0;
        text-transform: uppercase;
        color: #fff;
        font-family: system-ui;
    }
    
    .project-info p {
        font-size: 13px;
        line-height: 1.3;
        color: #888;
        margin: 0;
        font-family: 'Roboto';
    }
    
    /* === ARROWS === */
    .slider-arrow {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        width: 50px;
        height: 50px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        flex-shrink: 0;
        padding: 0;
    }
    
    .slider-arrow:hover {
        background: #fff;
        color: #0a0a0a;
        border-color: #fff;
    }
    
    .slider-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    /* === LIGHTBOX === */
    .lightbox-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.92);
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        cursor: zoom-out;
    }
    
    .lightbox-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .lightbox-overlay img {
        max-width: 90vw;
        max-height: 90vh;
        object-fit: contain;
        border-radius: 4px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
        cursor: default;
        user-select: none;
        transform: scale(0.95);
        transition: opacity 0.5s ease, transform 0.4s ease;
    }
    
    .lightbox-overlay.active img {
        transform: scale(1);
    }
    
    .lightbox-overlay img.fading {
        opacity: 0;
    }
    
    .lightbox-close {
        position: absolute;
        top: 20px;
        right: 42px;
        background: transparent;
        border: none;
        color: #b7b7b7;
        font-size: 62px;
        font-weight: 200;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        transition: transform 0.5s ease;
        z-index: 100000;
        font-family: 'Roboto';  
    }
    
    .lightbox-close:hover {
        transform: scale(1.2);
    }
    
    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        width: 50px;
        height: 50px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 100000;
        padding: 0;
    }
    
    .lightbox-nav:hover {
        background: #262525;
        color: #fff;
        border-color: #767676;
    }
    
    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .lightbox-prev { left: 30px; }
    .lightbox-next { right: 30px; }
}

@media (max-width: 800px) {
    .projects-section {
        background: rgb(29 29 31);
        padding: 20px 0;
        color: #fff;
        margin-bottom: 20px;
        display: block !important;
    }
    
    .projects-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
.projects-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.smallheader {
    font-size: 16px;
    letter-spacing: 2px;
    margin: 0;
}

.projects-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Стрелки как в лайтбоксе */
.slider-arrow {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.slider-arrow:hover {
    background: #262525;
    color: #fff;
    border-color: #767676;
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
}
    
    /* Слайдер - БЕЗ нативного скролла, только JS */
    .projects-slider {
        position: relative;
        overflow: hidden;
        width: 100%;
    }
    
    .projects-track {
        display: flex;
        gap: 15px;
        transition: transform 0.5s ease;
        /* УБРАНЫ overflow-x и scroll-snap */
    }
    
    .project-card {
        width: 280px;
        background: #252427;
        flex-shrink: 0;
        /* УБРАН scroll-snap-align */
    }
    
    .project-image {
        position: relative;
        overflow: hidden;
        background: #1a1a1a;
        width: 100%;
        height: 320px;
    }
    
    .project-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .project-info {
        padding: 15px 12px;
    }
    
    .project-info h3 {
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 1px;
        margin: 0 0 10px 0;
        text-transform: uppercase;
        color: #fff;
        font-family: system-ui;
    }
    
    .project-info p {
		font-size: 15px;
		line-height: 1.2;
		color: #999;
		margin: 0;
		font-family: system-ui;
		letter-spacing: 0.5px;
    }
    
    /* Лайтбокс */
    .lightbox-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.92);
        z-index: 99999;
        display: none;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        cursor: zoom-out;
    }
    
    .lightbox-overlay.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .lightbox-overlay img {
        max-width: 95vw;
        max-height: 70vh;
        object-fit: contain;
        border-radius: 4px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
        cursor: default;
        user-select: none;
        transform: scale(0.95);
        transition: opacity 0.5s ease, transform 0.4s ease;
    }
    
    .lightbox-overlay.active img {
        transform: scale(1);
    }
    
    .lightbox-overlay img.fading {
        opacity: 0;
    }
    
    .lightbox-close {
        position: absolute;
        top: 15px;
        right: 20px;
        background: transparent;
        border: none;
        color: #b7b7b7;
        font-size: 40px;
        font-weight: 200;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        transition: transform 0.5s ease;
        z-index: 100000;
        font-family: 'Roboto';
    }
    
    .lightbox-close:hover {
        transform: scale(1.2);
    }
    
    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        width: 45px;
        height: 45px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 100000;
        padding: 0;
    }
    
    .lightbox-nav:hover {
        background: #262525;
        color: #fff;
        border-color: #767676;
    }
    
    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
}
