@charset "UTF-8";
/* ============================================================
   PROJECTS — карусель проектов
   ============================================================ */

.projects {
    background: url('/wp-content/uploads/2026/05/fon4.png') center / cover no-repeat;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 38px;
    position: relative;
    padding: 200px 0 100px;
    margin: -156px 0 -100px;
}

/* ── Шапка ── */
.projects__head {
    width: 100%;
}

.projects__head-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding: 110px 40px 45px;
    position: relative;
}

.projects__title {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-family: var(--font-bebas);
    font-size: 50px;
    line-height: 54px;
    font-weight: 700;
    align-self: stretch;
    margin: 0;
}

.projects__subtitle {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-family: var(--font-myriad);
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    align-self: stretch;
    margin: 0;
}





/* ── Карусель ── */
.projects__carousel-wrap {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
}



   /* ── Стрелки (.component-25 / .component-26) ── */
   .projects__arrow {
    flex-shrink: 0;
    width: 71px;
    height: 71px;
    border: 2px solid #FFDB73;
   
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
   

}


.projects__arrow--prev {
 z-index: 2;
 position: absolute;
 left: -10%;

}
.projects__arrow--next {
 z-index: 2;
 position: absolute;
 right: -10%;

}
.hprojects__arrow-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #FFDB73;
   

}

.projects__arrow:hover  {
 background: var(--gradient-zheltyj);

}

.projects__arrow svg {
 position: absolute;
 width: 53.52%;
 height: 53.52%;
 left: 23.94%;
 top: 22.54%;
 fill: #FFDB73;
}

.projects__arrow:hover svg {
 fill: var(--color-black);
}





/* Трек */
.projects__track-wrap {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.projects__track {
    display: flex;
    flex-direction: row;
    gap: 0;
    transition: transform .4s ease;
    will-change: transform;
}

/* Карточка */
.projects__card {
    flex: 0 0 25%; /* 4 видимых */
    min-width: 0;
    padding: 0 1px; /* компенсация бордеров */
    box-sizing: border-box;
}




.projects__card-inner {
    border-bottom: 1px solid var(--linii);
    border-right: 1px solid var(--linii);
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color .3s;
}

.projects__card-inner:hover {
    background: #151515 url('/wp-content/uploads/2026/05/frame-hover3.png') top left / 100% auto no-repeat;
}

/* Фото */
.projects__card-photo-link {
    display: block;
    align-self: stretch;
    flex-shrink: 0;
}

.projects__card-photo {
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    max-width: 275px;
}

.projects__card-photo--empty {
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 1;
    background: var(--linii);
}

/* Текст */
.projects__card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    align-self: stretch;
    flex: 1;
}

.projects__card-title {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-bebas);
    font-size: 28px;
    line-height: 29px;
    font-weight: 700;
    text-decoration: none;
    align-self: stretch;
    transition: background .2s;
}

.projects__card-title:hover {
    background: var(--gradient-zheltyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects__card-location {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-myriad);
    font-size: 18px;
    line-height: 21px;
    font-weight: 400;
    align-self: stretch;
    margin: 0;
}

/* Кнопка */
.projects__card-btn {
    background: var(--gradient-zheltyj);
    border-radius: 5px;
    padding: 13px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-bebas);
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    color: var(--color-black);
    -webkit-text-fill-color: var(--color-black);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform .15s;
}



.projects__card-btn:hover {
    background: linear-gradient(180deg, #C7A21B 0%, #FFDB73 100%);
}



/* ── Точки ── */
.projects__dots {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    margin: 38px 0;
}

.projects__dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--gradient-svetlyj);
    transition: width .3s, height .3s, background .3s;
}

.projects__dot.is-active {
    width: 16px;
    height: 16px;
    background: var(--gradient-zheltyj);
}

/* ── Кнопка "Все кейсы" ── */
.projects__all-btn {
    background: var(--gradient-svetlyj);
    border-radius: 5px;
    padding: 20px 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-bebas);
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    color: var(--color-black);
    -webkit-text-fill-color: var(--color-black);
    text-decoration: none;
    transition: transform .15s, opacity .2s;
}

.projects__all-btn:hover {
    background: linear-gradient(180deg, #C7A21B 0%, #FFDB73 100%);
}

/* ── Адаптив ── */

@media (max-width: 1599px) {
    .projects__arrow--prev {
        left: -5%;
    }
    .projects__arrow--next {
        right: -5%;
    }
}


@media (max-width: 1200px) {
    .projects__card {
        flex: 0 0 33.333%;
    }

    .projects__carousel-wrap {
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .projects__card {
        flex: 0 0 50%;
    }

    .projects__arrow {
        width: 50px;
        height: 50px;
    }

    .projects__title {
        font-size: clamp(28px, 4vw, 50px);
        line-height: 1.1;
    }
}

@media (max-width: 860px) {
    .projects__arrow {
        display: none;
    }
}

@media (max-width: 599px) {
    .projects__card {
        flex: 0 0 100%;
    }

    .projects__carousel-wrap {
        gap: 16px;
    }


    .projects__card-inner {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {  

    .projects {
        padding: 185px 0 130px;
        margin: -156px 0 -100px;
    }

  
    .projects__head-inner {
     
        padding: 45px 40px 30px ;
        
    }
}