.widget-overflow-hidden {
    overflow: hidden !important;
}

.widget,
.widget * {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: 0;
    -webkit-tap-highlight-color: transparent;

}


.widget img {
    width: auto;
    max-width: unset;
    height: auto;
    -o-object-fit: unset;
    object-fit: unset;
}

.widget-form {
    width: 495px;
    background: #121239;
    color: #ffffff;
    padding: 40px;
    position: fixed;
    bottom: 132px;
    right: 40px;
    border-radius: 8px;
    transform: translateY(50px);
    opacity: 0;
    transition: .3s ease;
    z-index: 10001;
    pointer-events: none;
}

.widget.active .widget-form {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.widget-form__title {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 16px;
}

.widget-form__subtitle {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 20px;
}

.widget-form__text {
    font-size: 14px;
    line-height: 1.6;
    color: #909090;
}

.widget-form__row {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.widget-form__field {
    position: relative;
    width: 100%;
    display: inline-block;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 14px;
}

.widget-form__field input[type="text"],
.widget-form__field input[type="tel"],
.widget-form__field input[type="url"],
.widget-form__field input[type="email"] {
    width: 100%;
    height: 26px;
    padding: 0 0 5px;
    font-weight: 500;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    outline: 0;
    outline-offset: 0;
    color: #ffffff;
    font-size: 16px;
}

.widget-form__field textarea {
    width: 100%;
    height: 85px;
    resize: none;
    outline: 0;
    outline-offset: 0;
    color: #ffffff;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    background-color: transparent;
    font-size: 16px;
}

.widget-form__field textarea::-webkit-scrollbar {
    width: 3px;
    background-color: rgba(160, 160, 160, 0.3);
}

.widget-form__field textarea::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.widget-form__field textarea::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid slategrey;
    border-radius: 7px;
}

.widget-form__placeholder {
    font-weight: 500;
    display: block;
    text-align: left;
    position: absolute;
    top: -5px;
    left: 0;
    pointer-events: none;
    transition: transform 200ms, color 200ms;
    color: #909090;
}

.widget-form__field input:not(:placeholder-shown) ~ .widget-form__placeholder {
    opacity: 0.8;
}

.widget-form__field input:focus ~ .widget-form__placeholder {
    opacity: 0.8;
}

.widget-form__field input:focus ~ .widget-form__placeholder,
.widget-form__field input:not(:placeholder-shown) ~ .widget-form__placeholder,
.widget-form__field textarea:focus ~ .widget-form__placeholder,
.widget-form__field textarea:not(:placeholder-shown) ~ .widget-form__placeholder {
    transform: translateY(-20px);
    font-size: 11px;
}

.widget-form__field input::-moz-placeholder,
.widget-form__field textarea::-moz-placeholder {
    color: transparent;
}

.widget-form__field input::-webkit-input-placeholder,
.widget-form__field textarea::-webkit-input-placeholder {
    color: transparent;
}

.widget-form__field input:-ms-input-placeholder,
.widget-form__field textarea:-ms-input-placeholder {
    color: transparent;
}

.widget-form__field input::-ms-input-placeholder,
.widget-form__field textarea::-ms-input-placeholder {
    color: transparent;
}

.widget-form__field input::placeholder,
.widget-form__field textarea::placeholder {
    color: transparent;
}

.widget-form__field .error-text {
    position: absolute;
    font-size: 13px;
    line-height: 15px;
    letter-spacing: 0.01em;
    color: #F9423A;
    bottom: -20px;
    top: unset;
    left: 0;
    margin-bottom: 0;
    opacity: 0;
}

.widget-form__field.error .error-text {
    opacity: 1;
}

.widget-form__bottom {
    width: 100%;
    display: flex;
    gap: 20px;
    margin-top: 30px;
}


/* Стили для чекбокса - начало */
.widget-form__checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}
.widget-form__checkboxes .widget-form__checkbox {
    max-width: 100%;
}
.widget-form__checkboxes .widget-form__checkbox:nth-child(2) {
    max-width: calc(100% - 120px);
}
.widget-form__checkbox {
    position: relative;
    color: #909090;
    font-size: 13px;
    line-height: 1.3;
    max-width: 70%;
}

.widget-form__checkbox input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.widget-form__checkbox label {
    align-items: flex-start;
    user-select: none;
    cursor: pointer;
    display: flex;
    gap: 8px;
}

