:root{
    --main-yellow: #FAE74D;
    --main-white: #FFF;
    --main-black: #000;
}
*{
    margin: 0;
    padding: 0;
}

ul[class],
ol[class] {
  padding: 0;
}

body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
button{
    background-color: transparent;
    border: none;
    cursor: pointer;
}
a{
    cursor: pointer;
}

ul[class],
ol[class] {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 9;
    /* position: absolute;
    top: 0;
    left: 0; */
    background-color: var(--main-black);
    max-height: 100px;
    padding: 20px 40px 20px 120px;
    box-sizing: border-box;
}
.header-navigation-list{
    display: flex;
    gap: 24px;
}
.header-navigation-list__item>a,
.header-navigation-list__item>button{
    color: var(--main-white);
    font-family: e-Ukraine;
    font-size: 16px;
    font-weight: 400;
    line-height: 250%;
    text-decoration: none;
}
.header-navigation-list__item>a:hover{
    color: var(--main-yellow);
}
h1{
    color: #000;
    font-family: e-Ukraine Head;
    font-size: 60px;
    font-style: normal;
    font-weight: 700;
    line-height: 131%;
}
h2{
    font-family: e-Ukraine Head;
    font-size: 50px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
p, ul{
    font-family: e-Ukraine;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 42px;
}
footer{
    background-color: var(--main-black);
    color: var(--main-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: flex-end;
    height: 40px;
    width: 100%;
    color: #FFF;
    padding: 0 40px 0 120px;
    box-sizing: border-box;
}
footer p{
    color: #FFF;
    font-family: e-Ukraine;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.footer-copany a{
    color: #FFF
}
.footer-copany a:hover{
    color: var(--main-yellow)
}
.need-help{
    position: fixed;
    right: 0;
    bottom: 10%;
    background-image: url(../img/help-bg.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 252px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--main-white);
    font-family: e-Ukraine;
    font-size: 14px;
    text-decoration: none;
    z-index: 6;
    display: none!important;
}
/* first window styles */
.button-black{
    border-radius: 30px;
    background-color: var(--main-black);
    color: var(--main-white);
    font-size: 18px;
    padding: 14px 60px;
    border: 1px solid var(--main-black);
}
.button-black:hover{
    background-color: var(--main-yellow);
    border: 1px solid var(--main-yellow);
    color: var(--main-black);
}
#first-screen{
    height: calc(100vh - 140px);
    display: grid;
    grid-template-columns: 1fr 2fr;

}

.first-screen-img{
    justify-self: end;
}
.main-text{
    padding-top: 80px;
    padding-left: 120px;
}
.main-text p {
    margin-top: 30px;
}
#mail-form{
    margin-top: 100px;
    width: 120%;
}
label[for='mail']{
    font-family: e-Ukraine Head;
    font-size: 22px;
    font-weight: 700;
    line-height: 42px;
    letter-spacing: 0em;
    text-align: left;
}
#mail{
    font-size: 18px;
    padding: 14px;
    border: 1px solid var(--main-black);
    border-radius: 30px;
    outline: none;
    width: 40%;
    margin-top: 40px;
}



/* Second screen styles */
.button-yellow{
    border-radius: 30px;
    background-color: var(--main-yellow);
    color: var(--main-black);
    font-size: 18px;
    padding: 14px 60px;
    border: 1px solid var(--main-yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-family: e-Ukraine;
    box-sizing: border-box;
}
.button-yellow:hover{
    background-color: var(--main-white);
    border: 1px solid var(--main-white);
}
#web-system{
    background-color: var(--main-black);
    color: var(--main-white);
    display: flex;
    height: 1080px;
}
.web-system-image_block{
    min-width: 52vw;
    max-width: 60%;
    position: relative;
}
.web-system-image_block>img{
    position: absolute;
    top: -20px;
    left: 80px;
}
.web-system_block{
    padding-top: 330px;
    padding-left: 16vw;
}
.web-system_block > .web-system_list{
    font-family: e-Ukraine Head;
    font-size: 20px;
    font-weight: normal;
    line-height: 40px;
    letter-spacing: 0em;
    text-align: left;
    margin: 30px 0 50px 0;
}


