/*
Theme Name: Smartimoca main theme
Author: Smartomica
Template:    twentytwentyfive
Version:     1.0.0
*/


:root{
    --dark-back: #0B0F16;
    --light-back: #F8FAFC;
    --blue-back: #1e73be;
    --button-color: #0941EB;
}

body{
    position: relative;
    background-color: var(--light-back);
}

.hidden{
    display: none !important;
}

textarea, input{
    outline: none;
}

.overflow-hidden{
    overflow-x: hidden !important;
}
/*=====DECORE=======*/
.hero{
  position: absolute;
  z-index: -2;
  height: 860px;
  width: 100vw;
  background-image: url('/wp-content/themes//custom-theme/assets/img/back/back_1.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}
.hero::before{
    content: '';
    z-index: -1;
    background: linear-gradient(to bottom, transparent 0%, #F8FAFC 100%);
    height: 120px;
    bottom: -17px;
    position: absolute;
    left: 0;
    width: 100%;
}
/*===== END DECORE =====*/

.footer-data{
    padding-left: 0;
    margin-left: 77px;
}

.footer-data li{
    list-style-type: none;
    margin-right: 20px;
    font-size: 14px;
    font-weight: 300;
    color: var()
}

.site-map{
    padding-left: 0;
    margin: 0;
    margin-top: 10px;
}

.site-map li{
    list-style-type: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
    margin-bottom: 10px;
}

#to-top{
    height: 50px;
    width: 50px;
    box-shadow: 0px 5px 8px rgba(0,0,0, .5);
    transform: scale(1);
}

#to-top:active{
    transform: scale(1.05);
}

#to-top svg{
    margin-top: auto;
    margin-bottom: auto;
    height: 25px;
    width: auto;
}

/* #to-bottom{
    padding: 0;
} */

#to-bottom svg{
    height: 30px;
    width: 30px;
}
/* 
#to-bottom .elementor-button-text{
    line-height: 30px;
    margin-right: 10px;
} */

h1{
    background: linear-gradient(45deg, #F8FAFC 0%, #B7C7F7 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 400 !important;
}

.light h2{
    background: linear-gradient(30deg, #F8FAFC 0%, #ACB1BE 50%);
    background-clip: text;
    color: transparent !important;
}

.main-decore-2, .main-decore-3{
    position: relative;
    height: max-content;
}

.main-decore-2-image, .main-decore-3-image{
    position: relative;
    width: 100%;
}
.main-decore-2-image img, .main-decore-3-image img{
    position: absolute;
    z-index: -1;
    top: -100px;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 1621px;
    /* background-position: 50% 50%; */
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
}

.main-decore-3-image img{
    top: -400px;
    max-height: 1120px;
}

.main-team-list{
    margin: 0;
    padding-left: 0;
}

.main-team-list li{
    list-style-type: none;
    position: relative;
    margin-bottom: 10px;
    padding-left: 28px;
}

.main-team-list li::before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
    height: 8px;
    width: 8px;
    background-color: var(--light-back);
    border-radius: 8px;
}


/* @media(max-width:) */



/* POPUP */
.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0, 0.2);
  display: block;
  z-index: 1000;
  max-width: 100%;
}
.popup-container.hidden {
  display: none;
}
.popup-container .popup-close {
  position: absolute;
  height: 30px;
  width: 30px;
  top: 15px;
  right: 15px;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
  z-index: 101;
  background-color: var(--main-back);
  border: 1px solid var(--acsent-color);
  padding: 3px;
  border-radius: 10px;
}
.popup-container .popup-close:before,
.popup-container .popup-close:after {
  content: '';
  position: absolute;
  height: 2px;
  width: 30px;
  background-color: var(--dark-back);
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
  top: 17px;
}
.popup-container .popup-close:after {
  transform: rotate(-45deg);
}
.popup-container .popup-close:hover {
  opacity: 1;
}

.poup-button {
  background-color: var(--acsent-color);
  border-radius: 56px;
  cursor: pointer;
  transition: transform 0.2s;
}
.poup-button:hover {
  transform: scale(0.98);
}
.popup-window {
  position: absolute;
  height: max-content;
  max-height: 95%;
  width: 50%;
  max-width: 70%;
  border-radius: 16px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  background-color: var(--light-back);
  padding: 32px;
  padding-top: 39px;
  padding-right: 54px;
  overflow: auto;
}

.popup-content{
    width: 100%;
    height: max-content;
    font-size: 16px;
    line-height: 32px;
    color: var(--dark-back);
}

.display-only-desktop{

}

.display-only-tablet,  .display-only-mobile{
    display: none !important;
}


.e-con{
    max-width: 100% !important;
}
/*media*/

.overflow-scroll{
  overflow: auto !important; /* или scroll */
  scrollbar-width: none !important;  /* Firefox */
  -ms-overflow-style: none !important;  /* IE 10+ */
}


.overflow-scroll::-webkit-scrollbar { /* Chrome, Safari */
  display: none;
}

