@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,400..500&display=swap');

* {
    box-sizing: border-box;
    text-decoration: none;
    margin: 0;
    padding: 0;
}


html {
    position: relative;
    height: 100%;
}

body {
    position: relative;
    width: 100vw;
    background: #fff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.navbar {
    position: relative;
    padding-top: 20px;
    z-index: 1;
}

.navbar .container::before {
    content: url(img/main-bg.svg);
    position: absolute;
    left: 50%;
    z-index: -1;
    top: -20px;
}
.navbar .container::after {
    content: url(img/top-triangle.svg);
    position: absolute;
    left: 43%;
    top: 0;
    z-index: -1;
}

.container {
    position: relative;
    width: 1320px;
    padding: 0;
}

.logo {
    padding-left: 60px;
    margin-top: 31px;
}

.hero {
    margin: 75px 0;
    width: 100%;
    position: relative;
}

.hero-wrapper  {
    position: relative;
}

.hero-wrapper::before {
    content: url(img/second-bg.svg);
    position: absolute;
    width: fit-content;
    top: -40px;
    right: 35%;
}
.hero-wrapper::after {
    content: url(img/bottom-triangle.svg);
    position: absolute;
    width: fit-content;
    right: -58px;
    bottom: -100px;
}

.hero-title {
    width: 65%;
    font-family: Inter;
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    line-height: 41px;
    letter-spacing: 0px;
    text-align: left;
}

s {
    text-decoration: line-through;
    color: #FFC472;
}

