/*
Theme Name: active marketing
Description: тема разработана специально для active marketing
Author: Руденко Олег
Author URI: Creationfactory.ru	
Version: 1.0
mail: rudenko-bar@mail.ru, o.rudenko@avk.team 
*/
html, body{padding:0;margin:auto;
  /* font-family: 'CocoSharp Regular', sans-serif;
  font-family: 'CocoSharp Bold', sans-serif; */
  font-family: 'Eastman Roman Alternate', sans-serif;
  font-weight: 400;
}
p{
    margin: 0;
}
.a-btn{
    display: flex;
    align-items: center;
}
.z{z-index:2;} /* стиль для блока который спряче полосы*/
.z1{z-index:3;} /* стиль для блока который спряче полосы*/
html {font-size: 0.0520833333333333vw}
a{color:inherit;text-decoration: none;}
.has-text-color.has-link-color{
    color:#E3DE00 !important;
}
:root{
	--grey:#686868;
    --grey-text:#D4D4D4;
	--label_grey:#787878;
	--blue:#72CDE2;
	--black:#000000;
	--fon:#FAFAFA;
	--white:#fff;
	--border:#DFDFDF;
	--accent:#E3DE00;
	--fixed_heder:92px;
	--header:100px;
	--footer:100px;
	--pcontent:240rem;
	--pcontentm:150rem;
    --hslider:calc((630rem / 2) + (630px / 2));
    --wslider:calc((450rem / 2) + (450px / 2));
}
.logo-phone{
    display: none;
}
.accent{
    color:var(--accent);
}
section{
    position: relative;
    overflow: hidden;
}
.hero-h1{
	font-size:clamp(40px ,128rem ,128px);
	line-height: clamp(38px, 102rem, 102px);
	font-weight: 400;
	& span{font-size:clamp(40px ,64rem ,64px)}
}
h1,  .h1 {
	font-size:clamp(30px ,64rem ,64px);
	margin:0;
    font-weight: 400;
}
h2, .h2 {font-size:clamp(24px, 40rem, 40px);font-weight: 400;margin:0;}
p{font-size:clamp(20px ,32rem ,32px)}
.mout{
    margin-top:clamp(24px, 95rem, 95px);
    margin-bottom:clamp(24px, 95rem, 95px);
}
.t40{
    font-size:clamp(24px ,40rem ,40px);
    line-height: clamp(24px, 47rem, 47px);
}
.t32{font-size:clamp(22px ,32rem ,32px)}
.t24{font-size:clamp(20px ,24rem ,24px)}
.t20{font-size:clamp(16.5px ,20rem ,20px)}
.t16{font-size:16px}
.t14{font-size:14px;}
.p29{
    padding: 29px 73px 24px 73px;
}
.content{
	max-width: 1450px;
	margin-left:auto;
	margin-right:auto;
	padding-left:var(--pcontent);
	padding-right:var(--pcontent);
}
.btn-yellow, .btn-yellow-white{
    position: relative;
    background: var(--accent);
    border: 1px solid var(--accent);
    color:var(--black);
    transition: border 1s, background 1s, color 1s;
    cursor: pointer;
    padding: 29rem 73rem 25rem 73rem;
    display: block;
}
.btn-yellow:hover, .btn-yellow-white:hover{
    background: var(--black);
    border: 1px solid var(--accent);
    color:var(--white);
}
.btn-yellow:after{
    content: url('/wp-content/uploads/2025/02/vector-treugo.svg');
    position: absolute;
    top:-4px;
    right:12.5px;
}
.btn-yellow-white:after{
    content: url('/wp-content/uploads/2025/02/white-treygol.svg');
    position: absolute;
    top:-4px;
    right:12.5px;
}
.hero{
    height:100vh;
    background: var(--black);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.menu-side{
    position: absolute;
    right:0;
    top: 0;
    height: 100%;
    display: flex;
    z-index: 4;
    border-left: 1px solid var(--white);
    overflow: hidden;
    & nav{
        transform: translateX(120%);
        background: var(--white);
        color:var(--black);
        font-size: 48px;
        opacity: 0;
        max-width: 0;
        padding: 80px 0;
        transition: transform 2s, opacity .4s, max-width 1s;
        & ul{
            list-style-type: none;
            padding: 0;
        }
        & li{
            padding-bottom: 100rem;
        }
        & p{
            font-size: 24px;
            color:var(--grey-text);
        }
    }
}
.soc{
    position: absolute;
    bottom: 53px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap:25px;
    opacity: 0;
}
.soc-mobil{
    margin-left: 40px;
    display: flex;
    gap: 22px;
    flex-direction: row;
}
.burger.active .soc{
    opacity: 1;
}
.menu-side nav ul li:hover{
    color:var(--accent);
}
.mobil-menu{
    display: none;
    & .mobil-burger{
        height: 25px;
        width:25px;
        background: var(--white);
        position: relative;
        padding: 5px;
        & .burger-line{
            position: absolute;
            opacity: 1;
            background: var(--black);
            width: calc(100% - 10px);
            height: 3px;
            transform: rotate(0deg) translateY(0) ;
            transition: opacity .5s, transform  1s;
            &:nth-child(1){top:5px}
            &:nth-child(2){
                top:50%;
                transform: translateY(-50%);
            }
            &:nth-child(3){bottom: 5px}
        }
    }
    & .mobil-burger.active{
        & .burger-line{
            background:var(--accent);
            &:nth-child(2){opacity: 0};
            &:nth-child(1){
                transform: rotate(45deg) translateY(-50%);
                top: 50%;
            }
            &:nth-child(3){
                transform: rotate(-45deg) translateY(50%);
                bottom: 50%;
            }
        }

    }
    & .mobil-nav{
        max-height: 0;
        position: absolute;
        overflow: hidden;
        background: var(--white);
        z-index: 3;
        width: 100%;
        left:0;
        transition: max-height 2s, padding-top 2s, padding-bottom 2s;
        & li{
            padding-bottom: 30px;
        }
        & a{
            font-size: 32px;
            padding-bottom: 10px;
            & p{
                font-size: 18px;
                color:var(--grey-text);
            }
        }
    }
    & .mobil-nav.active{
        max-height: 1000px;
        padding-top: 50px;
        padding-bottom: 20px;
    }
}
.menu-side.active{
    background: var(--white);
        & nav{
            max-width: 700px;
            transform: translateX(0);
            opacity: 1;
            padding: 80px 115px;
            transition: transform 2s, opacity 6s, max-width 1s;
    }
}
.contact{
    color:var(--white);
}

.burger{
    background: transparent;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    align-items: center;
    z-index: 2;
    flex-direction: column-reverse;
    justify-content: center;
    border: 1px solid var(--grey-text);
    transition: background 1s;
    & span{
        font-size:20px;
        writing-mode: sideways-lr;
        text-orientation: mixed;
        padding-bottom: 19px;
        color: var(--white);
        transition: color 1s;
        }
    & .btn{
        background: var(--white);
        width: 51px;
        height: 51px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        box-sizing: border-box;
    }
    & .burger-line{
        height: 4px;
        width: 27px;
        background: var(--black);
        box-sizing: border-box;
    }
}
.burger.active{
    & .btn{
        background: var(--black);
        border: 1px solid var(--black);
        transition: background 1s;
    }
    & .burger-line{
        background: var(--white);
        transition: background 1s;
    }
    & span{
        color: var(--black);
        transition: background 1s;
        }
}
.swiper-post {
    padding-top: clamp(50px, 100rem, 65px);
    & h2{
        padding-bottom: clamp(50px, 100rem, 65px);
    }
}
.work {
    & h2 {
        color: var(--white);
        margin-top: 0;
        padding-top: 90rem;
        padding-bottom: 40rem;
    }
}
@media (min-width: 1920px) {
    html {font-size: 1px}
    }
/* heder & footer */
header{
	position: absolute;
	top:0;
	width:100%;
	min-width: 100%;
	display: flex;
	justify-content: space-between;
	z-index: 1;
	background: transparent;
	padding: 51px;
    box-sizing: border-box;
    align-items: center;
    transition: background 1s;
	& .interaction{
		display: flex;
		gap:37px;
        align-items: center;
		& .contact{
			display: flex;
			flex-direction: column;
			gap:3px;
		}
	}
}
header.active{
    background: var(--white);
}
footer{
	position: relative;
	top:0;
	width:100%;
	min-width: 100%;
	display: flex;
	justify-content: space-between;
	z-index: 3;
	background: var(--white);
	padding: 51px;
    box-sizing: border-box;
    align-items: center;
	& .interaction{
		display: flex;
		gap:37px;
		& .contact{
			display: flex;
			flex-direction: column;
			gap:3px;
            justify-content: center;
            & a{
                color: var(--black);    
            }
		}
	}
}


/* heder & footer */

/* swiper */
.cards-slider {
    max-width: 100%;
    margin: 0 auto;
    /* padding: 20px; */
    overflow: hidden; /* Скрываем лишние части */
    & .swiper-slide {
        display: flex;
        justify-content: center;
        max-width: var(--wslider);
        max-height: var(--hslider);
        min-height: var(--hslider);
        z-index: 1;
        transition: max-width 2s;
        & .card {
            position: relative;
            width: 100%;
            overflow: hidden;
            filter: grayscale(1);
            transition: transform 1s ease-in-out, filter 1s ;
            transform: scale(1);
            & img{
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            & .card-info {
                position: absolute;
                bottom: -100%;
                left: 0;
                width: 100%;
                box-sizing: border-box;
                background: rgba(0, 0, 0, 0.8);
                color: white;
                padding: 20px;
                transition: bottom 0.3s ease-in-out, width 0.3s ease-in-out;
                & .accent{
                    font-size:16px;
                    margin-top: 20px;
                    padding-bottom: 5px;
                }
            }
        }
    }
    
}
.cards-slider {
    & .swiper-slide:hover {
        z-index: 2;
        max-width: 500px;
        & .card {
            filter: grayscale(0);
            transition: transform 1s ease-in-out, filter 1s ;
            & .card-info {
                bottom: 0;
                width: 100%;
                filter: grayscale(0);
                & h3{
                    font-size: 24px;
                }
            }
        }
    }
}
.swiper_btn{
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 75px;
    padding: 25px 0;
    & .swiper-button-next{
        right: auto;
        left:85px;
    }
    & .arrow{
        position: relative;
    }
}

/* Кастомные стрелки Swiper */
.swiper-button-prev, .swiper-button-next {
    position: absolute;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.swiper-button-prev {
    left: 10px;
}
.swiper-button-next {
    right: 10px;
}
.swiper-button-prev svg, .swiper-button-next svg {
    width: 22px;
    height: 38px;
    fill: white;
    transition: fill 0.3s ease-in-out;
}

.swiper-button-prev:after, .swiper-button-next:after{
    content: none;
}

/* swiper */
/* loader */

.loader-icon{
    max-width: 215px;
    & .loader {
	max-width: 215px;
	width: 100%;
	height: auto;
	stroke-linecap: round;
    }
}

circle {
	fill: none;
	stroke-width: 9;
	animation-name: preloader;
	animation-duration: 3s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out;
	transform-origin: 170px 170px;
	will-change: transform;

	&:nth-of-type(1) {
		stroke-dasharray: 550px;
	}

	&:nth-of-type(2) {
		stroke-dasharray: 500px;
	}

	&:nth-of-type(3) {
		stroke-dasharray: 450px;
	}

	&:nth-of-type(4) {
		stroke-dasharray: 300px;
	}

	@for $i from 1 through 4 {
		&:nth-of-type(#{$i}) {
			animation-delay: -#{$i * 0.15}s;
		}
	}
}

@keyframes preloader {
	50% {
		transform: rotate(360deg);
	}
}
@keyframes spin {
  0% {
    transform: translate3d(0, -70%, 0);
  }
  50% {
    transform: translate3d(0, 30%, 0);
  }
  100% {
    transform: translate3d(0, -70%, 0);
  }
}
@keyframes scale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

/* loader */

/* line */
.grid_line_fix{
    position: fixed;
    top:0;
    right: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    & .grid-lines{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        & .line{
            height: 100vh;
            width: 1px;
            background-color: #D9D9D9;
        }
    }
    
}
/* line */

@media(max-width:1024px) {
    .logo-phone{
        display: block;
    }
    .menu-side{
        display: none;
    }
    .mobil-menu{
        display: block;
    }
    header, footer{
        & .interaction {
            & .contact {
                display: none;
            }
        }
        & button{
            display: none !important;
        }
    }
    .grid_line_fix{
        display: none;
    }
    .content{
        padding-left: var(--pcontentm);
        padding-right: var(--pcontentm);
    }
}
@media(max-width:900px){
    .btn-yellow, .btn-yellow-white{
        padding: 15px 21px;
    }
    footer{
        background: var(--black);
    }
    .swiper_btn .arrow div svg{
        max-height: 20px;
    }
    .logo{
        padding-left: 15px;
    }
}