.widget-form__checkbox a {
    color: #909090;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100%;
    background-size: 100% 1px;
    -webkit-transition: background-size .3s ease;
    -moz-transition: background-size .3s ease;
    -ms-transition: background-size .3s ease;
    -o-transition: background-size .3s ease;
    transition: background-size .3s ease;
    padding-bottom: 1px;
}

.widget-form__checkbox a:hover {
    background-size: 0 1px;
}

.widget-form__checkbox label::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid #7949F4;
    border-radius: 5px;
    transition: .3s ease;
    background: transparent;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

.widget-form__checkbox-text {
    line-height: 1.4;
    margin-top: 5px;
}

.widget-form__checkbox.error input:not(:checked) + label::before {
    border: 2px solid #F9423A;
    background-color: rgba(249, 66, 58, 0.5);
}

.widget-form__checkbox input:not(:disabled) + label:hover::before {
    opacity: 0.9;
}

.widget-form__checkbox input:checked + label::before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='17' height='17' viewBox='0 0 17 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='1' y='1' width='15' height='15'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.5813 4.18628C14.0307 4.50729 14.1348 5.13184 13.8137 5.58125L8.81375 12.5813C8.64934 12.8114 8.39516 12.9612 8.11416 12.9935C7.83316 13.0258 7.55163 12.9375 7.33931 12.7507L3.33931 9.22995C2.92474 8.86506 2.88447 8.23317 3.24937 7.8186C3.61426 7.40403 4.24614 7.36376 4.66072 7.72866L7.82973 10.518L12.1863 4.41878C12.5073 3.96937 13.1318 3.86527 13.5813 4.18628Z' fill='%23121239'/%3e%3c/svg%3e");
    background-size: contain;
    background-color: #7949F4;
}

.widget-form__checkbox.error .error-text {
    position: absolute;
    font-size: 11px;
    line-height: 15px;
    letter-spacing: 0.01em;
    color: #F9423A;
    margin-bottom: 0;
    bottom: -22px;
    left: 0;
}

/* Стили для чекбокса - конец */
.widget-form__submit {
    flex-grow: 1;
}

.widget-form__callback-button {
    text-align: center;
    margin: 0 0 0 auto;
    max-width: 200px;
}

.widget-form__button {
    display: inline-block;
    color: #ffffff;
    background: #7949f4;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 16px;
    outline: none;
    border: 1px solid #7949f4;
    cursor: pointer;
    transition: .3s ease;
    position: relative;
}

.widget-form__button:hover {
    border-color: #946AFE;
    background: #946AFE;
}

.widget-form__button.disabled {
    pointer-events: none;
}

.widget-form__callback {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget-form__callback-body {
    display: flex;
    flex-direction: column;
}

.widget-form__callback-title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 8px;
}

.widget-form__callback-text {
    font-size: 16px;
    line-height: 1.6;
}

.widget-form__callback-text {
    margin-top: 16px;
}

.widget [data-role=hide-for__success] {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: .3s ease;
}

.widget [data-role=hide-for__success].visible {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
}

.widget [data-role=show-for__success] {
    max-height: 0;
    opacity: 0;
    overflow: auto;
    transition: .3s ease;
}

.widget [data-role=show-for__success].visible {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
}


.widget-button {
    width: 76px;
    height: 76px;
    background: #7949f4;
    border-radius: 100%;
    position: fixed;
    right: 40px;
    bottom: 40px;
    cursor: pointer;
    z-index: -1;
    overflow: hidden;
    box-shadow: 0px 1px 24px 0px #0000002E;
    z-index: 500;
}

.widget-button__animation {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    animation-name: background-move;
    animation-duration: 30s;
    animation-iteration-count: infinite;
}


@keyframes background-move {
    0% {
        left: 0;
        top: 0;
    }
    50% {
        left: 100%;
        top: 100%;
        transform: translate(-100%, -100%);
    }
    100% {
        left: 0;
        top: 0;
    }
}

.widget-button__icon {
    z-index: 2;
    transition: .3s ease;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 42px;
    min-width: 42px;
    height: 42px;
}

.widget.active .widget-button__icon--close,
.widget-button .widget-button__icon--open {
    opacity: 1;
    -webkit-transform: rotate(0);
    transform: rotate(0);
}

