

.btn{
    box-sizing: border-box;
    width: fit-content;
    padding: 8px 25px;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.8);
    color: rgba(0, 0, 0, 0.8);
}

.btn.button-hover-circle{
    overflow: hidden;
    position: relative;
    transition: all 0.2s;
    clip-path: margin-box;

}
.btn.button-hover-circle:after{
    content: "";
    z-index: -1;
    width: calc(100% + 60px);
    height: 360%;
    position: absolute;
    bottom: -360%;
    left: -30px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius:50%;
    transition: all 0.5s;
}
.btn.button-hover-circle:hover{
    color: whitesmoke;
}
.btn.button-hover-circle:hover:after{
    bottom: -130%;
}

#bg-site {
    position: fixed;
    z-index: -10;
    top: 0;
    left: 0;
    max-width: 1920px;
    width: 100%;
    box-sizing: border-box;
}
@media (min-width: 1919px) {
    #bg-site {

        left: calc(50% - 960px);
    }
}

#bg-site video {
    position: relative;
    width:  100vw;
    max-width: 100%;
    min-height: 100vh;
    z-index: -9;

}
#bg-site .bg-color  {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index:-8;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.6) 5%, rgba(0, 0, 0) 65%);
}

/*=========================================*/
.first-block {
    /*max-height: 900px;*/
    /*height: 100vh;*/
    box-sizing: border-box;
    background-color: transparent;
    padding-top: 80px;
}
.first-block .first-block-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.first-block h1{
    color: #fff;
    text-align: center;
    font-size: 96Px;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 60px;
    max-width: 1600px;
    letter-spacing: 0;
}
.first-block p{
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0;
    font-size: 28px;
}

/*=========================================*/

.my-works{
    width: 100%;
    /*background: rgba(0, 0, 0, 0.2);*/
    overflow: hidden;
    position: relative;
}
.my-works .project a{
    height: 300px;
    background-size: cover;
    background-position: center;
}
.my-works .line {
    display: flex;
    gap: 20px;
    width: max-content;
    animation:moveLeft  150s linear infinite;
}

@media (max-width: 1600px) {

    .my-works .line {
        animation:moveLeft  100s linear infinite;
    }
}

.my-works .line__content {
    display: flex;
    gap: 20px;
}

.item {
    min-width: 200px;
    height: 150px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 10px;
}

/* Плавная бесшовная прокрутка */
@keyframes moveLeft {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}
.my-works .line.revers{
    animation-name: moveRight ;

    margin-top: 20px;
}
@keyframes moveRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.my-works .line a {
    position: relative;
    display: inline-block;
    padding: 15px 25px;
    width: 390px;
    height: 240px;
    background-size: cover;
    background-position: top;
    text-decoration: none;
    box-sizing: border-box;
}

/* Псевдоэлемент для подсветки */
.my-works .line a::before {
    content: '';
    position: absolute;
    top: 10px;   /* больше отступ, чтобы glow выходил за границы */
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(
            45deg,
            #ff0000,
            #ff7300,
            #fffb00,
            #48ff00,
            #00ffd5,
            #002bff,
            #7a00ff,
            #ff00ab,
            #ff0000,
            #ff7300,
            #fffb00,
            #48ff00,
            #ff0000
    );
    background-size: 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderAnimation 8s linear infinite;

    /* магия подсветки */
    filter: blur(25px);         /* делаем glow мягким */
    border-radius: 10px;        /* можно скруглить края */
}

/* При наведении glow становится видимым */
.my-works .line a:hover::before {
    opacity: 0.8;
}

/* Анимация движения градиента */
@keyframes borderAnimation {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 0%; }
}


/*=========================================*/
.block-3{
    /*background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0));*/

}
.block-3 .block-3-inner{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 35px;
}

.block-3 .block-3-inner .block{
    width: 100%;
    height:100%;
    display: flex;
    flex-direction: column;
    gap: 17px;
    align-items: center;
    padding: 40px 30px;
    color: #fff;
    background-color: rgba(80, 80, 80, 0.10);
    border-radius: 20px;
    box-sizing: border-box;
    backdrop-filter:blur(15px)
}
.block-3 .block-3-inner .block .icon img{
    max-height: 60px;
}
.block-3 .block-3-inner .block .name{
    font-weight: 600;
    font-size: 32px;
    text-align: center;
}

