html {
    min-height: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    height: 100%;
    height: -webkit-fill-available;
    font-size: 16px;
    width: 100%;
    background-color: #191C22;
    font-variant-numeric: lining-nums;
}

:root{
    --color-pink: #F81A5F;
    --color-pink-2: #DD1378;
    --color-red: #F45151;
    --color-gray: #BABABC;
    --color-gray-2: #9D9D9D;
    --color-gray-3: #BEBEC9;
    --color-input: #2C2D37;
    --color-input-border: #434856;
    --color-btn-border: #363B4A;
}

*,*:before,*:after{
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

a, img{outline:none;border:0px;}
a{
    color: inherit;
    text-decoration: none;
    outline: none!important;
    transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
a:hover,a:focus{text-decoration: none;}
a:hover{color: #F81A5F;}
a, button{
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
}

p {
    margin: 0;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    min-height: -webkit-fill-available;
    line-height: 1.5;
    padding: 20px 15px;
    min-width: 320px;
    font-size: 14px;
    color: #2A2A37;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    background-color: #fff;
    scroll-behavior: smooth;
}

.header{
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


.logo-wrap {
    text-align:center;
    margin-bottom: 64px;
    width: 185px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    object-fit: cover;
    display: block;
    margin-bottom: 28px;
    max-width: 138px;
}

.logo-signature {
    font-size: 20px;
    line-height: 100%;
}

.content{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 343px;
    max-width: 100%;
    margin: 0 auto;
}

.form{
    width: 100%;
}

.form-field-wrap {
    margin-bottom: 20px;
}


.form-field {
    position: relative;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    border: 1px solid #C7C7C7;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    border-style: solid;
    background-color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding-left: 12px;
    color: #2E2E40;
    transition: outline 0.15s ease-in-out;
    outline: none;
}

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

.form-input {
    border: none;
    background-color: #fff;
    font-size: 16px;
    font-weight: 500;
    color: #2E2E40;
    transition: outline 0.15s ease-in-out;
    outline: none;
}

.form-icon {
    position: absolute;
    left: 16px;
    content: "";
    background-image: url(../img/icon-phone.svg);
    width: 24px;
    height: 24px;
    display: block;
}

.form-input::placeholder {
    color: #91949B;
}

.form-code-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: -8px;

}

.form-code-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 14px;
    color: #2E2E40;
}

.code-field-group {
    margin-bottom: 16px;
}

.code-text {
    font-size: 14px;
    line-height: 19px;
    margin-bottom: 4px;
}

.code-input {
    background: #F1F3F5;
    border: none;
    border-bottom: 3px solid #C3FC4A;
    width: 40px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #2E2E40;
}

.code-input:focus {
    outline: none;
}

.code-field-group .code-input:not(:last-child) {
    margin-right: 15px;
}

.btn-secondary {
    font-size: 14px;
    line-height: 19px;
    font-weight: 700;
    transition: color 0.15s ease-in-out;
}

.btn-secondary:hover {
    color: #39563e;
}

.btn-secondary:active {
    color: #0d2311;
}


.btn {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #617CF6;
    font-size: 16px;
    font-weight: 500;
    line-height: 100%;
    border-radius: 12px;
    padding: 16px;
    border: none;
    position: relative;
    cursor: pointer;
    transition: background-color .15s ease-in-out;
    margin-bottom: 8px;
}

.btn::after {
    position: absolute;
    right: 16px;
    content: "";
    background-image: url(../img/icon-arrow.svg);
    width: 24px;
    height: 24px;
    display: block;
}

.btn:not(.btn-unactive):hover {
    background: #8b9ff5;
}

.btn:not(.btn-unactive):active {
    background: #495fbf;
}

.btn-unactive {
    cursor: default;
    opacity: .5;
}

.error-label {
    color: #F04949;
    width: 100%;
    position: relative;
    font-size: 14px;
}


input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type='number'] {
    -moz-appearance: textfield;
}

.footer {
    max-width: 343px;
    font-size: 14px;
    margin: 0 auto;
    margin-bottom: 48px;
    color: #91949B;
}


.footer-img {
    position: relative;
    bottom: -6px;
}

.footer-link {
    color: #000;
    border-bottom: 1px solid #000;
}

.footer-link:hover {
    color: #39563e;
    border-bottom: 1px solid #000;
}

.custom-checkbox {
    display: inline-flex;
    align-items: flex-start;
    cursor: pointer;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: inline-block;
    min-width: 20px;
    min-height: 20px;
    background-color: #617CF6;
    border-radius: 4px;
    position: relative;
    top: 4px;
    left: 0;
    margin-right: 10px;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #617CF6;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 4px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox-link {
    color: #617CF6;
    text-decoration: underline;
    text-underline-offset: 1px;
    transition: color .1s linear;
}

.d-none {
    display: none;
}

.custom-checkbox-link:hover {
    color: #8b9ff5;
}

.custom-checkbox-link:active {
    color: #495fbf;
}

.features-list {
    padding: 0;
    display: flex;
    gap: 24px;
}

.features-list-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 12px;
}

.features-item-sign {
    font-size: 14px;
    line-height: 130%;
}

.loader {
    width: 100px;
    height: 100px;
    border: 10px solid #617CF6;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: absolute;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    }

    @media screen and (max-height: 520px) {
    .content {
        justify-content: flex-start;
    }

}

@media screen and (max-height: 660px) {
    .logo-wrap {
        margin-bottom: 32px ;
    }
    .footer {
        margin-bottom: 24px;
    }
    .features-item-img {
        width: 40px;
    }
}