.wrapper {
    display: flex;
    align-items: center;
    padding: 0 67px;
    height: 220px;
    border-radius: 20px;
    background: linear-gradient(90.00deg, #E38519,#FF6831);
    justify-content: space-between;
}

.hero-journal {
    position: relative;
    height: 250px;
}

.hero-journal-img {
    height: 100%;
    position: absolute;
    right: 30px;
    top: 20%;
}

.header-form {
    margin-top: 50px;
}

.header-form-label {
    margin: 28px 0;
    color: rgb(0, 0, 0);
    font-family: Inter;
    font-size: 24px;
    font-weight: 400;
    line-height: 35px;
    letter-spacing: 0px;
    text-align: left;
}


.header-form-wrapper {
    display: flex;
    gap: 13px;
}

.header-form-input, .header-form-btn {
    width: 276px !important;
    height: 46px !important;
    padding: 10px !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0px 2px 7px 0px rgb(99, 99, 99) !important;
    background: rgb(255, 255, 255) !important;
    font-family: Inter !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 22px !important;
    letter-spacing: 0px !important;
    text-align: left !important;
}

.header-form-btn {
    width: 246px;
    margin-left: 42px;
    background: rgb(255, 189, 47) !important;
    color: #000;
    text-align: center !important;
}

.checkbox-block {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

checkbox-input {
    margin: 0;
}

.checkbox-label {
    font-weight: 400;
    line-height: 35px;
    letter-spacing: 0px;
    text-align: left;
    font-family: Inter;
    font-size: 20px;
    color: rgb(0, 0, 0);
    margin: 0;
}

.checkbox-input:checked {
    background-color: rgba(77, 67, 168, 1);
    border-color: rgba(77, 67, 168, 1);
}

.checkbox-label a {
    color: rgba(77, 67, 168, 1);
}

footer {
    background: linear-gradient(90.00deg, #E38519,#FF6831);
    margin: 0 auto;
    padding: 40px;
    width: 100%;
}

.modal-window-component-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
  }

  .modal-window-component-container .modal-window-component {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

.modal-window-component-container.down-slider .modal-window-component {
align-items: end;
}

.modal-window-component-container .modal-window-component .modal-window-shadow {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(12px);
}

.modal-window-component-container .modal-window-component .modal-window-content-container {
z-index: 1;
position: relative;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
transition: transform 500ms;
background-color: #FFFFFF;
max-width: 900px;
}

@media only screen and (max-width: 540px) {
    .modal-window-component-container .modal-window-component .modal-window-content-container {
        width: 250px;
        height: 200px;
        border: unset;
        border-radius: 20px;
    }
}

.modal-window-component-container .modal-window-component .modal-window-content-container .modal-window-close-button {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    display: flex;
    padding: 8px;
}

@media only screen and (max-width: 540px) {
    .modal-window-component-container .modal-window-component .modal-window-content-container .modal-window-close-button {
        padding-left: 10px;
        padding-bottom: 10px;
    }
}

.modal-window-component-container .modal-window-component .modal-window-content-container .modal-window-content {
    overflow-y: hidden;
    overflow-x: hidden;
    /*max-height: 80vh;*/
    max-height: calc(100vh - 25px - 125px);
    margin: 25px 25px 25px 25px;
    min-width: 150px;
    max-width: 80vw;
    padding-top: 10px;
}

@media only screen and (max-width: 540px) {
    .modal-window-component-container .modal-window-component .modal-window-content-container .modal-window-content {
      height: 100%;
      padding-top: 20px;
      padding-bottom: 75px;
      max-width: unset;
    }

    .modal-window-content div h2 {
        padding-top: 20px !important;
    }
}

@media (max-width: 1400px) {
    .container {
        width: 1140px;
    }

    .hero-wrapper::before {
        right: -10px;
    }
    .hero-wrapper::after {
        right: -40px;
    }

    .hero-title {
        font-size: 34px;
        width: 50%;
        margin-right: 0;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 960px;
    }

    .navbar .container::before {
        left: 35%;
    }
    .navbar .container::after {
        scale: 0.8;
        top: -49px;
        left: 60%;
    }

    .wrapper {
        /* width: 960px; */
        padding: 20px 0 20px 40px;
    }


    .hero-wrapper {
        gap: 15px;
    }

    .hero-wrapper::after {
        right: -35px;
        bottom: -80px;
        scale: 0.7;
    }

    .hero-wrapper::before {
        left: 90%;
        scale: 0.9;
    }

    .hero-title {
        font-size: 30px;
        margin: 0;
        width: 40%;
    }

    .hero-journal {
        /* width: 540px; */
        height: 350px;
        overflow: unset;
    }

    .header-form-wrapper {
        flex-flow: wrap;
        justify-content: center;
    }

    .header-form-btn {
        margin-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 992px) {
    .container {
        width: 720px;
    }

    .navbar .container::before {
        left: 35%;
        scale: 0.9;
    }
    .navbar .container::after {
        scale: 0.6;
        top: -49px;
        left: 70%;
    }

    .wrapper {
        width: 100%;
        height: 100%;
        padding: 20px 20px;
        flex-flow: wrap;
    }

    .hero-title {
        font-size: 32px;
        text-align: center;
        width: 100%;
        margin: 0;
        padding-left: 0;
    }

    .hero-wrapper {
        justify-content: center;
        gap: unset;
        /* transform: none; */

    }

    .hero-journal {
        justify-content: flex-start;
        width: 540px;
        height: unset;
        margin-top: 30px;
    }

    .hero-journal-img {
        width: 100%;
    }
    
    .hero-wrapper::after {
        right: -20px;
        left: unset;
        bottom: -50px;
        scale: 1;
    }

    .hero-wrapper::before {
        right: 0;
        left: unset;
        bottom: 300px;
        scale: 1;
    }

    .header-form-wrapper {
        flex-flow: wrap;
        align-items: center;
        justify-content: center;
    }

    
    .header-form-label {
        margin-left: 80px;
        padding-left: 0;
    }

    .header-form-btn {
        margin-left: 0;
        margin-top: 0;
    }

    button {
        width: 276px;
    }
}

@media (max-width: 767px) {
    .container {
        width: 540px;
    }

    .navbar {
        padding-top: 30px;
    }

    .navbar .container {
        justify-content: center;
        gap: 10px;
    }

    .navbar .container::before {
        left: -7%;
        top: -61px;
        scale: 0.6;
    }
    .navbar .container::after {
        scale: 0.7;
        top: -51px;
        left: 70%;
    }

    .hero {
        margin-top: 20px;
    }

    #panelcontainer {
        margin-top: 20px;
    }

    .hero-wrapper  {
        flex-direction: column;
    }

    .hero-wrapper::after {
        display: none;
    }

    .hero-wrapper::before {
        display: none;
    }

    .hero-title {
        font-size: 26px;
        width: 100%;
        padding-left: 0;
        text-align: center;
    }

    .hero-journal {
        width: 500px;
        height: 300px;
        gap: 0;
        margin-top: 20px;
        margin-bottom: 20px;
        align-items: center;
    }

    .hero-journal-img {
        height: 300px;
    }

    header-form {
        display: flex;
        flex-direction: column;
        margin-bottom: 50px;
    }

    header-form-label {
        margin-left: 0;
        text-align: center;
    }

    .header-form-btn{
        margin-top: 40px;
    }

    .checkbox-label {
        font-size: 18px;
        margin: 0;
        line-height: 25px;
    }
}

@media (max-width: 575px) {

    body::before {
        top: 0;
        left: 5px;
        scale: 0.3;
        transform: translate(10px, -220px);
    }
    body::after {
        top: 13px;
        left: 0;
        scale: 0.4;
        transform: translate(10px, -100px);
    }

    .container {
        width: 100%;
        padding: 0 10px;
        display: flex;
        flex-direction: column-reverse;
        gap: 30px;
    }

    .navbar {
        padding-top: 50px;
    }

    .navbar .container {
        flex-direction: column;
    }

    .navbar .container::before {
        content: url(img/main-bg.svg);
        position: absolute;
        left: 31%;
        top: -89px;
        z-index: -1;
        scale: 0.5;
    }

    .navbar .container::after {
        content: url(img/second-bg.svg);
        position: absolute;
        left: 0%;
        z-index: -1;
        scale: 0.7;
        top: -70px;
    }

    .wrapper {
        width: 100%;
        height: 100%;
        padding: 20px 20px;
        flex-flow: wrap;
    }

    .hero-title {
        font-size: 24px;
        width: 100%;
    }

    .hero-wrapper {
        transform: none;
        justify-content: center;
    }

    .hero-journal {
        width: 300px;
    }

    .hero-journal-img {
        height: unset;
        width: 100%;
    }
    

    header-form {
        margin-top: 00px;
        margin-bottom: 00px;
    }

    .header-form-label {
        padding-left: 0;
    }

    .header-form-btn {
        margin-top: 40px;
    }

    .checkbox-block {
        gap: 20px;
    }
    
    .checkbox-label {
        font-size: 15px;
        margin: 0;
        line-height: 25px;
    }
}
