@import url('./normalize.css');

@import url('./_variables-theme.css');
/* @import url('./_variables-theme_narodniycapital.css'); */
/* @import url('./_variables-theme_esp-leasing.css'); */
/* @import url('./_variables-theme_autozalog24.css'); */
/* @import url('./_variables-theme_finliner.css'); */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --gap: 4px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    position: relative;
    height: 100%;
    height: -webkit-fill-available;
    min-height: 100vh;
    min-height: fill-available;
    min-height: -webkit-fill-available;
}

body {
    background: var(--background);
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    font-size: 16px;
}

body.navigation-active::before {
    content: '';
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9;
}

a {
    color: rgb(var(--primary));
}

.link {
    text-decoration: none;
    transition: all .25s;
}

.link--dashed {
    border-bottom: 1px dashed rgb(var(--primary));
}

.link--dashed:hover {
    border-bottom-color: transparent !important;
}

.link span {
    position: relative;
}

.link span::before {
    content: '';
    background: rgb(var(--primary));
    position: absolute;
    display: block;
    height: 1px;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    transition: all .25s;
}

.link:hover span::before {
    right: 50%;
    left: 50%;
    opacity: 0;
}

/* FORM */
input,
select,
textarea {
    background-color: var(--input-background);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    height: 46px;
    padding-left: calc(4 * var(--gap));
    padding-right: calc(4 * var(--gap));
    border: 1px solid var(--input-background);
    border-radius: 6px;
    outline: none;
    font-weight: 500;
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus,
input:active,
select:active,
textarea:active,
.form-field input:focus {
    color: var(--text-color);
    background-color: #fff;
    border: 1px solid #11142d;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: var(--text-color);
    font-family: 'Inter';
    font-weight: 500;
    font-size: 14px;
    opacity: 1;
    text-overflow: ellipsis;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-color);
    font-family: 'Inter';
    font-weight: 500;
    font-size: 14px;
    opacity: 1;
    text-overflow: ellipsis;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.form-field--success input {
    background: rgba(var(--success), 0.13);
    border-color: rgba(var(--success), 0.35);
}

.form-field--danger input {
    background: rgba(var(--danger), 0.13);
    border-color: rgba(var(--danger), 0.18);
    color: rgba(var(--danger));
}

.form-field--success .form-field__note {
    color: var(--success-darken-1);
}

.form-field--danger .form-field__note {
    color: rgba(var(--danger));
}

.form-field__label {
    font-weight: 500;
    font-size: 0.875em;
    line-height: 32px;
}

.form-field__note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.6;
}
/* FORM */

/* CHECKBOX */
.checkbox {
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    line-height: normal;
    cursor: pointer;
}

.checkbox__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    min-width: 16px;
    height: 16px;
    border: 1px solid var(--checkbox-background);
    border-radius: 3px;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
    transition: all 0.2s ease;
}

.checkbox__icon svg {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 13px;
    stroke-dashoffset: 13px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
}

.checkbox__icon:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--checkbox-background);
    display: block;
    transform: scale(0);
    opacity: 1;
    border-radius: 50%;
    left: 0;
}

.checkbox__text {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 0;
    padding-left: calc(2 * var(--gap));
    font-weight: 500;
    font-size: 0.875em;
    line-height: 24px;
    user-select: none;
}

.checkbox-input {
    display: none;
}

.checkbox-input:checked + .checkbox .checkbox__icon {
    background: var(--checkbox-background);
    border-color: var(--checkbox-background);
    animation: wave 0.4s ease;
}

.checkbox-input:checked + .checkbox .checkbox__icon svg {
    stroke-dashoffset: 0;
}

.checkbox-input:checked + .checkbox .checkbox__icon:before {
    transform: scale(3);
    opacity: 0;
    transition: all 0.6s ease;
}

.checkbox-input:disabled + .checkbox {
    cursor: default;
}

@keyframes wave {
    50% {
    transform: scale(0.9);
    }
}
/* CHECKBOX */

/* SWITCH */
.switch {
    display: -ms-flexbox;
    display: flex;
    justify-content: space-between;
}

.switch__toggle {
    background: #A4B1CD;
    position: relative;
    display: block;
    width: 40px;
    min-width: 40px;
    height: 22px;
    border-radius: 100px;
    cursor: pointer;
}

.switch__toggle:before,
.switch__toggle:after {
    content: '';
    position: absolute;
    display: block;
    border-radius: 50%;
    transform: none;
    transition: all 0.2s;
}

.switch__toggle:before {
    background-color: #fff;
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
}

.switch__input {
    display: none;
}

.switch__input:checked ~ .switch__toggle {
    background: rgb(var(--primary));
}

.switch__input:checked ~ .switch__toggle:before {
    transform: translateX(18px);
}

.switch__input:checked ~ .switch__text {
    opacity: 1;
}