.popup-form{
    width: max-content;
    margin-right: auto;
    margin-left: auto;
    max-width: calc(100% - 60px);
}
.popup-form, .popup-form span, .popup-form p{
    color: black !important
}

.subtitle-gradient{
    background: linear-gradient(30deg, #B4C5F7 0%, #ACB1BE 50%);
    background-clip: text;
    color: transparent !important;
}

/*========= FORM ==========*/

.wpcf7-not-valid-tip{
    line-height: 30px;
    color: red;
    margin-left: 0;
}

.wpcf7 form .wpcf7-response-output{
    line-height: 30px;
}

.wpcf7 p {
    margin: 0;
}

.wpcf7 p label {
    text-align: left;
    margin-top: 35px;
    display: block;
    line-height: 22px;
    font-size: 16px;
    font-family: "Helvetica", Sans-serif;
}

.wpcf7-form-control-wrap{
    position: relative;
}

.wpcf7 textarea, .wpcf7 input:not([type=submit]) {
    width: 540px;
    max-width: 100%;
    border: none;
    border-bottom: 1px solid var(--dark-back);
    font-size: 16px;
    line-height: 20px;
    font-weight: 200;
    color: var(--dark-back);
    padding: 8px 0;
    transition: border-color .2s;
    display: block;
    box-sizing: border-box;
    background-color: transparent;
    font-family: "Helvetica", Sans-serif;
}

.wpcf7 textarea:focus, .wpcf7 input:not([type=submit]):focus {
    border-bottom: 1px solid var(--blue-back);
}

.wpcf7 textarea::placeholder, .wpcf7 input:not([type=submit])::placeholder {
    color: transparent;
}

.wpcf7 input[type=submit] {
    width: max-content;
    max-width: 100%;
    margin-top: 40px;
    font-size: 20px !important;
    border-radius: 8px;
    outline: none;
    border: none;
    background-color: var(--button-color);
    font-weight: 600;
    line-height: 28px;
    color: white;
    padding: 15px;
    text-align: center;
    /* box-shadow: 0px 4px 4px rgba(0, 0, 0, .25); */
    transition: transform .2s;
    cursor: pointer;
    font-weight: 300;
    font-family: "Helvetica", Sans-serif;
    margin-right: 0;
    margin-left: auto;
    display: block;
}

.wpcf7 select {
    width: 540px;
    max-width: 100%;
    border: none;
    border-bottom: 1px solid var(--dark-back);
    font-size: 16px;
    line-height: 20px;
    font-weight: 200;
    color: var(--dark-back);
    padding: 8px 0;
    transition: border-color .2s;
    display: block;
    box-sizing: border-box;
    background-color: transparent;
    font-family: "Helvetica", Sans-serif;

    /* убираем дефолтную стрелку */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* ставим кастомную стрелку (иконку) */
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23000000' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px; /* место под стрелку */
}

.wpcf7 select:focus {
    outline: none;
    border-color: var(--accent-color); /* подсветка при фокусе */
}

.popup-form span.wpcf7-not-valid-tip {
    text-align: left;
    line-height: 28px;
    font-weight: 200;
    padding-left: 0;
    font-size: 16px;
    color: #dc3232 !important;
    font-size: 1em;
    font-weight: 300;
    display: block;
}


/*======== END FORM ==========*/

@media(max-width: 1024px){
    .display-only-desktop,  .display-only-mobile{
        display: none !important;
    }

     .display-only-tablet{
        display: block !important;
     }

    .main-decore-3-image img{
        top: -450px;
        max-height: 1916px;
        min-height: 1205px;
    }

     .main-decore-2-image img{
        top: 0;
        min-height: 1205px;
     }

}

@media(max-width: 768px){
    .popup-window{
        /* max-width: 100vw; */
        width: calc(100vw - 10px);
    }
    .popup-form{
        max-width: 100%;
    }
    .overflow-hidden{
        overflow: visible !important;
    }

    .mobile-diagram{
        max-width: 100vw!important;
        width: max-content !important;
        overflow: hidden !important;
        left: calc((100vw - 342px)/(-2)) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .light h2{
        background: linear-gradient(30deg, #F8FAFC 0%, #AFC2F7 50%);
        background-clip: text;
        color: transparent !important;
    }

     .display-only-desktop{
        display: none !important;
    }

     .display-only-tablet{
        display: none !important;
     }

     .display-only-mobile{
        display: block !important;
     }

     .footer-data{
        flex-direction: column;
        margin-left: 0;
        width: 100%;
     }
     .footer-data li{
        text-align: center;
        margin-right: 0;
     }

     .wpcf7 input[type=submit] {
        width: 100%;
     }

     /* .wpcf7 p{
         max-width: calc(100% - 62px);
     } */
     /* .wpcf7 textarea, .wpcf7 input:not([type=submit]), .wpcf7 select, .wpcf7 p label {
        max-width: calc(100% - 62px);
     } */
}