.widget.active .widget-button__icon--open,
.widget-button .widget-button__icon--close {
    opacity: 0;
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.widget-form__close {
    display: none;
}


.widget-form__file-input {
    position: relative;
}

.widget-form__file-input input {
    position: absolute;
    bottom: 0;
    left: 25%;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.widget-form__file-input__body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
}

.widget-form__file-input__body svg {
    -webkit-transform: translateY(3px);
    -ms-transform: translateY(3px);
    transform: translateY(3px);
}

.widget-form__file-input__body svg path {
    fill: #ffffff;
}

.widget-form__file-input__body label {
    position: relative;
    cursor: pointer;
}

.widget-form__file-input__body span {
    font-size: 12px;
    font-weight: 300;
    line-height: 18px;
    opacity: .5;
}

.widget-form__file-input__body label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    -webkit-transform: scaleX(1);
    -ms-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    -ms-transform-origin: left center;
    transform-origin: left center;
    -webkit-transition: -webkit-transform .3s ease-in-out;
    transition: -webkit-transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out;
}

.widget-form__file-input__body label:hover::after {
    -webkit-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right center;
    -ms-transform-origin: right center;
    transform-origin: right center;
}

.widget-form__file-input__file {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
}

.widget-form__file-input__file-close {
    background-color: transparent;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    border: 1px solid #ffffff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 0;
    opacity: .3;
    cursor: pointer;
    -webkit-transition: opacity .3s ease-in-out;
    transition: opacity .3s ease-in-out;
}

.widget-form__file-input__file-close:hover {
    opacity: 1;
}

.widget-form__file-input__file-close svg path {
    fill: #ffffff;
    stroke: #ffffff;
}

@media (max-height: 800px) and (min-width: 767px) {
    .widget-form {
        bottom: 40px;
        right: 132px;
    }
}

@media (max-height: 770px) and (min-width: 767px) {
    .widget-form__row {
        margin-top: 50px;
    }
}

@media (max-height: 680px) and (min-width: 767px) {
    .widget-form {
        width: 100%;
        border-radius: 0;
        left: 0;
        right: 0;
        top: 0;
        min-height: 100vh;
        padding: 40px;
        overflow: auto;
        z-index: 10001 !important;
    }

    .widget-form__close {
        display: block;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 20px;
        width: 30px;
        height: 30px;
    }

    .widget-form__close img {
        max-width: 100%;
        max-height: 100%;
    }
}

@media (max-width: 767px) {
    .widget-form {
        width: 100%;
        left: 0;
        right: 0;
        top: 0;
        min-height: 100vh;
        padding: 40px 20px;
        overflow: auto;
        border-radius: 0;
        z-index: 10001 !important;
    }

    .widget-form__close {
        display: block;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 20px;
        width: 30px;
        height: 30px;
    }

    .widget-form__close img {
        max-width: 100%;
        max-height: 100%;
    }

    .widget-form__bottom {
        flex-direction: column;
        width: 100%;
    }

    .widget-form__checkbox {
        max-width: 100%;
    }

    .widget [data-role=show-for__success].visible {
        height: 100%;
    }

    .widget-form__callback {
        height: 100%;
        justify-content: space-between;
    }

    .widget-form__button {
        width: 100%;
        max-width: unset;
    }

    .widget.widget-mobile--hidden {
        display: none;
    }
    .widget-form__checkboxes .widget-form__checkbox:nth-child(2) {
        max-width: 100%;
    }
}

.widget .loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}

.widget .loading-dots-button, .loading-dots-block {
    position: relative;
}

.widget .loading-content-hidden {
    opacity: 0;
}

.widget .loading-dots-hidden {
    display: none;
}

.widget .loading-dots-white .loading-dots-dot {
    background-color: #fff;
}

.widget .loading-dots .loading-dots-dot {
    margin-left: 5px;
    margin-right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: loading-dot 1s infinite ease-in-out;
}

.widget .loading-dots .loading-dots-dot:first-child {
    animation-delay: .3s;
}

.widget .loading-dots .loading-dots-dot:nth-child(2) {
    animation-delay: .6s;
}

.widget .loading-dots .loading-dots-dot:last-child {
    animation-delay: .9s;
}

@keyframes loading-dot {
    from {
        opacity: 1;
    }
    25% {
        opacity: .5;
    }
    50% {
        opacity: .2;
    }
    75% {
        opacity: .5;
    }
    to {
        opacity: 1;
    }
}

.widget [data-role="show-for__success"] {
    display: block !important;
}