.switch__text {
    font-weight: 500;
    font-size: 1em;
    line-height: 1.5;
    opacity: 0.6;
    transition: all 0.2s;
}
  /* SWITCH */

.container {
    display: flex;
    flex-direction: column;
    max-width: 496px;
    padding: 0 calc(2 * var(--gap));
    margin: 0 auto;
}

.button {
    background: rgba(var(--primary), 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid rgba(var(--primary), 0.5);
    border-radius: 4px;
    color: var(--button-text-color);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s;
}

.button:hover {
    background: rgba(var(--primary), 0.15);
}

.button--primary {
    background: var(--button-primary-background);
    border-color: var(--button-primary-background);
    height: 40px;
    padding: 8px 12px;
    color: #FFF;
    font-weight: 600;
    font-size: 13px;
}

.button--primary:hover {
    background: var(--button-primary-background-hover);
    border-color: var(--button-primary-background-hover);
}

.button.disabled {
    background: #C5C7CF;
    border-color: #C5C7CF;
    cursor: not-allowed;
}

.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-bottom: calc(2px + 2 * var(--gap));
}

.header--anonymous {
    justify-content: center;
    padding-bottom: calc(4 * var(--gap) + 2px);
}

.logo {
    background: var(--logo-path) no-repeat 50% 50%;
    background-size: contain;
    display: inline-flex;
    width: var(--logo-width);
    height: var(--logo-height);
}

.logo-wrap {
    width: 100%;
    margin: calc(4 * var(--gap)) 0;
    text-align: center;
}

.header--anonymous .logo-wrap {
    margin: calc(7 * var(--gap)) 0;
}

.logo img {
    max-width: 100%;
}

.navigation {
    background: var(--background);
    position: fixed;
    width: 304px;
    padding: 27px 24px;
    top: 0;
    right: -304px;
    bottom: 0;
    border-radius: 6px 0px 0px 6px;
    opacity: 0;
    z-index: 20;
    transition: all .25s;
}

body.navigation-active .navigation {
    right: 0;
    opacity: 1;
}

.navigation__headline {
    margin: 0;
    opacity: 0.4;
    font-weight: 500;
    font-size: 10px;
    line-height: 1.6;
    text-transform: uppercase;
}

.navigation__list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.navigation__list-item {
    margin-bottom: calc(2 * var(--gap));
}

.navigation__list-item:last-child {
    margin-bottom: 0;
}

.navigation__list-item-link {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
}

.navigation__list-item-link svg {
    margin-top: 1px;
    margin-right: calc(3 * var(--gap));
}

.navigation-toggle {
    background: var(--menu-button-background) !important;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 32px;
    padding: 9px;
    border: none;
    cursor: pointer;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    z-index: 21;
}

.navigation-toggle::before {
    content: '';
    background: rgb(var(--primary));
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 4px;
    opacity: 0;
    transition: all .25s;
}

.navigation-toggle:hover::before {
    opacity: 0.1;
}