/* Third screen styles */
#mob-app{
    display: grid;
    grid-template-columns: 2fr 3fr;
    height: 920px;
}
.mob-app-text{
    /* padding: 100px 0 0 120px; */
    padding: 100px 0 10% 120px;
    display: grid;
    justify-content: flex-start;
    align-items: baseline;
}
.mob-app-image{
    position: relative;
}
.mob-app-image>img{
    max-height: 90vh;
}
.mob-app-image>picture{
    position: absolute;
    top: -70px;
    right: 0;
}
.mob-app-text>.mob-app_list{
    font-family: e-Ukraine Head;
    font-size: 22px;
    font-weight: normal;
    line-height: 40px;
    margin: 40px 0;

}
.download-container{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
}

/* Privacy */
#privacy-section{
    margin: 10%;
}

#privacy-section>h1{
    padding-bottom: 20px;
}

.privacy-section-item{
    margin-top: 40px;
    margin-bottom: 50px;
}
.privacy-section-item>p{
    margin-top: 25px;
}

.privacy-section-item>ul{
    list-style-type: '- ';
    list-style-position: inside;
}

@media screen and (max-width: 1680px ) {
    header{
        padding: 16px 40px 16px 100px;
    }
    .header-logo img{
        max-height: 60px;
    }
    .main-text{
        padding: 60px 0 0 100px;
        gap: 20px;
    }
    .main-photo{
        padding: 120px 40px 0 0 ;
    }
    .main-photo>img{
        max-height: 55vh ;
    }
    .download-container{
        gap: 24px;
    }
    #first-screen {
        height: calc(100vh - 132px);
    }
    .first-screen-img>img{
        max-height: 110vh;
    }
    h1{
        font-size: 48px;
    }
    h2 {
        font-size: 42px;
    }
    p, ul{
        font-size: 18px;
        line-height: 40px;
    }
    footer{
        padding: 0 40px 0 100px;
    }

    #mail{
        width: 50%;
        margin-top: 30px;
    }
    .button-black {
        padding: 14px 40px;
    }
    .web-system_block {
        padding-top: 180px;
        padding-left: 14vw;
    }
    .web-system_block > .web-system_list {
        font-size: 18px;
        font-weight: normal;
        line-height: 38px;
        margin: 30px 0 40px 0;
    }
    #web-system {
        height: 880px;
    }
    .mob-app-text>.mob-app_list {
        font-size: 18px;
        line-height: 36px;
        margin: 30px 0;
    }
    .mob-app-text {
        padding: 60px 0 0 120px;
    }
    /* .mob-app-image>img,  */
    .mob-app-image>picture{
        top: -56px;
    }
    .mob-app-image>picture{
        z-index: -1;
    }
    #mob-app {
        height: 800px;
    }
}
    @media screen and (max-width: 1420px ) {
        header{
            padding: 10px 40px 10px 50px;
        }
        .header-logo img{
            max-height: 40px;
        }
        .main-text{
            padding: 60px 0 0 50px;
        }
        .main-photo{
            padding: 100px 40px 0 0 ;
        }
        .main-photo>img{
            max-height: 520px ;
        }
        .download-container{
            gap: 20px;
        }
        h1{
            font-size: 40px;
        }
        p, ul{
            font-size: 14px;
            line-height: 22px;
        }
        footer{
            padding: 0 40px 0 80px;
        }
        .download-container img{
            height: 45px;
        }
        .header-navigation-list__item>a,
        .header-navigation-list__item>button{
            font-size: 12px;
        }
        #first-screen {
            height: calc(100vh - 100px);
        }
        #first-screen img{
            max-height: 115vh;
            
        }
        .main-text p {
            margin-top: 24px;
        }
        #mail-form {
            margin-top: 60px;
            width: 80%;
            display: grid;
            gap: 20px;
        }

        #mail {
            width: 100%;
            font-size: 14px;
            padding: 10px;
            margin-top: 10px;
        }

        .button-black{
            padding: 10px 20px;
            font-size: 14px;
            max-width: 200px;
        }
        .web-system_block > .web-system_list {
            font-size: 16px;
            line-height: 34px;
        }
        #web-system {
            height: 770px;
        }
        label[for='mail'] {
            font-size: 16px;
            line-height: 20px;
        }
        .web-system-image_block>img {
            left: 50px;
        }
        .web-system-image_block {
            min-width: 47vw;
        }
        .web-system_block {
            padding-top: 130px;
        }
        .button-yellow{
            padding: 10px 20px;
            font-size: 16px;
            max-width: 200px;
        }
        .mob-app-text>.mob-app_list {
            font-size: 16px;
            line-height: 30px;
            margin: 24px 0;
        }
        .mob-app-text {
            padding: 40px 0 0 50px;
        }
        #mob-app {
            height: 680px;
        }
        #privacy-section{
            margin: 5%;
        }
    }
    @media screen and (max-width: 1200px ) {
        #main{
            grid-template-columns: 1fr;
            width: 100vw;
        }
        h1{
            font-size: 42px;
        }
        .mobile-hidden{
            display: none;
        }
        .main-text {
            justify-content: center;
            padding-bottom: 20px;
        }
        #first-screen {
            height: 600px;
        }
        #first-screen img{
            max-height: 90vh;
        }
        .need-help {
            bottom: 8%;
            width: 230px;
            height: 35px;
            gap: 6px;
            font-size: 12px;
        }
        #web-system {
            height: 680px;
        }
        .web-system_block {
            padding-top: 100px;
        }
        #mob-app {
            height: 540px;
        }
    }
    @media screen and (max-width: 992px ) {
        h1{
            font-size: 36px;
        }
        h2 {
            font-size: 32px;
        }
        p, ul{
            font-size: 16px;
            line-height: 20px;
        }
        .main-text {
            padding: 60px 0 40px 40px;
            gap: 20px;
        }
        footer{
            padding: 0 20px;
        }
        header{
            padding: 10px 20px;
            height: 80px;
            background-color: var(--main-black);
        }
        .header-navigation-list__item>a,
        .header-navigation-list__item>button{
            font-size: 12px;
            color: var(--main-white);
        }
        .sidebar {
            width: 100vw;
        }
        #first-screen {
            height: auto;
        }
        #mail-form {
            margin-top: 40px;
            width: 90%;
            display: grid;
            gap: 10px;
        }
        .web-system_block {
            padding-top: 50px;
            padding-left: 10vw;
        }
        .web-system_block > .web-system_list {
            font-size: 14px;
            line-height: 30px;
        }
        #web-system {
            height: 550px;
        }
        .mob-app-text>.mob-app_list {
            font-size: 14px;
            line-height: 26px;
            margin: 20px 0;
        }
        #mob-app {
            grid-template-columns: 4fr 5fr;
            height: 480px;
        }
    
    }
