.gallery-section {
    margin-top: 0;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.section-header p {
    color: #999;
}

.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;

    overflow-x: auto;
    overflow-y: hidden;

    width: 100%;

    scroll-behavior: smooth;

    padding: 10px;

    align-items: center;
}

.gallery-track::-webkit-scrollbar {
    margin: 20px;
    height: 10px;
    background: transparent;
    
}

.gallery-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.057);

    border-radius: 10px;

    transition: 0.3s ease;
}

.gallery-track::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.183);
}

.gallery-track::-webkit-scrollbar-thumb {
    box-shadow: 0 0 10px rgba(116, 193, 252, 0.073);
}

.gallery-card {

    position: relative;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 22px;

    background: rgba(40,40,40,0.7);

    border: 1px solid rgba(255,255,255,0.08);

    transition: 0.35s ease;

    display: flex;

    align-items: center;
    justify-content: center;

    

    padding: 12px;
}

.gallery-card img {

    height: 420px;
    width: auto;
    max-width: 900px;

    position: relative;
    z-index: 1;

    object-fit: contain;
    border-radius: 14px;

    transition: 0.4s ease;
}

.gallery-caption {

    z-index: 5;
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 18px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.85),
            rgba(0,0,0,0)
        );

    color: white;

    font-size: 14px;
    line-height: 1.5;

    opacity: 0;
    transform: translateY(20px);

    transition: 0.35s ease;

    pointer-events: none;
}

.gallery-card:hover {

    transform:
        translateY(-8px)
        scale(1.015);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.45);
}

.gallery-card:hover img {
    transform: scale(1.02);
}

.gallery-card:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-btn {
    width: 46px;
    height: 46px;

    border-radius: 50%;
    border: none;

    background: rgba(30,30,30,0.8);
    color: white;

    cursor: pointer;

    position: absolute;
    z-index: 20;

    backdrop-filter: blur(10px);

    transition: 0.3s;
}

.gallery-btn:hover {
    background: rgba(60,60,60,0.9);
}

.gallery-btn.left {
    left: -20px;
}

.gallery-btn.right {
    right: -20px;
}

.flow-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    flex-wrap: wrap;

    margin-top: 10px;

    margin-bottom: 10px;
}

.flow-node {
    padding: 15px 30px;

    background: rgba(40,40,40,0.7);

    border-radius: 18px;

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);

    transition: 0.3s;
}

.flow-node:hover {
    transform: translateY(-4px);
}

.flow-arrow {
    font-size: 30px;
    color: #777;
}

.projects-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}


.nav-btn {
    background: rgba(30, 30, 30, 0.85);
    color: #e0e0e0;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    margin: 12px;
}

.nav-btn:hover {
    background: rgba(50, 50, 50, 0.9);
    transform: translateY(-2px);
    color: #ffffff;
}

.bullet-soft {
    color: rgba(255,255,255,0.35);

    margin-right: 8px;

    font-size: 0.9em;

    transition: 0.3s ease;
}

p:hover .bullet-soft {
    color: rgba(255,255,255,0.7);
}

.feature-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-mark {
    color: rgba(255,255,255,0.3);

    transition: 0.3s ease;

    user-select: none;
}

.feature-line:hover .feature-mark {
    color: #74c0fc;

    transform: translateX(2px);
    rotate: -90deg;

}

.stats-section {
    margin-top: 50px;
}

.chart-card {
    background: rgba(30, 30, 30, 0.75);

    border-radius: 20px;

    padding: 20px;

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(14px);

    box-shadow:
        0 8px 32px rgba(0,0,0,0.35);

    overflow: hidden;
}


/* Планшеты */
@media (min-width: 768px) {   

    .gallery-card img {
        height: 260px;
    }
    .projects-nav {
        flex-direction: row;
        justify-content: center;
    }
    
    .nav-btn {
        padding: 12px 25px;
    }
}