/*
Theme Name: etude
*/

@font-face {
    font-family: "Mont";
    src: url('assets/fonts/Mont-Regular.woff2') format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "MontBold";
    src: url('assets/fonts/Mont-SemiBold.woff2') format("truetype");
    font-weight: 600;
    font-style: normal;
}

*{
    margin: 0;
    font-family: "Mont";
    font-size: 12pt;
    letter-spacing: 0.005em;
    color: #1d1d1d;
}

main ul, main li{
    margin: 0 0 0 0.5em;
    padding: 0;
    margin-bottom: 0px;
}

a, button, .button{
    cursor: pointer;
    text-decoration: none;
}

header{
    background-size: cover;
    margin: 0;
    background-attachment: fixed;
    overflow: hidden;
    z-index: -20;
}

.container{
    position: fixed;
    top: 0;
    height: 4.1em;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: linear-gradient( #ff4041, #ed1d25);
}

nav{
    position: fixed;
    top: 0;
    height: 4.1em;
    max-width: 1400px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: #f3f3f3;
    z-index: 100;
}

.logo{
    display: flex;
    width: 6.3em;
    z-index: 3;
}

.logo img{
    width: 100%;
    align-items: bottom;
}

.menu{
    position: relative;
    height: 100%;
    display: flex;
    justify-content: end;
    z-index: 3;
    width: 51em;
}

.menu::before{
    content:'';
    position: absolute;
    width: 1px;
    top: 5%;
    height: 90%;
    background: linear-gradient( #fff, #ff4041), #ff4041;
    z-index: 10;
}

.menu-item{
    position: relative;
    padding: 0 1em 0 1em ;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    color: #f3f3f3;
    text-decoration: none;
    list-style-type: none; 
    white-space: nowrap;
    transition: all 0.8s ease 0s;  
}

.menu-item::before{
    content:'';
    position: absolute;
    left: 0;
    width: 1px;
    height: 90%;
    background: linear-gradient( #fff, #ff4041), #ff4041;
    z-index: 1;
}

.menu-item::after{
    content:'';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background:linear-gradient(to top, #ee3138, #fc7e78);
    transition: all 0.8s ease 0s;  
    opacity: 0;
}

.menu-item:hover::after{
    opacity: 1;
}

.menu-item a{
    color: #f3f3f3;
    text-decoration: none;
    text-align: center;
    transition: all 0.8s ease 0s; 
    z-index: 1;
}

.menu_burger{
    display: none;
}

.nav__burger{
    display: none;
}

/* заголовок над галереей — отступы уменьшены */
.header_slogan{
    margin: 0.3em 0;      /* было 0.8em 0 */
    padding-top: 1.6em;   /* было 1.6em */
    text-align: center;
    font-family: "MontBold";
    font-size: 3.5em;
    color: #1d1d1d;
}

/* бегущая строка */

#slide_line{
    opacity: 0;
    animation: ani 5s forwards;
    width:300%;
    margin:-0.5em auto 0 auto;  /* приподняли к кнопкам */
    text-align:center;
    overflow:hidden;
}

#slide_line img{width:49.9%;height:auto;}
.string:hover{cursor:pointer;}

@keyframes ani {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

/* кнопки */

.header__button{
    display: flex;
    justify-content: center;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.button_border{
    position: relative;
    margin: 1.5% 5%;      /* было 5% 7% */
    width: 15em;
}

.button{
    width: 98%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 1%;
    transition: all 0.5s linear;
}

.border_wa{
    background: linear-gradient( #536efd, #a767df);
    border-radius: 10px;
}

.wa {
    position: relative;
    background: #fff;
    border-radius: 10px;
    text-align: center;
}

.border_telega{
    background: linear-gradient( #40d0ef, #34aadf);
    border-radius: 10px;
}

.telega {
    position: relative;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.wa:before {
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 32%;
    height: 100%;
    background: linear-gradient( #536efd, #a767df);
    border-radius: 10px 0 0 10px;
    transition: all 0.5s ease;
    z-index: 0;
}

.telega:before {
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 32%;
    height: 100%;
    background: linear-gradient( #40d0ef, #34aadf);
    border-radius: 10px 0 0 10px;
    transition: all 0.5s ease;
    z-index: 0;
}

.wa:hover:before, .telega:hover:before {
    width: 100%;
    border-radius: 10px;
    color: #f3f3f3;
}

.menu-item::hover{
    background:linear-gradient(to top, #ee3138, #fc7e78);
}

.border_wa{
    background:linear-gradient(#536efd, #a767df);
    border-radius: 10px;
}

.button:hover .txt, .button:hover .txt div{
    color: #f3f3f3;
}

.line__button{
    width: 1px;
    height: 3em;
    padding: 1% 0;
    background: #fff content-box;
    z-index: 3;
}

img{
    width: 20%;
    z-index: 1;
}

.txt{
    letter-spacing: 0.025em;
    font-size: 1.3em;
    z-index: 1;
    transition: all 0.5s ease;
}

.txt div{
    letter-spacing: 0.3em;
    font-size: 0.5em;
    color: #1d1d1d;
    z-index: 3;
    transition: all 0.5s ease;
    align-content: center;
}

main{
    position: relative;
    margin: 0;
    z-index: 2;
    background-color: #f3f3f3;
    padding: 0 0 7% 0;
}

main .main_slogan{
    margin: 0 0 0.8em 0;
}

.main_slogan{
    margin: 0.8em 0;
    padding-top: 1.6em;
    text-align: center;
    font-family: "MontBold";
    font-size: 3em;
    color: #1d1d1d;
}

.services{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.block_main{
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0 0 5% 0;
}

.img{
    z-index: 2;
    margin: auto;
}

.img img{
    width: 19.02em;
    transition: all 0.5s ease;
}

.img video{
    width: 19.02em;
    transition: all 0.5s ease;
}

.text{
    margin: 2.75em 0;
    padding: 2.1em 1.9em;
    background-color: white;
    border-radius: 0 5% 5% 0;
    width: 29.9em;
    transition: all 0.5s ease;
    z-index: 1;
}

.text_back{
    border-radius: 5% 0 0 5% ;
}

h1{
    font-size: 1.5em;
    text-transform: uppercase;
}

.description{
    margin: 2em 0;
}

.description li{
    font-size: 1.3em;
}

.button_more{
    width: 11.5em;
    height: 2.5em;
    margin: auto;
    margin-top: 0;
    margin-bottom: 0;
    background: linear-gradient( #f45b54, #ec1c24);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: all 5s linear;
}

.button_more p{
    margin: auto;
    font-size: 1.3em;
    color: #fff;
    transition: all 5s linear;
}

.block_main:hover  .text{
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

.block_main:hover  img{
    -webkit-transform: scale(0.95);
    -ms-transform: scale(0.95);
    transform: scale(0.95);
}

.block_main:hover  video{
    -webkit-transform: scale(0.95);
    -ms-transform: scale(0.95);
    transform: scale(0.95);
}
 
.button_more::before {
    content: "";
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( #ec1c24, #f45b54);
    border-radius: 10px;
    transition: opacity 0.5s ease-in-out;
    z-index: -1000;
}
  
.button_more:hover::before {
    opacity: 1;
}
 
.popup{
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #1d1d1d4e;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    transition: all 0.8s ease 0s;
    z-index: 101;
}

.popup.open{
    opacity: 1;
    visibility: visible;
}

.popup.open .popup_content{
    transform: perspective(600px) translate(0px, 0%) rotateX(0deg);
    opacity: 1;
}

.popup_body{
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
}

#popup_doc .popup_body{
    padding: 6em 10px;
}

.popup_content{
    position: relative;
    background-color: #fff;
    color: #000;
    width: 80%;
    padding: 30px;
}

.popup_close{
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 2em;
    color: #ff4041;
    text-decoration: none;
}

.popup_title{
    font-size: 1.5em;
    margin: 0 0 0.5em 0;
    text-transform: uppercase;
}

.popup_price{
    font-size: 2em;
    width: 5em;
    margin: 0.5em 0 0 0;
    display: flex;
    justify-content: center;
    align-content: center;
    border: solid 1px #ff4041;
    border-radius: 10px;
}

.popup_line{
    margin: 2em 0 2em 0;
    width: 100%;
    height: 1px;
    background-color: #adadad;
}

.popup_note{
    color: #adadad;
}

.popup_button_price{
    margin: 0.5em 0 0 0;
    width: 15em;
}

.recommendation{
    margin: 2em 0 0 0;
    padding: 2em;
    border: solid 1px #ff4041;
    border-radius: 10px;
}

body.lock{
    overflow: hidden;
}

.sw-app{
    margin: 1em 0 1em 0;
}

footer{
    background: linear-gradient( #ff4041, #ed1d25);
}

.footer{
    padding: 4.5em 0 4.5em 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: auto;
}

main::after{
    content:'';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 5%;
    background: #f3f3f3;
    z-index: 3;
}

.logo_footrer{
    position: absolute;
    top: -3.5em;
    height: 7em;
    width: 7em;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid #ff4041;
    border-radius: 50%;
    background-color: #ffffff;
    z-index: 3;
}
  
.logo_footrer img {
    width: 70%;
}

h2{
    color: #fff;
}

.contact{
    margin-top: 1em;
    display: flex;
    justify-content: space-between;
    width: 40%;
}

.contact p,a{
    color: #fff;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 768px){
    .container{
        height: auto;
    }
    nav{
        position:relative;
        height: 6em;
        display: flex;
        justify-content: space-between;
        padding: 0 10%;
        background: linear-gradient( #ff4041, #ed1d25);
        width: 80%;
        z-index: 111;
    }

    nav::before{
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        background: linear-gradient( #ff4041, #ed1d25);
    }

    .logo{
        width: 10em;
        height: auto;
    }

    .nav__burger{
        display: block;
        position: relative;
        right: 5%;
        height: 25px;
        z-index: 100;
        width: 50px;
    }

    .nav__burger:before,
    .nav__burger:after{
        content: '';
        background-color: #ffffff;
        position: absolute;
        width: 100%;
        height: 2px;
        left: 0;
        transition: all 0.3s ease 0s;    
    }

    .nav__burger:before{
        top: 0;
    }
    .nav__burger:after{
        bottom: 0;
    }

    .nav__burger span{
        display: block;
        background-color: #ffffff;
        position: absolute;
        width: 100%;
        height: 2px;
        top: 12px;
        transition: all 0.3s ease 0s;    
    }

    .nav__burger.active::before{
        transform: rotate(45deg);
        top: 12px;
    }
    .nav__burger.active::after{
        transform: rotate(-45deg);
        bottom: 12px;
    }

    .nav__burger.active span{
        transform: scale(0);
    }

    .burger.active span{
        transform: scale(0);
    }

    .menu{
        position: fixed;
        top: -120%;
        left: 0;
        width: 100%;
        height: 100vh;
        background-size: cover;
        flex-direction: column;
        justify-content: space-around;
        padding: 10% 0 20% 0;
        transition: all 0.5s ease 0s;   
        z-index: 1;
    }

    .menu.active{
        top: 0;
    }
    .menu-item{
        height: 100%;
    }

    .menu-item a{
        font-size: 2em;
        color: #1d1d1d;
    }
    
    .menu-item::before{
        width: 80%;
        height: 1px;
        top: 0;
        background:  #ffffff;
        background: linear-gradient(to right, #fff, #ff4041, #fff), #fff;
        mix-blend-mode: multiply;
    }

    #slide_line{
        opacity: 0;
        animation: ani 5s forwards;
        width:300%;
        margin:-0.5em auto 0 auto;
        text-align:center;
        overflow:hidden;
    }
    #slide_line img{width:49.9%;height:auto;}
    .string:hover{cursor:pointer;}

    *{
        font-size: 6pt;  
    }

    /* увеличенные кнопки на мобильной */

    .header__button{
        margin-top: 1em;
        margin-bottom: 1em;
    }

    .button_border{
        width: 40em;      /* было 15em */
        margin: 2% 5%;
    }

    .button{
        padding: 1em 0;
    }

    .button img{
        width: 25%;
    }

    .txt{
        font-size: 2em; /* было 1.3em */
    }

    .txt div{
        font-size: 0.7em;   /* было 0.5em */
        letter-spacing: 0.25em;
    }

    .img img{
        width: 19.02em;
        transition: all 0.5s ease;
    }

    .img video{
        width: 19.02em;
        transition: all 0.5s ease;
    }
    
    .text{
        margin: 2.75em 0;
        padding: 2.1em 1.9em;
        background-color: white;
        border-radius: 0 5% 5% 0;
        width: 25em;
        transition: all 0.5s ease;
        z-index: 1;
    }
    .text_back{
        border-radius: 5% 0 0 5% ;
    }
    
    h1{
        font-size: 1.5em;
        text-transform: uppercase;
    }
    
    .description{
        margin: 2em 0;
    }
    
    .button_more{
        background: linear-gradient( #f45b54, #ec1c24);
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1;
        transition: all 5s linear;
    }
    
    .button_more p{
        font-size: 1.3em;
        color: #fff;
        transition: all 5s linear;
    }
}

.footer-legal {
    display: flex;
    justify-content: space-between !important; /* большое расстояние между ИНН и ОГРН */
    color: #ffffff;                 /* белый цвет текста */
    margin-top: 16px;               /* отступ от телефонов */
    font-size: 14px;
}

.footer-legal .inn,
.footer-legal .ogrn {
    color: #ffffff;
	white-space: nowrap;
}

.footer-terms {
    margin-top: 20px;               /* отступ от строки с ИНН и ОГРН */
}

.footer-terms a {
    color: #ffffff;                 /* белый цвет текста ссылки */
}

/* Попап cookies */
.cookies-popup{
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: 420px;
    padding: 1em 1.2em;
    background-color: #ffffff;
    color: #1d1d1d;
    box-shadow: 0 0px 0px rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 0.9em;
    z-index: 9999;
}

.cookies-popup__text{
    margin-bottom: 0.7em;
}

.cookies-popup__btn{
    padding: 0.4em 1.4em;
    border: none;
    border-radius: 6px;
    background: linear-gradient( #f45b54, #ec1c24);
    color: #ffffff;
    font-size: 0.9em;
    cursor: pointer;
}

.cookies-popup__btn:hover{
    opacity: 0.9;
}

@media (max-width: 768px){
    .cookies-popup{
        right: 10px;
        left: 10px;
        bottom: 10px;
        max-width: none;
        font-size: 0.8em;
    }
}