@media screen and (max-width: 576px ) {
    h1{
        font-size: 28px;
    }
    p, ul{
        font-size: 14px;
        line-height: 20px;
        max-width: 340px;
    }
    .header-navigation{
        display: none;
    }
    .main-text{
        padding: 94px 0 40px 20px;
        gap: 20px;
    }
    #mail{
        box-sizing: border-box;
    }
    .button-black{
        max-width: 100%;
        padding: 14px 20px;
    }
    .header-logo img{
        max-height: 60px;
    }
    #first-screen {
        display: flex;
        flex-direction: column-reverse;
    }
    .main-text {
        padding: 0px 0 20px 20px;
        gap: 20px;
    }
    #web-system {
        height: auto;
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
    }
    .web-system_block {
        padding-top: 40px;
        padding-left: 0;
    }
    .web-system-image_block {
        max-width: 100%;
    }
    .web-system-image_block>img {
        position: initial;
    }
    .button-yellow{
        max-width: 100%;
        width: 100%;
        padding: 14px 20px;
    }
    #mob-app {
        grid-template-columns: 1fr;
        height: auto;
    }
    /* .mob-app-image>img, */
    .mob-app-image>picture {
        position: initial;
    }

    .mob-app-text {
        padding: 40px 20px;
    }
}



@media screen and (max-height: 700px) and (min-width: 1000px) {
    #first-screen {
        
        max-height: 92vh;
    }
    .main-text {
        padding: 38px 0 0 50px;
    }
    #mail-form {
        display: block;
        width: 120%;
        margin-top: 35px;
        gap: 10px;
    }
    #mail {
        width: 50%;
    }

    .web-system_block > .web-system_list {
        font-size: 14px;
        line-height: 30px;
        margin: 24px 0 30px 0;
    }
    .web-system_block {
        padding-top: 100px;
    }
    #web-system {
        height: 100vh;
    }
    #first-screen img {
        max-height: 98vh;
    }
    .mob-app-image>img{
        max-height: 85vh;
    }

}