.navigation-toggle__line {
    width: 100%;
    height: 2px;
    background-color: var(--menu-button-line-background);
    border-radius: 10px;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

body.navigation-active .navigation-toggle .navigation-toggle__line:nth-of-type(1) {
    -webkit-transform: translateY(6px) rotate(-45deg);
    -ms-transform: translateY(6px) rotate(-45deg);
    transform: translateY(6px) rotate(-45deg);
}

body.navigation-active .navigation-toggle__line:nth-of-type(2) {
    opacity: 0;
}

body.navigation-active .navigation-toggle .navigation-toggle__line:nth-of-type(3) {
    -webkit-transform: translateY(-6px) rotate(45deg);
    -ms-transform: translateY(-6px) rotate(45deg);
    transform: translateY(-6px) rotate(45deg);
}

.title {
    max-width: calc(100% - 40px);
    margin: 0;
    font-weight: 600;
    font-size: 1.25em;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.counter {
    background: var(--counter-background);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 2px 6px;
    border-radius: 11px;
    color: var(--counter-text);
    font-size: 10px;
    line-height: 1.2;
    cursor: default;
}

.subtitle {
    margin: 0;
    font-weight: 600;
    font-size: 1.125em;
    line-height: 1.333;
}

.box {
    background: var(--surface);
    box-shadow: 0px 0px 1px rgba(20, 33, 61, 0.45), 0px 3px 8px -1px rgba(20, 33, 61, 0.03);
    border-radius: 6px;
}

.box_has-paddings {
    padding: calc(6 * var(--gap));
}

.box__header {
    padding: calc(4 * var(--gap));
}

.expansion-panel {
    position: relative;
    z-index: 1;
}

.expansion-panel::before {
    content: '';
    background: rgb(var(--primary));
    position: absolute;
    display: block;
    top: 50%;
    right: 50%;
    left: 50%;
    bottom: 50%;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: all .25s;
    z-index: -1;
}

.expansion-panel.is-active::before {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0;
    opacity: 0.03;
}

.box__section {
    display: flex;
    padding: calc(4 * var(--gap));
    border-top: 1px solid var(--border);
}

.box__section--success {
    background: rgba(var(--success), 0.13);
    color: rgb(var(--success));
}

.box__section--warning {
    background: rgba(var(--warning), 0.13);
    color: var(--warning-text-color);
}

.box__section--danger {
    background: rgba(var(--danger), 0.13);
    color: rgb(var(--danger));
}

.box__section--success + .box__section--warning,
.box__section--success + .box__section--danger,
.box__section--warning + .box__section--success,
.box__section--warning + .box__section--danger,
.box__section--danger + .box__section--success,
.box__section--danger + .box__section--warning {
    border-top: none;
    padding-top: calc(4 * var(--gap) + 1px);
    margin-top: -1px;
}


.box__section .button--primary.fluid {
    margin-right: calc(10 * var(--gap));
    margin-left: calc(10 * var(--gap));
}

.box__section-icon,
.info-box__section-icon {
    background: rgba(var(--primary), 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
}

.info-box__section-icon {
    width: 56px;
    min-width: 56px;
    height: 56px;
}

.info-box__section-icon--error {
    background: rgba(var(--danger), 0.07);
}

.box__section--success .box__section-icon {
    background: rgba(var(--success), 0.15);
}

.box__section--warning .box__section-icon {
    background: rgba(var(--warning), 0.15);
}

.box__section--danger .box__section-icon {
    background: rgba(var(--danger), 0.15);
}

.box__section-info {
    flex: 1;
}

.box__section-info-detailed {
    display: none;
    padding: 0;
    transition: padding .25s;
}

.box__section-info-detailed.is-active {
    padding-top: calc(3 * var(--gap) - 1px);
    padding-bottom: calc(2 * var(--gap) - 2px);
    opacity: 1;
}

.box__section .expansion-panel {
    margin-right: calc(-4 * var(--gap));
    margin-left: calc(-4 * var(--gap));
    padding-right: calc(4 * var(--gap));
    padding-left: calc(4 * var(--gap));
}

.box__section .expansion-panel.is-active {
    padding-top: calc(2 * var(--gap));
    padding-bottom: calc(3 * var(--gap));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.box__section .expansion-panel .box__section-info-detailed {
    padding: 0;
}

.section-info__label {
    margin: 0;
    font-weight: 400;
    font-size: 0.8125rem;
    line-height: 1.85;
    opacity: 0.8;
}

.section-info__text {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
    line-height: 24px;
}

.box__section-info-header .section-info__text {
    font-size: 1.125rem;
}

.section-info__subtext {
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.6;
}

.expansion-panel .box__section-info-header .icon-info {
    margin-top: 18px;
}

.expansion-panel.is-active .box__section-info-header .icon-info {
    margin-top: 0;
}

.icon-info {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: all .25s;
}

.icon-info:hover {
    transform: scale(1.1);
    filter: contrast(1.7);
}

.icon-info svg {
    width: 100%;
    height: 100%;
    color: rgb(var(--primary))
}

.box__section--success .icon-info svg {
    color: rgb(var(--success))
}

.box__section--success .link,
.box__section--danger .link,
.box__section--warning .link {
    color: inherit;
    border-bottom-color: currentColor;
}

.box__section--warning .icon-info svg {
    color: rgb(var(--warning))
}

.box__section--danger .icon-info svg {
    color: rgb(var(--danger))
}

.section-alert__label {
    margin: 0 0 -2px;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 24px;
}

.box__section--success .section-alert__label {
    color: var(--success-darken-1);
}

.section-alert__text {
    margin: 0;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.333;
}

.detail-link {
    border-bottom-color: var(--detail-link-color);
    color: var(--detail-link-color);
    font-size: 0.75rem;
    line-height: 1.33;
    transition: all 0s;
}

.info-box__section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(10 * var(--gap)) calc(6 * var(--gap));
}

.info-box__desc {
    margin-top: calc(8 * var(--gap));
    margin-bottom: calc(10 * var(--gap));
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.payment-method {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.payment-method__headline {
    width: 100%;
}

.payment-method__title,
.payment-method__sum {
    margin: 0;
    font-weight: 500;
    font-size: 0.9375em;
    line-height: 24px;
}

.payment-method__sum {
    font-weight: 600;
}

.payment-method__note {
    width: 100%;
    margin: 2px 0 0;
    opacity: 0.6;
    font-size: 0.75em;
    line-height: 16px;
}

/* MODAL */
.modal {
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: all 0.2s;
}
.modal__dialog {
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    max-height: 85vh;
    width: 296px;
    border-right: 8px;
    box-shadow: 0px 0px 1px rgba(20, 33, 61, 0.45), 0px 3px 8px -1px rgba(20, 33, 61, 0.03);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
    transform: translateY(-50%);
}
.modal__dialog-body,
.modal__dialog-footer {
    padding: 24px;
}
.modal__dialog-body {
    flex-grow: 1;
    overflow: auto;
}
.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(var(--primary), 0.07);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(4 * var(--gap));
}
.modal-icon--error {
    background: rgba(var(--danger), 0.07);
}
.modal-title {
    margin: 0;
    font-weight: 500;
    font-size: 1em;
    line-height: 1.5;
    text-align: center;
    color: #27272E;
}
.modal-desc {
    margin: 0;
    font-size: 0.8125em;
    line-height: 138%;
    text-align: center;
    opacity: 0.8;
}
.modal__dialog-footer {
    border-top: 1px solid var(--border);
}
.modal--active {
    visibility: visible;
    opacity: 1;
}
.modal--active .modal__dialog {
    transform: translateY(0);
}
.modal--has-scroll .modal__dialog-footer {
    position: relative;
    z-index: 5;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
/* MODAL */

/* BASE */
.d-flex {
    display: flex;
}

.direction-column {
    flex-direction: column;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fluid {
    width: 100%;
}

.mx-auto {
    margin-right: auto;
    margin-left: auto;
}
.mt-0 {
    margin-top: calc(var(--gap) / 2);
}
.mt-1 {
    margin-top: var(--gap);
}
.mt-2 {
    margin-top: calc(2 * var(--gap));
}
.mt-3 {
    margin-top: calc(3 * var(--gap));
}
.mt-4 {
    margin-top: calc(4 * var(--gap));
}
.mr-0 {
    margin-right: calc(var(--gap) / 2);
}
.mr-1 {
    margin-right: var(--gap);
}
.mr-2 {
    margin-right: calc(2 * var(--gap));
}
.mr-3 {
    margin-right: calc(3 * var(--gap));
}
.mr-4 {
    margin-right: calc(4 * var(--gap));
}
.mb-1 {
    margin-bottom: var(--gap);
}
.mb-2 {
    margin-bottom: calc(2 * var(--gap));
}
.mb-3 {
    margin-bottom: calc(3 * var(--gap));
}
.mb-4 {
    margin-bottom: calc(4 * var(--gap));
}
.ml-0 {
    margin-left: calc(var(--gap) / 2);
}
.ml-1 {
    margin-left: var(--gap);
}
.ml-2 {
    margin-left: calc(2 * var(--gap));
}
.ml-3 {
    margin-left: calc(3 * var(--gap));
}
.ml-4 {
    margin-left: calc(4 * var(--gap));
}

.mt-n0 {
    margin-top: calc(-1 * var(--gap) / 2);
}
.mt-n1 {
    margin-top: calc(-1 * var(--gap));
}
.mt-n2 {
    margin-top: calc(-2 * var(--gap));
}
.mr-n0 {
    margin-right: calc(-1 * var(--gap) / 2);
}
.mr-n1 {
    margin-right: calc(-1 * var(--gap));
}
.mr-n2 {
    margin-right: calc(-2 * var(--gap));
}
.mb-n0 {
    margin-bottom: calc(-1 * var(--gap) / 2);
}
.mb-n1 {
    margin-bottom: calc(-1 * var(--gap));
}
.mb-n2 {
    margin-bottom: calc(-2 * var(--gap));
}
.ml-n0 {
    margin-left: calc(-1 * var(--gap) / 2);
}
.ml-n1 {
    margin-left: calc(-1 * var(--gap));
}
.ml-n2 {
    margin-left: calc(-2 * var(--gap));
}
/* BASE */

@media all and (max-width: 1099px) and (min-width: 501px) {
    body.navigation-active .navigation-toggle {
        position: fixed;
        top: 8px;
        right: 8px;
    }
}

@media all and (max-width: 500px) {
    .header {
        padding-bottom: calc(2 * var(--gap));
        align-items: flex-start;
    }
    .header--anonymous {
        padding-bottom: calc(4 * var(--gap) + 2px);
    }
    .logo {
        width: var(--logo-width-xs);
        height: var(--logo-height-xs);
    }
    .logo-wrap {
        order: 1;
        width: auto;
        margin: calc(2 * var(--gap)) 0 calc(3 * var(--gap));
    }
    .header--anonymous .logo {
        width: var(--logo-width);
        height: var(--logo-height);
    }
    .navigation-toggle {
        order: 2;
        margin-top: calc(2 * var(--gap));
    }
    .title {
        order: 3;
        width: 100%;
        max-width: 100%;
        line-height: 24px;
    }
    .header--anonymous .title {
        justify-content: center;
    }
    .box {
        margin-bottom: calc(3 * var(--gap));
    }
}