/*-----------
    Fonts
-----------*/
@font-face
{
    font-family: 'TT Drugs';
    font-weight: 700;
    font-style: normal;

    font-display: swap;
    src: url('../fonts/TTDrugs-Bold.woff2') format('woff2'),
    url('../fonts/TTDrugs-Bold.woff') format('woff'),
    url('../fonts/TTDrugs-Bold.ttf') format('truetype');
}



/*------------------
    Reset styles
------------------*/
*
{
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    scroll-margin-top: 24px;
}

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

html
{
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
        -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body
{
    margin: 0;

    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
    text-rendering: optimizeLegibility;
    text-decoration-skip: objects;
}

img
{
    border-style: none;
}

textarea
{
    overflow: auto;
}

input,
textarea,
input:active,
textarea:active,
button
{
    margin: 0;

    -webkit-border-radius: 0;
            border-radius: 0;
         outline: none transparent !important;
    box-shadow: none;

    -webkit-appearance: none;
            appearance: none;
    -moz-outline: none !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button
{
    margin: 0;

    -webkit-appearance: none;
}

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

:focus
{
    outline: 0;
}

:hover,
:active
{
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
}


::-ms-clear
{
    display: none;
}



/*-------------------
    Global styles
-------------------*/
:root
{
    --bg: #fff;
    --scroll_width: 17px;
    --text_color: #25343f;
    --font_size: 16px;
    --font_size_title: 32px;
    --font_family: 'Roboto', 'Arial', sans-serif;
    --font_family2: 'TT Drugs', 'Arial', sans-serif;
}


::selection
{
    color: #fff;
    background: #0090d4;
}

::-moz-selection
{
    color: #fff;
    background: #0090d4;
}


.clear
{
    clear: both;
}

.left
{
    float: left;
}

.right
{
    float: right;
}



html
{
    height: 100%;
    min-height: -moz-available;
    min-height: -webkit-fill-available;
    min-height:         fill-available;
}

html.custom_scroll ::-webkit-scrollbar
{
    width: 10px;
    height: 10px;

    background-color: var(--bg);
}

html.custom_scroll ::-webkit-scrollbar-thumb
{
    background-color: #0090d4;
}


body
{
    font: var(--font_size) var(--font_family);

    height: 100%;
    min-height: -moz-available;
    min-height: -webkit-fill-available;
    min-height:         fill-available;

    color: var(--text_color);
}


button
{
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;

    display: inline-block;

    cursor: pointer;
    vertical-align: top;

    color: inherit;
    border: none;
    background: none;
}


.wrap
{
    position: relative;
    z-index: 9;

    display: flex;
    overflow: clip;
    flex-direction: column;

    min-width: 375px;
    min-height: 100%;

    background: var(--bg);
}


.main
{
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}


.cont
{
    width: 100%;
    max-width: 1010px;
    margin: 0 auto;
    padding: 0 24px;
}


.row
{
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
}



/*------------
    Header
------------*/
header
{
    position: relative;
    z-index: 9;
    top: 0;
    left: 0;

    width: 100%;
    padding: 24px 0;
}



header .logo
{
    display: block;

    text-decoration: none;

    color: currentColor;
}

header .logo img
{
    display: block;

    margin: 0 auto;
}



/*------------------
    Form elements
------------------*/
.form
{
    --form_border_color: rgba(164, 209, 237, .50);
    --form_focus_color: #1b8cd1;
    --form_error_color: red;
    --form_border_radius: 24px;
    --form_bg_color: #fff;
    --form_placeholder_color: #708690;
}


.form ::-webkit-input-placeholder
{
    color: var(--form_placeholder_color);
}

.form :-moz-placeholder
{
    color: var(--form_placeholder_color);
}

.form ::-moz-placeholder
{
    opacity: 1;
    color: var(--form_placeholder_color);
}

.form :-ms-input-placeholder
{
    color: var(--form_placeholder_color);
}


.form .columns
{
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;

    margin-left: calc(var(--form_columns_offset) * -1);

    --form_columns_offset: 24px;
}

.form .columns > *
{
    width: calc(50% - var(--form_columns_offset));
    margin-left: var(--form_columns_offset);
}


.form .line
{
    margin-bottom: 24px;
}


.form .field
{
    position: relative;
}


.form .input
{
    font-family: var(--font_family);
    font-size: var(--font_size);

    display: block;

    width: 100%;
    height: 48px;
    padding: 0 14px;

    transition: border-color .2s linear;

    color: var(--text_color);
    border: 2px solid var(--form_border_color);
    border-radius: var(--form_border_radius);
    background: var(--form_bg_color);
}

.form .input:-webkit-autofill
{
    -webkit-box-shadow: inset 0 0 0 50px var(--form_bg_color) !important;
}


.form textarea
{
    font-family: var(--font_family);
    font-size: var(--font_size);

    display: block;

    width: 100%;
    height: 160px;
    padding: 12px 14px;

    resize: none;
    transition: border-color .2s linear;

    color: var(--text_color);
    border: 2px solid var(--form_border_color);
    border-radius: var(--form_border_radius);
    background: var(--form_bg_color);
}

.form textarea::-webkit-scrollbar
{
    width: 5px;
    height: 5px;
}


.form .input:focus,
.form textarea:focus
{
    border-color: var(--form_focus_color);
}


.form .error
{
    border-color: var(--form_error_color);
}


.form .agree
{
    font-size: 13px;
    line-height: 120%;

    text-align: left;

    color: #708690;
}


.form .agree a
{
    text-decoration: none;

    color: #1b8cd1;
}


.form .submit
{
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}


.form .submit_btn
{
    font-size: 18px;
    line-height: 120%;

    display: block;

    padding: 12px 32px;

    transition: background .2s linear;

    color: #fff;
    border-radius: 48px;
    background: #37a238;;
}


.form .submit_btn:disabled
{
    pointer-events: none;

    background: rgba(55, 162, 56, .25);
}


.form .submit_btn:hover
{
    background: #2c852d;
}



/*----------
    Rate
----------*/
.rate .data
{
    position: relative;

    padding: 48px;

    text-align: center;

    border-radius: 36px;
    background: #ebf8ff;
    min-height: 600px;
}



.rate .title
{
    font-family: var(--font_family2);
    font-size: var(--font_size_title);
    font-weight: 700;
    line-height: 112%;

    width: 640px;
    max-width: 100%;
    margin: 0 auto 32px;
}

.rate .title.small
{
    width: 564px;
}



.rate .desc
{
    font-size: 15px;
    line-height: 120%;

    width: 564px;
    max-width: 100%;
    margin: -24px auto 48px;

    color: #708690;
}



.rate .label
{
    font-size: 15px;
    line-height: 120%;

    margin-bottom: 24px;
}



.rate .variants
{
    display: flex;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.rate .variants * + *
{
    margin-left: 16px;
}


.rate .variants a
{
    display: flex;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;

    width: 60px;
    height: 60px;

    transition: .2s linear;
    text-decoration: none;

    opacity: .5;
    color: currentColor;
    border-radius: 50%;
}

.rate .variants a.color1
{
    background: #ff5c00;
}

.rate .variants a.color2
{
    background: #ffa800;
}

.rate .variants a.color3
{
    background: #ffd600;
}

.rate .variants a.color4
{
    background: #cf0;
}

.rate .variants a.color5
{
    background: #60e000;
}


.rate .variants img
{
    display: block;
}


.rate .variants a:hover
{
    opacity: 1;
}



.rate .img
{
    display: block;

    width: 560px;
    max-width: 100%;
    margin: 48px auto 0;
}



.rate .form
{
    width: 564px;
    max-width: 100%;
    margin: 0 auto;
}



.rate .branch
{
    width: 364px;
    max-width: 100%;
    margin: 0 auto 24px;
}


.rate .branch select
{
    display: none;
}


.rate .branch .nice-select
{
    position: relative;

    display: flex;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;

    cursor: pointer;
    transition: background .2s linear;

    border-radius: 24px;
}


.rate .branch .nice-select:hover,
.rate .branch .nice-select.open
{
    background: #fff;
}


.rate .branch .nice-select .current
{
    font-size: 18px;
    font-weight: 700;
    line-height: 120%;

    display: flex;
    overflow: hidden;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;

    padding: 14px 16px;

    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: #708690;
}

.rate .branch .nice-select .current:after
{
    display: block;

    width: 20px;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;

    content: '';

    background: url(../images/ic_arr_ver.svg) 0 0 no-repeat;
}


.rate .branch .nice-select-dropdown
{
    position: absolute;
    z-index: 9;
    top: 100%;
    left: 0;

    visibility: hidden;
    overflow: hidden;

    width: 100%;
    margin-top: 4px;

    transition: .2s linear;
    transform: none;

    opacity: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 0 24px 0 rgba(37, 52, 63, .24);
}

.rate .branch .nice-select.open .nice-select-dropdown
{
    visibility: visible;

    transform: none;

    opacity: 1;
}


.rate .branch .nice-select .list
{
    overflow: auto;

    max-height: 250px;

    text-align: left;

    border-radius: 0;
}

.rate .branch .nice-select .list::-webkit-scrollbar
{
    width: 4px;
    height: 4px;
}


.rate .branch .nice-select .list .option
{
    font-size: 15px;
    line-height: 120%;

    display: block;

    padding: 11px 16px;

    list-style-type: none;

    cursor: pointer;
    transition: .2s linear;
    white-space: nowrap;

    color: #0a0a0a;
}

.rate .branch .nice-select .list .option:hover
{
    color: #fff;
    background: #1b8cd1;
}

.rate .branch .nice-select .list .option:empty
{
    display: none;
}


.rate .branch .nice-select + .arr
{
    position: absolute;
    top: 0;
    right: 10px;
    bottom: 0;

    display: block;

    width: 10px;
    height: 8px;
    margin: auto 0;

    transition: transform .2s linear;
    pointer-events: none;

    border-top: 8px solid #c8cbce;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

.rate .branch .nice-select.open + .arr
{
    transform: rotate(180deg);
}



.rate .links
{
    width: 366px;
    max-width: 100%;
    margin: 0 auto;
}


.rate .links > * + *
{
    margin-top: 12px;
}


.rate .links a
{
    position: relative;

    display: flex;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;

    height: 48px;

    transition: .2s linear;
    text-decoration: none;

    color: currentColor;
    border: 2px solid rgba(164, 209, 237, .50);
    border-radius: 24px;
    background: #fff;
}

.rate .links a:after
{
    position: absolute;
    right: 16px;

    display: block;

    width: 20px;
    height: 20px;
    margin: auto 0;

    content: '';
    transition: opacity .2s linear;
    transform: rotate(-90deg);

    background: url(../images/ic_arr_ver.svg) 0 0 no-repeat;
}


.rate .links img
{
    display: block;

    max-width: 100%;
    max-height: 100%;

    transition: opacity .2s linear;
}


.rate .links a.disabled
{
    pointer-events: none;

    background: rgba(255, 255, 255, .50);
}

.rate .links a.disabled img
{
    opacity: .5;

    -webkit-filter: grayscale(100%);
       -moz-filter: grayscale(100%);
        -ms-filter: grayscale(100%);
         -o-filter: grayscale(100%);
            filter: grayscale(100%);
}

.rate .links a.disabled:after
{
    opacity: .5;
}


.rate .links a:hover
{
    border-color: transparent;
    background: rgba(164, 209, 237, .50);
}



.rate .data .success
{
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;

    /*display: none;*/

    width: 100%;
    height: 100%;
    padding: 48px;

    border-radius: inherit;
    background: #e5ffd9;
}


.rate .data .success .desc
{
    font-size: 18px;
    line-height: 120%;

    margin-top: -16px;

    color: #708690;
}


.rate .data .success .img
{
    width: 480px;
}



/*------------
    Footer
------------*/
footer
{
    font-size: 13px;
    line-height: 120%;

    margin-top: 62px;
    padding: 24px 0;

    text-align: center;

    color: #708690;
}


footer .cont
{
    display: flex;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}



footer .phone
{
    display: flex;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;

    margin-left: 24px;
}


footer .phone .icon
{
    display: block;

    width: 20px;
    height: 20px;
    margin-right: 4px;
}


footer .phone a
{
    white-space: nowrap;
    text-decoration: none;

    color: currentColor;
}
