:root{
    --bg:#313131;
    --glass: rgba(255,255,255,0.03);
    --bg-color-black:#0000004e;
    
    --muted:#bdbdbd;
    --hover-black-el:#ffffff33;
    --color-white-30:rgba(255, 255, 255, 0.3);
    --accent:#7c4dff; /* фиолетовый акцент */

    --card-radius:14px;
    --box-s-glass-black:inset 3px -3px 3px -2px #8b8b8b3e, inset -3px 3px 2px -2px #4f352294;
}
*{
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
    box-sizing:border-box;
    font-family: var(--font-f-regular);
    --webkit-font-smoothing:antialiased;
    letter-spacing: 0.3px;
}

html,body{
    height:100%;
    margin:0;
    background-color: var(--color-black);
}
 .content-header h1{
    z-index: 2;
 }
.bg-section{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
 }
.app{
    display:flex;
    min-height:100vh
}


/* SIDEBAR */
.sidebar{
    width:350px;
    background-color:var(--bg-color-black);
    backdrop-filter: var(--blure-glass-body);
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.logo{
    padding: 20px;
    border-bottom: 1px solid var(--color-white-30);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.icon-left-bar, .zoom-btn{
    --s:35px;
    width: var(--s);
    min-width: var(--s);
    padding: 8px;
    border-radius: 50%;
    background-color: #494949;
    fill: var(--color-white);
    box-shadow: inset 0 0px 2px 0px #ffffff2b, inset 0px -1px 4px 0px #ffffff1f;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.icon-left-bar:hover, .zoom-btn:hover, .btn-price:hover{
    background-color: #7a7a7a;
}
.case-list{
    display:flex;
    flex-direction:column;
    height: 100%;
    padding: 10px;
    gap: 5px;
}
.case-item{
    padding:10px;
    border-radius:var(--border-r-smoll);
    color:var(--muted);
    cursor:pointer;
    display:flex;
    flex-direction:column;
}
.case-item:hover{
    background:var(--hover-black-el);
}
.case-item.active{
    background:var(--hover-black-el);
    color:var(--color-white);
}
.case-item .title{
    font-weight:600
}
.case-item .sub{
    font-size:13px;
    color:var(--muted);
    margin-top:6px
}
.sidebar-footer{
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: var(--border-r-smoll);
    width: 100%;

}
.greed-contnact{
    gap: 20px;
    display: flex;
    flex-direction: row;
}
.labels{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.contact-text-box{
    padding: 10px;
    cursor: pointer;
    border-radius: var(--border-r-smoll);
    width: 100%;
}
.contact-text-box:hover{
    background-color: var(--hover-black-el);
}
.contact-text-box p{
    color: var(--color-white);
    opacity: 1;
}

.contact-icon{
    fill: var(--color-white-30);
    margin-right: 15px;
}

/* CONTENT */
.content{

    padding:20px;
}
.content-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.content-header h1{
    margin:0;
    font-size:22px;
    color: var(--color-white);
}

.labels{
    display:flex;
    gap:8px;
}
.label{
    font-size:13px;
    color:var(--muted);
    padding:6px 10px;
    border-radius:999px;
    background:rgba(255,255,255,0.02);
}



.gallery{
    background:var(--bg-color-black);
    border-radius:var(--border-r-big);
    backdrop-filter: var(--blure-glass-body);
    box-shadow: var(--box-s-glass-black);
    padding:20px;
    position:relative;

    display:flex;
    flex-direction:row;
}
.gallery{
    gap: 20px;
    margin-top: 20px;
    width: fit-content;
}


.gallery ::-webkit-scrollbar {
  width: 0px; /* в основном для вертикальных полос прокрутки */
  height: 3px; /* в основном для горизонтальных полос прокрутки */

}
.gallery ::-webkit-scrollbar-thumb { /* плашка-бегунок */
  background: var(--hover-black-el);
  border-radius: 5px;
}
.gallery ::-webkit-scrollbar-track { /* фон */
  background: var(--bg-color-black);
  border-radius: 5px;
}
.main-media{
    width:100%;
    height: 100%;
    /* max-width:615px;
    height:820px; */
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    overflow:hidden;
    background:transparent;
}
.main-media img, .main-media video{
    max-width:100%;
    max-height:100%;
    height:100%;
    width:auto;
    object-fit:cover;
    border-radius: var(--border-r-smoll);
}


.thumbs{
    display:flex;
    flex-direction: column;
    gap:5px;
    overflow:auto;
    height: 100%;
    max-height: 922px;

    width: 100%;
    max-width: 186px;
}
.thumb{
    background-color: transparent;
    padding: 5px;
    width:186px;
    height:128px;
    border-radius:8px;
    overflow:hidden;
    flex:0 0 auto;
}
.thumb.active, .thumb:hover{
    background-color: var(--hover-black-el);
}
.thumb img, .thumb video{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:6px;
}
.main-media video{
    max-width: 720px;
}

.zoom-btn{
    position:absolute;
    right:20px;
    bottom:20px;
}

.results-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    max-width: 560px;
}
.resilt-body{
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.results-content h3{
    font-size: 18px;
    color: var(--color-white);
}
.metrics{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}
.metric{
    background:var(--hover-black-el);
    padding:10px;
    border-radius:var(--border-r-smoll);
    min-width:120px;
    text-align:center;
}
.m-value{
    font-family: var(--font-f-black);
    color: var(--color-white);
    font-size:20px;
}
.m-label{font-size:13px;
    color:var(--muted)
}
.description{
    display: flex;
    flex-direction: column;
    gap: 20px;
    color:var(--muted);
}
.description h4{
    color:#fff;
    margin-bottom:6px;
}

.content-footer{margin-top:18px}
.btn-primary{
    width: 100%;
    background:var(--color-white);
    color:var(--color-black);
    padding:15px 20px;
    border-radius:var(--border-r-circle);
    border:none;
    cursor:pointer;
    font-family: var(--font-f-medium);
    font-size: 14px;
}
.btn-price{
    padding: 8px 20px 7px 17px;
    border-radius: var(--border-r-circle);
    background-color: #494949;
    fill: var(--color-white);
    box-shadow: inset 0 0px 2px 0px #ffffff2b, inset 0px -1px 4px 0px #ffffff1f;
    cursor: pointer;
    backdrop-filter: blur(4px);

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    transition: 0s;
}
.icon-price{
    --s:20px;
    width: var(--s);
    min-width: var(--s);
    fill: var(--color-white);
}




/* LIGHTBOX */
.lightbox{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.65);
    backdrop-filter: blur(5px);
    z-index:1000;
}
.lightbox.show{
    display:flex;
}
.lightbox-inner{
    position:relative;
    max-width:1200px;
    width:100%;
    max-height:92vh;
}
.lb-media{
    width:100%;
    height:80vh;
    display:flex;
    align-items:center;
    justify-content:center;
}
.lb-media img, .lb-media video{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}
.lb-close, .lb-btn{
    position:absolute;
    right:0;
    top:-42px;

    
    --s: 35px;
    width: var(--s);
    min-width: var(--s);
    padding: 8px;
    border-radius: 50%;
    background-color: #494949;
    fill: var(--color-white);
    box-shadow: inset 0 0px 2px 0px #ffffff2b, inset 0px -1px 4px 0px #ffffff1f;
    cursor: pointer;
    backdrop-filter: blur(4px);
    
}
.lb-close svg{
    --s:19px;
    width: var(--s);
    min-width: var(--s);
    height: auto;
    fill: var(--color-white);
}
.lb-btn{
    display: block;
    position: relative;
}
.lb-controls{
    position:absolute;
    left:0;
    right:0;
    bottom:-48px;
    display:flex;
    justify-content:center;
    gap:12px;
}
.lb-btn.right svg{
    transform: rotate(180deg);
}
/* LIGHTBOX */






/* Mobile */



/* Small helper */
.hidden{display:none}


@media (max-width:1501px){
    .gallery{
        flex-direction: column;
    }
    .thumbs{
        order: 2;
        flex-direction: row;
        width: 100%;
        max-width: 610px;
        min-width: 240px;
        overflow: auto;
    }
    .results-content{
        order: 3;
        max-width: 100%;
    }
    .sidebar{
        min-width: 300px;
    }
    .scroll-container{
        width: 100%;
        overflow: auto;
        min-width: 300px;
    }
}

@media (max-width:1001px){

    .gallery{
        width: 100%;
    }
}

@media (max-width:1001px){

}

@media (max-width:900px){
    .main-media video{
    max-width: 100%;
}
    .case-item{
        width: 100%;
        min-width: 200px;
    }
    .mobile-hidden{
        display: none;
    }
    .logo{
        border: none;
        padding: 0px;
    }
        .case-item .title{
        font-size: 14px;
    }
    .case-item .sub{
        font-size: 10px;
    }
    .zoom-btn{
        z-index: 20;
        right: 10px;
        bottom: 10px;
    }
    .lb-close{
        right: 20px;
    }



.app{flex-direction:column}
.sidebar{
    width:100%;
    display:flex;
    flex-direction:row;
    gap:12px;
    overflow:auto;
    padding:10px;
    height: 100px;
}
.case-list{flex-direction:row}
.main-media{
    width: 100%;
    height: 100%;
}
.thumbs{
    max-width: 810px;
}
.thumb{
    width:115px;
    height:89px;
}
}


@media (max-width:550px){
    .greed-contnact{
        flex-direction: column;
        gap: 10px;
    }
}   