body {
    background: #F5F5F5;
}

.header {
    background: #616C72;
    padding: 93px 0 23px !important;
}

.wrapper {
    display: flex;
}

.modal .modal-content {
  box-shadow: none !important;
}

.header .wrapper {
    flex-direction: column;
    justify-content: start;
    align-items: center;
    transition: min-height .6s cubic-bezier(.22, .61, .36, 1);
    padding: 0 26px;
}

.login-logo {
    width: 245px;
    margin: 0 0 83px;
}

.field p, .field label, form label {
    font-size: 16px !important;
}

.fields-section {
    /* max-width: 846px; */
    width: 100%;
}

.login-form,
.reg-form,
.recovery-form {
    width: 100%;
    max-width: 846px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.recovery-form {
    max-width: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header .wrapper .field label {
    color: #D3D9D7;
}

.cont {
    display: flex;
    justify-content: space-between;
}

.reset-password {
    color: #EFFE7D;
    transition: color .3s ease-in-out;
    cursor: pointer;
    margin: 0 0 8px;
    line-height: 120%;
    font-size: 16px;
}

.reset-password:hover {
    color: #D3D9D7;
}

.agreement__link {
    color: #EFFE7D;
    text-decoration: none;
    transition: color .3s ease-in-out;
}

.agreement__link:hover {
    color: #D3D9D7;
    text-decoration: none;
}

.service-main_button--transparent {
    background: transparent !important;
    color: #EFFE7D;
    font-weight: 500 !important;
    font-size: 16px;
    letter-spacing: 0;
    width: auto;
    height: auto;
    padding: 0;
    transition: .3s ease-in-out;
    margin: 20px 0 0;
    text-align: center;
}

.service-main_button--transparent span {
    transition: .3s ease-in-out;
    cursor: pointer;
}

.service-main_button--active {
    color: #D3D9D7;
}

.service-main_button--transparent span:hover {
    color: #D3D9D7 !important;
}

.service-main_button--disabled {
    background: #D3D9D7 !important;
    cursor: not-allowed;
    opacity: .5;
}

.service-main_button--disabled:hover {
    background: #D3D9D7 !important;
}

.main {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.puzzle-blocks {
    height: 65px;
}

.puzzle-blocks--white {
    background: #F5F5F5;
    flex: 1;
}

.puzzle-blocks--left {
    border-top-right-radius: 13px;
}

.puzzle-blocks--right {
    border-top-left-radius: 13px;
}

.puzzle-blocks--grey {
    width: 567px;
    background: #616C72;
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
    flex-shrink: 0;
}

.puzzle-blocks--bg {
    position: absolute;
    top: -30px;
    z-index: -1;
    width: 100%;
}

.footer {
    background: #F5F5F5;
    padding: 46px 33px !important;
}

/* .footer .wrapper {
    
} */

.footer__title {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    line-height: 120%;
}

.slider {
    margin: 65px auto 30px;
}

/* .slider__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
} */

/* .card {
    width: 552px;
    background: #D3D9D7;
    border-radius: 8px;
} */

.card__header {
    height: 235px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card__main {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    background: #FFFFFF;
}

.card__puzzle-blocks {
    height: 30px;
}

.card__puzzle-blocks--grey {
    width: 149px;
    background: #D3D9D7;
}

.card__puzzle-blocks--left {
    border-bottom-right-radius: 9px;
    width: 152px;
}

.card__puzzle-blocks--right {
    border-bottom-left-radius: 9px;
    width: 152px;
}

.card__puzzle-blocks--white {
    width: 254px;
    background: #FFFFFF;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    position: relative;
    z-index: 1;
}

.card__puzzle-blocks--bg {
    position: absolute;
    top: -10px;
    /* left: 31%; */
    z-index: 0;
    width: 100%;
}

.card__footer {
    background: #FFFFFF;
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    color: #616C72;
    line-height: 110.00000000000001%;
    padding: 29px 0;
}

/* 
.slider__dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 102px;
    margin: 30px auto 0;
} */

/* .dot {
    width: 17px;
    height: 17px;
    background: #3D4043;
    opacity: .6;
    border-radius: 50%;
    cursor: pointer;
    transition: all .3s ease-in-out;
} */

/* .dot:hover {
    opacity: 1;
    width: 36px;
    height: 36px;
} */

/* ---------- Слайдер ---------- */
.slider__wrapper {
    position: relative;
    height: 516px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card {
    width: 552px;
    background: #D3D9D7;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1), box-shadow .4s ease-in-out;
    transform-origin: center center;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -276px;
    margin-top: -215px;
    z-index: 1;
}

.card--active {
    z-index: 2;
}

.slider__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 0 auto;
    height: 36px;
}

.dot {
    width: 18px;
    height: 18px;
    background: #3D4043;
    opacity: .6;
    border-radius: 50%;
    cursor: pointer;
    transition: all .3s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot:hover {
    opacity: 1;
    background: #616C72;
    width: 36px;
    height: 36px;
}

.dot--active {
    opacity: 1;
    background: #616C72;
    width: 36px;
    height: 36px;
}

.dot-ring-svg {
    position: absolute;
    width: 36px;
    height: 36px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.dot-ring-svg circle {
    stroke-dasharray: 66;
    stroke-dashoffset: 66;
    animation: draw-ring .5s cubic-bezier(.65, .05, .36, 1) forwards;
}

@keyframes draw-ring {
    from {
        stroke-dashoffset: 66;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.about-us {
    color: #3D4043;
}

.about-us__title {
    text-align: center;
    margin: 0 0 34px;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0;
}

.about-us__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
}

.about-us__link {
    text-decoration: none;
    transition: color .3s ease-in-out;
}

.about-us__link:hover {
    text-decoration: none;
}


/* Переключатель соглашения */
.agreement-wrapper {
    display: flex;
    align-items: start;
    gap: 8px;
    width: 100%;
    margin: 8px 0 25px;
}

.agreement-text {
    flex: 1;
    color: #D3D9D7;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.toggle-switch {
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}

.toggle-switch__track {
    width: 59px;
    height: 32px;
    background: #D3D9D7;
    border-radius: 6px;
    position: relative;
    transition: background .3s ease-in-out;
}

.toggle-switch__thumb {
    width: 28px;
    height: 27px;
    background: #FFFFFF;
    border-radius: 15%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform .3s ease-in-out, background .3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch__track--active .toggle-switch__thumb {
    transform: translateX(26px);
}

.toggle-switch__thumb--active {
    background: #EFFE7D;
}

.help-notif {
    border: 1px solid #EFFE7D;
    border-radius: 10px;
    padding: 16px 32px;
    margin: 0 0 19px;
    color: #D3D9D7;
    max-width: 846px;
    width: 100%;
}

.field__helper {
    color: #D3D9D7;
    font-weight: 400;
    font-size: 10px;
}

.reg-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .6s cubic-bezier(.22, .61, .36, 1);
    width: 100%;
    max-width: 846px;
}

.reg-wrapper--open {
    grid-template-rows: 1fr;
}

.reg-wrapper>section {
    overflow: hidden;
    min-height: 0;
}

.reg-inner {
    opacity: 0;
    transition: opacity .5s ease .1s;
}

.reg-inner--visible {
    opacity: 1;
}

.reg-fields-section {
    margin-top: 30px;
}

.service-main_button--think {
    margin: 0 0 0 !important;
    max-width: 456px;
    width: 100%;
    height: 39px;
    border-radius: 8px !important;
}

.code-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
    width: 272px;
    margin: 0 auto;
}

.timer-text {
    font-size: 17px;
    font-weight: 500;
    color: #D3D9D7;
    text-align: center;
}

.resend-code {
    color: #EFFE7D;
    font-weight: 500;
    font-size: 17px;
}

.code-container .service-form__input {
    width: 45px;
    height: 81px;
    text-align: center;
    font-size: 30px !important;
    max-height: 81px !important;
    border-radius: 10px !important;
}

.verify-phone-block {
    margin-top: 15px;
}

.timer-text--bottom-indentation {
    margin: 0 0 10px;
}

.timer-text--top-indentation {
    margin: 10px 0;
}

.success-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.success-block__text {
    color: #D3D9D7;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    overflow: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.recovery-modal {
    background: #FFFFFF;
    border-radius: 12px;
    width: 100%;
    max-width: 715px;
    padding: 78px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    opacity: 0;
    animation: modalSlideDown 0.4s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes modalSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-overlay.closing .recovery-modal {
    animation: modalSlideUp 0.4s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    border-bottom: none !important;
    padding: 0 !important;
}

.modal-body--custom-modal {
    width: 491px;
    padding: 0;
    margin: 0 auto;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #3D4043;
    margin: 0;
    line-height: 100%;
    margin: 0 auto;
}

.modal-close {
    cursor: pointer;
}

.modal-close img {
    width: 24px;
    height: 24px;
}

.recovery-icon {
    text-align: center;
    margin-bottom: 20px;
}

.phone-icon-placeholder {
    width: 48px;
    height: 48px;
    background: #EFFE7D;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.recovery-text {
    color: #616C72;
    font-size: 16px;
    line-height: 110%;
    font-weight: 400;
    margin: 0 0 0 0;
}

.recovery-input {
    width: 100%;
    margin-bottom: 16px;
    height: 48px !important;
}

/* .modal-body--custom-modal .recovery-input {
    height: 48px !important;
    max-height: 48px !important;
    border-radius: 10px !important;
} */

.recovery-button {
    margin: 14px auto 0;
}

.recovery-error {
    color: #ff4d4f;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
}

.recovery-code-container {
    margin: 24px auto;
}

.recovery-timer {
    text-align: center;
    margin: 16px 0;
    font-size: 14px;
    color: #D3D9D7;
}

.recovery-timer .resend-code {
    color: #EFFE7D;
    cursor: pointer;
    font-weight: 500;
}

.recovery-text--small {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0;
    color: black;
    text-align: center;
    margin: 0 0 10px;
}

.resend-code--blue {
    color: #007AFF !important;
}

.about-recovery {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    width: 334px;
    gap: 20px;
}

.block__error {
    background: #D3D9D7;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    /* max-width: 836px; */
    width: 100%;
    margin: 30px 0;
    gap: 8px;
}

.block__error img {
    width: 24px;
    height: 24px;
}

.block__error p {
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;
}

.link-error {
    color: #EFFE7D !important;
}

.btns-wrapper {
    width: 100%;
    margin: 0 auto;
}

.service-main_button {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    height: 51px;
    border-radius: 10px !important;
}

.t-support {
    width: 29px;
    height: 29px;
    margin-left: 29px;
}

.t-support--mobile {
    display: none;
}

.service-main_button__indention {
    margin-bottom: 50px;
}

.service-main_button--state-search {
    margin: 0 auto 80px;
}

.service-main_button--state-reg {
    margin: 20px auto 110px;
}

.field__container {
    display: flex; 
    gap: 16px; 
    align-items: center;
}

.field__container .service-main_button {
    height: 39px;
}

@media (max-width: 1440px) {

    .login-form, .reg-form, .recovery-form {
        max-width: 650px !important;
    }
    .login-logo {
        width: 245px;
        margin: 0 0 62px;
    }
    /* .btns-wrapper {
        max-width: 320px;
    } */
    /* .service-main_button {
        font-size: 24px;
        height: 56px;
    } */
    /* .service-main_button--transparent {
        font-size: 24px;
        margin: 22px 0 15px;
    } */
    .card {
        width: 414px;
        margin-left: -207px;
    }
    .card__footer {
        font-size: 24px;
    }
    .footer__title {
        font-size: 18px;
    }
    /* .about-us__title {
        font-size: 14px;
    } */
    .about-us__info {
        font-weight: 400;
    }
    .t-support {
        width: 22px;
        height: 22px;
        margin-left: 29px;
    }
    .dot {
        width: 13px;
        height: 13px;
    }
    .dot-ring-svg {
        width: 20px;
        height: 20px;
    }
    .dot--active {
        width: 21px;
        height: 21px;
    }
    .slider__dots {
        gap: 18px;
    }
    .dot:hover {
        width: 21px;
        height: 21px;
    }
    .recovery-modal {
        max-width: 770px;
    }
    /* .modal-body--custom-modal {
        width: 360px;
    } */
    /* .about-recovery {
        margin: 0 0 35px;
    } */
    /* .about-recovery img {
        width: 28px;
    } */
    .modal-body--custom-modal .recovery-input {
        height: 36px !important;
    }
    /* .recovery-text {
        font-size: 15px;
    } */
    /* .recovery-button {
        width: 297px !important;
        font-size: 18px;
        margin: 36px auto 0;
    } */
    /* .modal-title {
        font-size: 15px;
    } */
    /* .login-form, .reg-form, .recovery-form {
        width: 635px;
    } */
    .puzzle-blocks--grey {
        width: 426px;
    }
    .puzzle-blocks--bg {
        width: 100%;
    }
    .puzzle-blocks {
        height: 49px;
    }
    /* .reg-wrapper {
        width: 635px;
    } */
    /* .help-notif__item {
        font-size: 14px;
    } */
    .help-notif__item--small {
        font-size: 16px;
    }
    .service-main_button__indention {
        margin-bottom: 27px;
    }
    .header {
        background: #616C72;
        padding: 80px 0 23px !important;
    }
    .reg-wrapper {
        max-width: 650px !important;
    }
    .service-main_button--state-search {
        margin: 0 auto 67px;
    }
    .service-main_button--state-reg {
        margin: 20px auto 97px;
    }
}

@media (max-width: 1024px) {
    .slider {
        margin: 40px 0 20px;
    }

    .slider__wrapper {
        position: relative;
        height: auto;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 20px 5vw;
        gap: 20px;
        justify-content: flex-start;
        align-items: stretch;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .slider__wrapper::-webkit-scrollbar {
        display: none;
    }

    .card {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        transform: none !important;

        width: 80vw;
        max-width: 540px;
        flex: 0 0 auto;
        scroll-snap-align: center;
        height: auto;
    }

    /* .card__header {
        height: 180px;
    } */

    /* .card__footer {
        font-size: 18px;
        padding: 40px 15px 20px;
        height: 128px;
    } */

    .footer {
        padding: 30px 20px !important;
    }

    .slider__dots {
        display: flex;
        /* Показываем точки */
        justify-content: center;
        /* Центрируем */
        align-items: center;
        width: auto;
        margin: 25px auto 0;
        height: 36px;
        gap: 12px;
        /* Расстояние между точками */
    }

    .dot {
        width: 12px;
        /* Чуть меньше на мобильных */
        height: 12px;
        background: #3D4043;
        opacity: .4;
        /* Более прозрачные неактивные */
        border-radius: 50%;
        cursor: pointer;
        transition: all .3s ease-in-out;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dot:hover {
        opacity: 0.8;
    }

    .dot--active {
        opacity: 1;
        background: #616C72;
        width: 32px;
        /* Активная точка шире */
        height: 32px;
        border-radius: 50%;
    }

    .dot-ring-svg {
        position: absolute;
        width: 32px;
        height: 32px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-90deg);
        pointer-events: none;
    }

    .dot-ring-svg circle {
        stroke-dasharray: 66;
        stroke-dashoffset: 0;
        /* Всегда видим кольцо на активной */
    }
}

@media (max-width: 768px) {

    /* .about-us__title {
        font-size: 14px;
    } */

    /* .about-us__info {
        font-size: 14px;
    } */

    .card__footer {
        font-size: 18px;
    }

    .card__header {
        height: 252px;
    }

    .puzzle-blocks {
        height: 40px;
    }

    .puzzle-blocks--white {
        width: 200px;
    }

    .puzzle-blocks--bg {
        width: 100% !important;
    }

    .puzzle-blocks--grey {
        width: 360px;
    }

    /* .agreement-text {
        font-size: 14px;
    } */
    .agreement-wrapper {
        align-items: start;
    }
    .toggle-switch__track {
        width: 50px;
        height: 28px;
    }
    .toggle-switch__thumb {
        width: 23px;
        height: 23px;
    }
    .toggle-switch__track--active .toggle-switch__thumb {
        transform: translateX(20px);
    }

    .recovery-modal {
        width: 335px;
        padding: 24px 30px 50px;
    }

    .recovery-form {
        max-width: 275px !important;
    }
    
    .about-recovery {
        width: 275px;
    }

    .modal-body--custom-modal {
        width: 275px;
    }

    .modal-title {
        font-size: 16px;
    }
}

/* @media (max-width: 635px) {
    .card__header {
        height: auto;
    }

} */

@media (max-width: 480px) {

    .about-us__title {
        margin: 0 0 50px;
    }

    .t-support--desktop {
        display: none;
    }

    .t-support--mobile {
        display: block;
    }

    .footer__title {
        font-size: 16px;
        margin: 0 0 2px;
    }

    .card {
        width: 85vw;
        height: 225px;
    }

    .card__header {
        height: 136px;
    }

    .card__header img {
        max-width: 75% !important;
        height: auto;
    }

    .card__puzzle-blocks {
        height: 14px;
    }

    .card__puzzle-blocks--bg {
        position: absolute;
        top: -6px;
    }

    .card__puzzle-blocks--left {
        border-bottom-right-radius: 4px;
    }

    .card__puzzle-blocks--right {
        border-bottom-left-radius: 4px;
    }

    .card__puzzle-blocks--white {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    .footer {
        padding: 24px 20px !important;
    }

    .slider {
        margin: 0;
    }

    .slider__dots {
        margin: 4px auto 10px;
    }

    /* .reset-password {
        font-size: 12px;
    } */

    /* .header .wrapper .field label {
        font-size: 12px !important;
    } */

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot-ring-svg {
        width: 16px;
        height: 16px;
    }

    .dot--active {
        width: 16px;
        height: 16px;
    }

    .puzzle-blocks {
        height: 24px;
    }

    .puzzle-blocks--bg {
        top: -12px;
    }

    .puzzle-blocks--grey {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    .puzzle-blocks--white {
        width: 200px;

    }

    .puzzle-blocks--bg {
        left: 0;
        width: 100%;
    }

    .puzzle-blocks--left {
        border-top-right-radius: 5px;
    }

    .puzzle-blocks--right {
        border-top-left-radius: 5px;
    }

    .card__footer {
        font-size: 16px;
        padding: 20px 15px;
        height: auto;
    }

    .btns-wrapper {
        /* width: 162px; */
    }

    .onlyDesktop {
        display: none;
    }

    /* .agreement-text {
        font-size: 12px;
    } */

    /* .service-main_button {
        height: 41px;
        font-size: 12px !important;
        border-radius: 16px !important;
    } */

    /* .service-main_button--transparent {
        font-size: 9px;
        height: 15px !important;
        width: 99px !important;
        margin: 15px auto;
    } */

    .about-us__info {
        /* font-size: 7px; */
        flex-direction: column;
        gap: 10px;
    }

    /* .about-us__title {
        font-size: 7px;
    } */

    .t-support {
        width: 10px;
        height: 10px;
        margin-left: 0;
    }

    .login-logo {
        width: 160px;
        margin: 0 0 32px;
    }

    .dot:hover {
        width: 16px;
        height: 16px;
    }

    .puzzle-blocks--grey {
        width: 207px;
    }

    .header {
        padding: 20px 0 20px !important;
    }

    .service-main_button--state-search {
        margin: 0 auto 30px;
    }

    .service-main_button--state-reg {
        margin: 20px auto 60px;
    }

    .service-main_button__indention {
        margin-bottom: 0;
    }

    .field__container {
        flex-wrap: wrap;
    }
}

.help-notif__item {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 120%;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
}

.help-notif__item img {
    width: 20px;
    height: 20px;
}

.help-notif__item--small {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}