.sidebar {
    background-color: var(--main-black);
    color: var(--main-white);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: -200vw;
    transition: 0.4s ease;
    z-index: 7;
    padding: 40px 20px;
    box-sizing: border-box;
}
#burger-btn {
    display: none;
}
@media screen and (max-width: 576px ){
    #burger-btn {display: block;}
    .menu-btn {
        display: block;
        position: relative;
        width: 40px;
        height: 4px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: var(--main-white);
        transition: all .6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        cursor: pointer;
        z-index: 9;
      }
      
      .menu-btn:hover:not(.open) {
        width: 30px;
      }
      
      .menu-btn:hover:before, .menu-btn:hover:after {
        width: 40px;
      }
      
      
      .menu-btn:before, .menu-btn:after {
        content: '';
        position: absolute;
        display: block;
        width: 30px;
        height: 4px;
        left: 0;
        background: var(--main-white);
        transition: all .5s;
      }
      
      .menu-btn:before {
        top: -12px;
      }
      
      .menu-btn:after {
        top: 12px;
      }
      
      .menu-btn.open {
        transform: translate(-50%, -50%) rotate(225deg);
      }
      
      .menu-btn.open:before, .menu-btn.open:after {
        top: 0px;
      }
      
      .menu-btn.open:after {
        transform: rotate(90deg);
        width: 40px;
      }
    .sidebar.show{
        right: 0;
    }
    .sidebar .sidebar-list{
        list-style: none;
        display: grid;
        gap: 20px;
        margin-top: 60px;
        
    }
    .sidebar-list__item,
    .sidebar-list__item a{
        color: #FFF;
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        font-family: 'e-Ukraine';
        text-decoration: none;
    }
    .sidebar-list__item:nth-child(4){
        margin-bottom: 20%;
    }
    .sidebar-list__item:nth-last-child(-n+3) a{
        font-size: 14px!important;
    }
    .sidebar-list__item a{
        display: inline-block;
        margin: 10px 0;
    }
    
}

.demo-video_container{
    background-image: url('../img/demo-bg.png');
    background-position: top right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    padding: 20px;
    box-sizing: border-box;
}
.demo-video_container>iframe{
    max-width: 45vw;
    max-height: 45vh;
}

.one-screen-page #first-screen{
    height: calc(100vh - 140px);
}

@media screen and (max-width: 1600px ) {
    .one-screen-page #first-screen {
        height: calc(100vh - 130px);
        grid-template-columns: 2fr 3fr
    }
    .one-screen-page #mob-app {
        height: 680px;
    }
}
@media screen and (max-width: 1420px ) {
    .one-screen-page #first-screen {
        height: calc(100vh - 100px);
    }
    .one-screen-page #mob-app {
        height: 560px;
    }

}
@media screen and (max-width: 1200px ) {
    .one-screen-page #first-screen {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 100px);
        height: auto;
        background-image: url('../img/demo-bg.png');
        background-position: top right;
        background-repeat: no-repeat;
        background-size: 50vh;
    }
    .demo-video_container{
            background-image: none;
    }
    .demo-video_container>iframe{
        max-width: 90vw;
        max-height: 50vh;
    }
    .one-screen-page #mob-app {
        height: 410px;
    }
    .one-screen-page #mob-app {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: auto;
    }
    .one-screen-page #mob-app picture {
        position: initial;
    }
    .one-screen-page .mob-app-image {
        padding: 0 20px 20px 20px;
    }
    .one-screen-page #mail {
        width: 50%;
    }
}

@media screen and (max-width: 576px ){
    .one-screen-page #first-screen {
        flex-direction: column;
        padding: 20px 0;
    }
    .one-screen-page .mob-app-text {
        padding: 40px 20px 0px 20px;
    }
    .one-screen-page #mail {
        width: 100%;
    }
}


@media screen and (max-height: 700px) and (min-width: 1000px){
    .one-screen-page #first-screen {
        max-height: 100%;
    }

}



.popup-container,
.popup-container__error
{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
  .popup-container.open,
  .popup-container__error.open{
    display: flex;
  }
.popup {
    background-color: #FFF;
    border-radius: 20px;;
    padding: 0;
    animation: fadeIn 0.5s ease-in-out;
    height: 315px;
    width: 460px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.popup p{
    color: #000;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    max-width: 300px;
    margin-top: 12px;
}
.popup  .popup-header,
.popup  .popup-header p{
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
    max-width: 400px;
}
    
.pop-up_text{
    text-align: center;
}
@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}
@media screen and (max-width: 540px) {
    .popup {
        height: 300px;
        width: 90%;
    }

}
.close-popup{
    position: absolute;
    top: 20px;
    right: 20px;
}

@media screen and (max-width: 700px){
    .popup  .popup-header p{
        max-width: 280px;
    }
}