@font-face {
    font-family: 'Lato';
    src: url('./fonts/latoregular.ttf');
    font-weight: 400;
}

@font-face {
    font-family: 'Lato';
    src: url('./fonts/latomedium.ttf');
    font-weight: 500;
}

@font-face {
    font-family: 'Lato';
    src: url('./fonts/latosemibold.ttf');
    font-weight: 600;
}

html,
body {
    margin: 0;
    margin: 0;
    overflow-x: hidden;
}

html {
    font-size: 16px;
    font-family: 'Lato';
    font-weight: 400;
    scroll-behavior: smooth;
}

body {
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

ul,
ol {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: 'Zen Antique Soft', serif;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

.flex {
    display: flex;
}

.aic {
    align-items: center;
}

.aife {
    align-items: flex-end;
}

.jcfe {
    justify-content: flex-end;
}

.jcsb {
    justify-content: space-between;
}

.container {
    max-width: 1920px;
    padding: 0 70px;
    width: 100%;
    margin: 0 auto;
}

.col-4 {
    width: 40%;
}

.col-5 {
    width: 50%;
}

.col-6 {
    width: 60%;
}

.main {
    padding: 80px 0;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    background: #1A1A1A;
}

.header-logo {}

.header-nav ul {
    display: flex;
    align-items: center;
    grid-gap: 40px;
}

.header a {
    font-weight: 400;
    font-size: 1rem;
    line-height: 140%;
    color: #F3F3F8;
}

img {
    max-width: 100%;
    height: auto;
}

.footer {
    background: #1A1A1A;
    padding: 60px 0;
}

.required-label {
    color: #E03A3E;
}

.form-field {}

.form-field_label {
    padding-left: 8px;
    margin-bottom: 4px;
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    color: #333333;
}

.form-field_input {
    outline: none;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    padding: 0 20px;
    padding-top: 10px;
    padding-bottom: 12px;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 140%;
    color: #222222;
    height: 50px;
    -webkit-appearance: none;
    transition: .4s border-color;
}

.form-field.error .form-field_input {
    border-color: #E03A3E;
}

.form-field.error .error-message {
    display: inline-flex;
}

.error-message {
    display: none;
    align-items: center;
    grid-gap: 6px;
    margin-top: 6px;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #E03A3E;
    padding-left: 8px;
}

.form-field_submit {
    background-color: transparent;
    outline: none;
    border: none;
    white-space: nowrap;
    padding: 0;
}

.form-field_dropdown {
    display: none;
    flex-direction: column;
    padding: 40px;
    gap: 16px;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    background: #FFFFFF;
    box-shadow: -4px 16px 26px rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    z-index: 2;
}

.form-field_box.active .form-field_dropdown {
    display: flex;
}

.form-field_placeholder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    color: #ACACAC;
    cursor: pointer;
}

.form-field_input:focus,
.form-field_box.active .form-field_placeholder {
    border-color: #222222;
}

.form-field_box.active .form-field_placeholder .icon-dropdown-arrow {
    transform: rotate(180deg);
}

.form-field_box.filled .form-field_placeholder {
    color: #222222;
}

.form-field.error .form-field_placeholder {
    border-color: #E03A3E;
}

.form-field_placeholder .value {
    max-width: 360px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.form-field_box {
    position: relative;
}

.form-field_box input {
    width: 100%;
}

.form-field_option {
    cursor: pointer;
}

.form-field_option .form-field_option-title {
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 120%;
    color: #222222;
    transition: .4s color;
}

.form-field_option-text {
    margin-top: 6px;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 1rem;
    line-height: 140%;
    color: #ACACAC;
}

ul.form-field_dropdown-list {
    display: flex;
    flex-direction: column;
    grid-gap: 16px;
    list-style-type: none;
    padding: 0;
}

.form-field_option:hover .form-field_option-title,
.form-field_option.choosed .form-field_option-title {
    color: #E03A3E;
}

::-webkit-input-placeholder {
    color: #ACACAC;
}

::-moz-placeholder {
    color: #ACACAC;
}

:-ms-input-placeholder {
    color: #ACACAC;
}

:-moz-placeholder {
    color: #ACACAC;
}

.form-field_radio:not(:last-child) {
    margin-right: 24px;
}

.form-field_radio input {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.form-field_radio label {
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    color: #222222;
    cursor: pointer;
    display: flex;
    align-items: center;
    grid-gap: 8px;
}

.form-field_radio label span {
    border: 2px solid #333333;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-field_radio input:checked~label span:before {
    content: '';
    width: 12px;
    height: 12px;
    background: #E03A3E;
    border-radius: 50%;
}


.form-field_file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.form-field_label-file {
    display: flex;
    grid-gap: 8px;
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    color: #ACACAC;
    align-items: center;
    cursor: pointer;
    -webkit-appearance: none;
    position: relative;
}

.form-field_label-file .js-value {
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 90%;
    overflow: hidden;
    color: #222222;
}

.form-row_half .form-field {
    width: 50%;
    max-width: 260px;
}

.form-field_label-file .js-placeholder {
    display: flex;
    grid-gap: 6px;
    align-items: center;
}

.hidden {
    display: none !important;
}

.form-field_label-file .js-value:empty {
    display: none;
}

.form-field_box .icon-remove {
    position: absolute;
    right: 10px;
    bottom: 0;
    top: 0;
    cursor: pointer;
    transition: .4s opacity;
    width: 40px;
    height: 100%;
    background-size: 16px;
}

.form-field_label-file .icon-remove:hover {
    opacity: .7;
}

.form-row {
    display: flex;
    grid-gap: 20px;
}

.form-field {
    width: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.fadein {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1s;
    transition-timing-function: linear;
}

.in-view {
    opacity: 1;
}

.preloader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.preloader-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader div {
    position: absolute;
    border: 4px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: jamilco-preloader 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.preloader div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes jamilco-preloader {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

.desktop-hidden {
    display: none;
    width: 100%;
}

.mobile-hidden {
    display: block;
    width: 100%;
}

.form-step_title {
    font-weight: 500;
    font-size: 26px;
    line-height: 140%;
    color: #222222;
}

.btn {
    background: #1A1A1A;
    color: #FFF;
    outline: none;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    margin-top: 20px;
    cursor: pointer;
    height: 50px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    transition: .4s opacity;
}

.btn:hover {
    opacity: .7;
}

.btn-primary {
    max-width: 160px;
    width: 100%;
}

.payment-box {
    max-width: 550px;
    width: 100%;
}

.payment-header__title {
    font-weight: 500;
    font-size: 40px;
    line-height: 110%;
    color: #222222;
    margin-bottom: 30px;
}

.payment-step {
    font-weight: 600;
    font-size: 20px;
    line-height: 160%;
    color: #888888;
}


.form-step {
    display: none;
}

.form-step.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.qr-code {
    max-width: 300px;
    width: 100%;
}

.footer {
    color: #FFF;
}

.form-fields {
    margin-top: 20px;
}

@media screen and (max-width: 768px) {
    .desktop-hidden {
        display: block;
    }

    .mobile-hidden {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .row {
        flex-direction: column;
        grid-gap: 2.3rem;
    }

    .section {
        padding: 60px 0;
    }

    .row .col {
        width: 100%;
    }

    .footer {
        padding-top: 40px;
    }

    .form-step_title {
        font-size: 20px;
    }

    .form-fields {
        grid-gap: 10px;
    }

    .form-field_label {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .form-field_input {
        font-size: 16px;
        padding: 0 16px;
        padding-top: 8px;
        padding-bottom: 10px;
    }

    .form-field_submit.link {
        font-size: 16px;
    }

    .form-row {
        display: flex;
        grid-gap: 10px;
    }

    .form-field {
        width: 100%;
    }

    .form-field_input {
        height: 40px;
    }

    .form-field_label-file {
        white-space: nowrap;
    }

    .form-field_dropdown {
        position: fixed;
        bottom: 0;
        height: auto;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 333;
        top: auto;
        background: #FFFFFF;
        border-radius: 8px 8px 0px 0px;
        padding: 20px;
    }

    .form-field_option .form-field_option-title {
        font-size: 16px;
    }

    .form-field_box.active:before {
        content: '';
        background: rgba(0, 0, 0, 0.3);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        z-index: 3;
    }

    .form-field_dropdown-header {
        font-size: 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .form-field_dropdown-header .icon {
        background-size: 14px;
    }

    .header {
        padding-top: 24px;
    }
}

.form-field_input.error {
	border-color: red;
}