.block-3 .block-3-inner .block p{
    font-family: 'nimbus_roman', sans-serif;
    font-weight: 400;
     font-size: 18px;
    text-align: center;
    margin: 0;

 }

/*================================*/

.cv {
    background-color: whitesmoke;

}
.cv .cv-inner{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 30px;
    row-gap: 15px;

}
.cv .img{
    grid-row: 1/-1;
    width:  400px;
    height: 400px;
    margin: auto;
    border-radius: 1000px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.cv .img:after{
    content:"";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1000px;
    background-color: #00000040;
    mix-blend-mode: hue;
    z-index: 1;
}
.cv h2{
    color: rgba(0, 0, 0, 0.9);
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 2px;
}
.cv .text{
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    color: rgba(0, 0, 0, 0.8);
}
.cv .text p:first-child{
    margin-top: 0;
}
/*================================*/
footer{
    background-color: rgba(0, 0, 0, 0.7);
    
}
footer .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 18px;
    padding: 35px 0;
    border-top: 1px solid #ffffff23;
}

/*============================*/

header {
    width: 100%;
    border-bottom:1px solid #0f0f0f;
    padding: 20px 0;
}
header .header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
header .header nav{
    display: flex;
    gap: 15px;
}
header .header .logo,
header .header nav a{
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: 1px;
}
header .header nav a:hover{
    text-decoration: underline;
}
header .header .logo{
    font-family:'Saira', sans-serif;
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header .header nav ul{
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;

}

header.black{
    background-color: #000;
}



    /*===================================*/
.cf{
    position: fixed;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    top: 0;
    left: 0;
    display: none;
}
.cf.open{
    display: flex;

}
.cf >div{
    position: relative;
    background-color: whitesmoke;
    padding: 30px 50px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cf >div label{
    color: #00000080;
    font-size: 16px;
}
.cf >div>span{
    font-size: 24px;
    color: rgba(0, 0, 0, 0.8);;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
}
.cf >div input:not([type="submit"]),
.cf >div textarea{
    background-color: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.8);
    color:rgba(0, 0, 0, 0.8) ;
    padding: 8px 10px;
    max-height: 45px;
    font-size: 16px;
}

.cf >div input[type="submit"]{
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 8px;
    background-color: transparent;
    border: 2px solid rgba(0, 0, 0, 0.8);
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 0px;
    transition: all 0.3s;
}

.cf >div input[type="submit"] + span {
    display: none;
}

.cf >div input[type="submit"]:hover{
    color: whitesmoke;
    background-color: #000000cc;
}

.cf >div .close{
    position: absolute;
    right: 15px;
    top: 15px;
    height: 20px;
    padding-top: 5px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s;
}
.cf >div .close:hover:after,
.cf >div .close:hover:before
{
    box-shadow: 0 0 2px #00000057;

}
.cf >div .close:after,
.cf >div .close:before{
    content:"";
    display: block;
    width: 20px;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.8);
    transform: rotate(45deg);
    transition: all 0.2s;
}
.cf >div .close:before{
    transform: rotate(135deg) translate(2px, -2px);
}
.cf .wpcf7-response-output{
    max-width: 295px;
    font-family: Arial;
}

@media (max-width: 1300px) {

    .cv .cv-inner {
        grid-template-columns: auto 1fr;
        column-gap: 80px;
    }
.cv .img{
    width: 370px;
    height: 370px;
}
}

@media (max-width: 991px) {
    .cf >div input:not([type="submit"]),
    .cf >div textarea{
        font-size: 14px;
    }
    .cf >div>span {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .cf >div input:not([type="submit"]),
    .cf >div textarea{
        font-size: 14px;
    }
    .cf >div>span {
        font-size: 18px;
    }
}

/*============================*/
.error h1{
    color: #fff;
    font-size: 60px;
}
.error .btn{
    color: #fff;
    border-color: #fff;
    font-size: 20px;
    text-decoration: none;
    display: block;
    margin-top: 60px;
}
.error .btn.button-hover-circle:after{
    background-color: rgb(255 255 255);
}
.error .btn.button-hover-circle:hover{
    color:rgba(0, 0, 0, 0.8);
    
}